View source: R/readFeatureAnnotationForEdgeR.R
readFeatureAnnotationForEdgeR | R Documentation |
Read feature annotation for EdgeR pipeline
readFeatureAnnotationForEdgeR(featureNames, file = NULL)
featureNames |
Character string, feature names |
file |
A tab-delimited file with header that provides feature annotation |
A data.frame
, with the first column named FeatureName
,
which are the input feature names. The rest columns contain annotations.
The functions tries to parse feature annotation file if it is present. If
not, it will use guessAndAnnotate
to
annotate the features.
Note that for gene symbols, only human gene symbols are supported.
anno <- "GeneID\tGeneSymbol\n1234\tCCR5\n1235\tCCR6"
annoFile <- tempfile()
writeLines(anno, annoFile)
featIds <- c("1235", "1234")
## use file
readFeatureAnnotationForEdgeR(featIds, file=annoFile)
## Not run:
## use ribiosAnnotation, depending on database connection
readFeatureAnnotationForEdgeR(featIds, file=NULL)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.