readData(data, factors, length = NULL, biotype = NULL, chromosome = NULL, gc = NULL)
addData(data, length = NULL, biotype = NULL, chromosome = NULL, factors = NULL, gc = NULL)
data
object).
data
. If a matrix or a data.frame is provided,
and it has two columns, it is expected that the feature names or ids are
in the first column and the biotypes of the features in the
second. If it only has one column containing the biotypes, the rownames of the
object must be the feature names or ids.
data
.
data
. If a matrix or a data.frame is provided,
and it has two columns, it is expected that the feature names or ids are
in the first column and the GC content of the features in the
second. If it only has one column containing the GC content, the rownames of the
object must be the feature names or ids.
data
. If a matrix or a data.frame is provided,
and it has two columns, it is expected that the feature names or ids are
in the first column and the length of the features in the
second. If it only has one column containing the length, the rownames of the
object must be the feature names or ids.
myCounts
with all the information defined and ready to be used.
# Load an object containing the information explained above
data(Marioni)
# Create the object with the data
mydata <- readData(data=mycounts, biotype=mybiotypes, chromosome=mychroms, factors=myfactors)
# Add length annotation to the existing data object
mydata <- addData(mydata, length=mylength)
Run the code above in your browser using DataLab