| BioData | R Documentation |
this function reorderes the BioData object based on a column in the samples table (e.g. for plotting)
x |
the BioData object |
column |
the samples column to reorder on |
R6Class object.
Object of R6Class to store BioData.
datathe numerical data as sparse Matrix
rawthe raw numerical data as sparse Matrix
raw_intronicthe raw numerical intronic data as sparse Matrix
samplesthe sample annotation as data.frame
annotationthe row annotation as data.frame
usedObja multi purpose list to store whichever ananlyis results do not fit in the stats list
statsall stats with one result for each data row
rankscurrently unused
loggeda logical value stating if the data has been logged
snorma logical value stating if the object has been sample or cell normalized
rownamescolwhich column in the annotation table contains the data rownames
sampleNamesColwhich column in the samples table contains the data rownames
outpathwhere to store the object
namethe name of the object (e.g. project name)
drop=c('MDS')currently unused
versionthe version string of the BioData library that created this object
datthe numerical data as sparse Matrix
rawthe raw numerical data as sparse Matrix
raw_intronicthe raw numerical intronic data as sparse Matrix
samplesthe sample annotation as data.frame
annotationthe row annotation as data.frame
rankscurrently unused
loggeda logical value stating if the data has been logged
statsall stats with one result for each data row
snorma logical value stating if the object has been sample or cell normalized
snorma logical value stating if the object has been sample or cell normalized
rownamescolwhich column in the annotation table contains the data rownames
outpathwhere to store the object
namethe name of the object (e.g. project name)
usedObja multi purpose list that storeas everything we forgot a slot for
datathe numerical data as sparse Matrix
drop=c('MDS')currently unused
print()print a summary of the object
BioData$print()
new()initialize the object - depricated - use the as_BioData functions instead
BioData$new( dat, Samples, annotation = NULL, name = "BioData", namecol = NULL, namerow = "GeneID", outpath = "" )
datthe expression sparse Matrix
Samplesa data.frame describing the column data
annotationa data.frame describing the row data
namethe name of the project - make it phony - will be used as filename
namecolthe column in the Samples data that is the rownames of the data Matrix
namerowthe column in the annotation data that is the rownames of the data Matrix
outpaththe path the file is stored in (defaults to getwd()) reorder a mds object based on an ordering ID This function should never be called by the user!!!
reorder.mds()BioData$reorder.mds(mdsName, ids, mdsClass)
mdsNamethe name of the MDS
idsthe new order
mdsClassthe MDS class name like MDS_PCA100 reorder a BioData object based on annotation information. If the ordering data is all numeric the numeric values and not the factor levels will be used!
reorder.genes()this function reorderes the BioData object based on a column in the annotation table (e.g. for plotting)
BioData$reorder.genes(column)
columnthe annotation column to reorder on reorder a BioData object based on sample information. If the ordering data is all numeric the numeric values and not the factor levels will be used!
reorder.samples()this function reorderes the BioData object based on a column in the samples table (e.g. for plotting)
BioData$reorder.samples(column)
columnthe samples column to reorder on
data()data accessor function either reports the dat spot or the zscored if existing
BioData$data()
rawData()data accessor function either reports the dat spot or the raw if existing
BioData$rawData()
force.numeric()useless and depricated
BioData$force.numeric()
pwd()useless
BioData$pwd()
forceAbsoluteUniqueSample()likely useless and sotherwise implemented, but makes sure all entries in the vector are unique. by default adds _1, _2, ... , _n to the not unique names
BioData$forceAbsoluteUniqueSample(x, separator = "_")
xthe vector
separatorby default '_'
clone()The objects of this class are cloneable with this method.
BioData$clone(deep = FALSE)
deepWhether to make a deep clone.
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 = "" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.