getChildren-methods: query the children or parent HivFeature

Description Value Methods Author(s) See Also Examples

Description

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.

Value

A HivFeature object of a list of HivFeature objects

Methods

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")

Author(s)

Mike Jiang,Raphael Gottardo

See Also

getParent,getFeature

Examples

 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)

RGLab/HIV.db documentation built on May 8, 2019, 5:51 a.m.