searchPhenotypeAssociations: searchPhenotypeAssociations function

Description Usage Arguments Details Value References See Also Examples

View source: R/searchPhenotypeAssociations.R

Description

This function gets a list of phenotype associations matching the search criteria.

Usage

1
2
3
searchPhenotypeAssociations(host, phenotypeAssociationSetId,
  featureIds = character(), phenotypeIds = character(), nrows = Inf,
  responseSize = NA_integer_)

Arguments

host

URL of GA4GH API data server.

phenotypeAssociationSetId

Id of the PhenotypeAssociationSet to search.

featureIds

Ids of the features. At least one featureId or phenotypeId must be provided.

phenotypeIds

Ids of the phenotypes. At least one featureId or phenotypeId must be provided.

nrows

Number of rows of the data frame returned by this function. If not defined, the function will return all entries. If the number of available entries is less than the value of this this parameter, the function will silently return only the available entries.

responseSize

Specifies the number of entries to be returned by the server until reach the number of rows defined in nrows parameter or until get all available entries. If not defined, the server will return the allowed maximum reponse size. Increasing this the value of this parameter will reduce the number of requests and reducing the time required. The will not respect this parameter if the value if larger than its maximum response size.

Details

This function requests to /featurephenotypeassociations/search.

Value

DataFrame object. NULL means no registry found.

References

Official documentation.

See Also

DataFrame, searchPhenotypeAssociationSets

Examples

1
2
3
4
5
6
7
host <- "http://1kgenomes.ga4gh.org/"
## Not run: 
datasetId <- searchDatasets(host, nrows = 1)$id
id <- searchPhenotypeAssociationSets(host, datasetId, nrows = 1)$id
searchPhenotypeAssociations(host, id, nrows = 10)

## End(Not run)

GA4GHclient documentation built on Nov. 8, 2020, 5:47 p.m.