merge_sfile {autonomics} | R Documentation |
Merge sample/feature file
merge_sfile( object, sfile = NULL, by.x = "sample_id", by.y = NULL, stringsAsFactors = TRUE, verbose = TRUE ) merge_ffile( object, ffile = NULL, by.x = "feature_id", by.y = NULL, stringsAsFactors = TRUE, verbose = TRUE )
object |
SummarizedExperiment |
sfile |
sample file path |
by.x |
object mergevar |
by.y |
file mergevvar |
stringsAsFactors |
TRUE or FALSE |
verbose |
TRUE (default) or FALSE |
ffile |
ffile path |
SummarizedExperiment
require(magrittr) file <- download_data('billing19.proteingroups.txt') select <- c('E00','E01', 'E02','E05','E15','E30', 'M00') select %<>% paste0('_STD') object <- read_proteingroups(file, select_subgroups = select, plot=FALSE) sfile <- paste0(tempdir(),'/', basename(tools::file_path_sans_ext(file))) sfile %<>% paste0('.samples.txt') invisible(create_sfile(object, sfile)) merge_sfile(object, sfile)