Description Usage Arguments Value Author(s) Examples
Extract value from tag-value formatted attribute in features object
1 | tagval.feat(x, tag)
|
x |
A features object of type |
tag |
The tag whose values are to be extracted. |
If there is at most one relevant value for each feature, a character vector of the same length as x will be returned, containing the value for each feature, or NA where the tag does not exist for that feature. If some elements have multiple values, then the return value will be a list with the same length as x, each element being a character vector containing the values for the corresponding element of x (or NA for no value).
Melissa J. Hubisz
1 2 3 4 5 6 7 8 9 | exampleArchive <- system.file("extdata", "examples.zip", package="rphast")
featFile <- "sol1.gp"
unzip(exampleArchive, featFile)
f <- read.feat(featFile)
geneName <- tagval.feat(f, "transcript_id")
geneName[1:10]
length(unique(geneName)) # number of unique genes
unlink(featFile)
rm(f, geneName)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.