fetch: Fetch a set of IDs from a BioPAX OWL file

Description Usage Arguments Details Value Examples

View source: R/fetch.R

Description

This function will create a subsetted object with specified URIs.

Usage

1
fetch(inputFile, outputFile = NULL, idList)

Arguments

inputFile

a string of the name of the input BioPAX OWL file

outputFile

a string with the name of the output BioPAX OWL file

idList

a vector of IDs from the BioPAX OWL file

Details

Only entities in the input BioPAX file will be used in the fetch. IDs used must be URIs for the entities of interest. Additional properties such as cross-references for fetched entities will be included in the output.

Value

an XMLInternalDocument representing a BioPAX OWL file

Examples

1
2
3
4
5
outFile <- tempfile()
ids <- c("http://identifiers.org/uniprot/P36894", 
         "http://identifiers.org/uniprot/Q13873")
results <- fetch(system.file("extdata", "REACT_12034-3.owl", package="paxtoolsr"), 
                 outFile, ids)

paxtoolsr documentation built on Nov. 8, 2020, 8:29 p.m.