View source: R/readAnnotationFile.R
readFeatureAnnotationFile | R Documentation |
Read in feature annotation file in the tsv-format, with or without row names
readFeatureAnnotationFile(file, ...)
file |
A tab-delimited file without quotes, the first column must contain feauture identifiers. In case the first column has no column name and it contains row names, they will be used as feature names. |
... |
Other parameters passed to |
A data.frame
containing feature annotation, with the first
column named as 'FeatureName' that contains feature identifiers as character
strings. In case the input table contains the column 'FeatureName', the
content in that column must match the row names, otherwise an error
is reported.
f1 <- system.file("extdata",
"featureAnnotation/featureAnnotationFile-withRowNames.txt",
package="ribiosExpression")
f2 <- system.file("extdata",
"featureAnnotation/featureAnnotationFile-withoutRowNames.txt",
package="ribiosExpression")
f1Read <- readFeatureAnnotationFile(f1)
f2Read <- readFeatureAnnotationFile(f2)
head(f1Read)
head(f2Read)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.