tests/testthat/test-Split4Geo.r

context( "split for GEO" )

set.seed(1)
dat = data.frame( matrix(rnorm(1000),ncol=10) ) 
colnames(dat) <- paste('Sample', 1:10)
rownames(dat) <- paste( 'gene', 1:100)
samples <- data.frame(SampleID = 1:10, sname = colnames(dat) )
annotation <- data.frame( GeneID = paste( 'gene', 1:100), Start= 101:200 )

x <- BioData$new( cbind(annotation,dat), Samples=samples, name="testObject",namecol='sname', outpath = file.path(getwd(),"Split4Geo") )

Split4Geo( x )
stela2502/BioData documentation built on Feb. 23, 2022, 5:47 a.m.