getGeneMapping | R Documentation |
The annotation in the reference folders is at the isoform level but for gene-level analyses we need to map the annotation to the gene level. Especially all enrichment analyses should be run at the gene-level
getGeneMapping(param, seqAnnoDF)
hasGeneMapping(param, seqAnnoDF)
param |
the global parameter object. We need the entries |
seqAnnoDF |
a data.frame containing the sequence annotation. |
Returns a named character vector containing the gene mapping.
hasGeneMapping
: Returns a logical indicating if the set parameters have gene mapping or not.
Rehrauer, Hubert
Schmid, Peter
param = ezParam()
annoFile = system.file("extdata/genes_annotation.txt", package="ezRun", mustWork=TRUE)
param$ezRef["refAnnotationFile"] = annoFile
param$ezRef["refFeatureFile"] = system.file("extdata/genes.gtf", package="ezRun", mustWork=TRUE)
param$ezRef["refFastaFile"] = system.file("extdata/genome.fa", package="ezRun", mustWork=TRUE)
seqAnno = writeAnnotationFromGtf(param)
seqAnno = ezFeatureAnnotation(param, rownames(seqAnno), dataFeatureType="gene")
gm = getGeneMapping(param, seqAnno)
hasGeneMapping(param, seqAnno)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.