Description Usage Arguments Details Value Author(s) See Also Examples
This function retrieves information for the features for the given ranges and types using the corresponding data source id (or title) in the session's DAS server.
1 | getDasFeature(source, ranges, types)
|
source |
Data source id (or title). See |
ranges |
|
types |
Names of the features to retrieve. They must match one or more of the
values returned by |
This function queries the DAS server and returns the available information for the type(s) at the given range(s).
Please, be sure to pass the identifiers EXACTLY as the values returned by the functions available here (DAS is case-sensitive). It is also recommended that you check the capabilities for each of the data sources.
Please, notice that this function codes the parameters in a URL to query the server. This function could fail if you ask for many ranges or types. Also, notice that the speed of the query depends on the number of elements and the load in the server.
Please, use this function smartly and do not overload servers.
data.frame
with the following columns: id, start, stop,
version, label, type, method, score, orientation, phase, note, link,
target, parent, part
, which match the contents of the specific annotation
for the given ranges and types in the server (some of the fields are
optional, so not all the servers provide information for all the above
columns).
If there are not matching results, output is NULL
.
Oscar Flores <oflores@mmb.pcb.ub.es>
Anna Mantsoki <anna.mantsoki@bsc.es>
1 2 3 4 5 6 7 8 9 | # Set session server to UniProt DAS Reference Server
setDasServer(server="http://www.ebi.ac.uk/das-srv/uniprot/das")
source <- "uniprot-summary"
ranges <- GRanges(seqnames=c("A0A000","A0A001"), IRanges(start=c(1,1), end=c(394,591)))
types <- c("description", "sequence-summary")
features <- getDasFeature(source, ranges, types)
print(features)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.