Description Usage Arguments Value Note Examples
This function uses the EBI's or the NCBI's REST APIs to retrieve information about SRA data. Study accessions (ERP, SRP, DRP, PRJ prefixes), experiment accessions (ERX, SRX, DRX prefixes), sample accessions (ERS, SRS, DRS, SAM prefixes) and run accessions (ERR, SRR, DRR prefixes) can be supplied. For more information see http://www.ebi.ac.uk/ena/browse/file-reports
1 | retrieve_sra_metadata(x, from = c("ena", "ncbi"))
|
x |
SRA identifier |
from |
Scalar character, specifying either |
A tbl_df data.frame
The output data.frame will be different for the two source databases.
1 2 3 4 5 6 7 | if (interactive()) {
# retrieve study annotations
retrieve_sra_metadata("SRP066489")
# paired-end samples
retrieve_sra_metadata("PRJEB2054", "ena") %>%
dplyr::filter(sample_accession == "SAMEA728920")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.