Description Value Methods Author(s) See Also Examples
The children/parent relations are decided by the range of HXB2 coordinates of HivFeatures. These methods provide the interface to query the HIV database based on the hierarchical structure of HivFeatures.
A HivFeature object of a list of HivFeature objects
signature(object = "HivFeature")
A logical scalar recursive
indicates if all the descendants or all the ancestors are returned besides the immediate ones.
category
can be used in getChildren
to further narrow down the range the HivFeatures to be searched
Usage:
getChildren(feature1,recursive=FALSE,category=NULL)
getParent(feature1,recursive=FALSE)
signature(object = "list")
Mike Jiang,Raphael Gottardo
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | library(HIV.db)
## load Table from db
HIV_gag<-loadFeatures(ref="gag")
## query by parent
feature1<-getFeature(HIV_gag)
getChildren(feature1)
## query by children
feature2<-getFeature(HIV_gag, name="p24")
getParent(feature2)
HIV_env<-loadFeatures(ref="env")
feature3<-getFeature(HIV_env, name="V1")
getParent(feature3)
#get all the Descendants or all the Ancestors including the immediate
getParent(feature3,recursive=TRUE)
getChildren(feature1,recursive=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.