R Under development (unstable) (2024-10-21 r87258 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library("Mercator") Loading required package: Thresher Loading required package: ClassDiscovery Loading required package: cluster Loading required package: oompaBase Loading required package: PCDimension > data("CML1000") > > # transposition > bm <-t(CML1000) > bm <- removeDuplicateFeatures(bm) > summary(bm) An object of the 'BinaryMatrix' class, of size [1] 1057 597 History: [1] "Newly created." "Duplicate features removed." [3] "transposed" "Subsetted." [5] "transposed" "Duplicates removed." > > # run the thresher algorithm to remove "useless" vectors > thrash <- threshLGF(bm, cutoff = 0.5) > summary(thrash) An object of the 'BinaryMatrix' class, of size [1] 1057 238 History: [1] "Newly created." "Duplicate features removed." [3] "transposed" "Subsetted." [5] "transposed" "Duplicates removed." [7] "Threshed." > > # convert back to base class > oval <- as(thrash, "BinaryMatrix") > slotNames(oval) [1] "binmat" "columnInfo" "rowInfo" "info" "history" > summary(oval) An object of the 'BinaryMatrix' class, of size [1] 1057 238 History: [1] "Newly created." "Duplicate features removed." [3] "transposed" "Subsetted." [5] "transposed" "Duplicates removed." [7] "Threshed." > > > proc.time() user system elapsed 20.31 1.54 21.85