Description Usage Arguments Details Value Author(s) See Also Examples
This function lists all sra, sra-lite or fastq data files associated with input SRA accessions
1 | listSRAfile( in_acc, sra_con, fileType = 'sra', srcType = 'ftp' )
|
in_acc |
character vector of SRA accessions, which should be in same SRA data type, either submission, study, sample, experiment or run. |
sra_con |
connection to the SRAmetadb SQLite database |
fileType |
types of SRA data files, which should be 'sra' or 'fastq'. ('litesra' has phased out ). |
srcType |
type of transfer protocol, which should be "ftp" or "fasp". |
SRA fastq files are hosted at EBI ftp site (ftp://ftp.sra.ebi.ac.uk/vol1/fastq/) and .sra files are hosted at NCBI ftp site (ftp://ftp-trace.ncbi.nlm.nih.gov/sra/sra-instant/reads/). 'litesra' has phased out.
A data frame of matched SRA accessions and data file names with ftp or fasp addresses.
Jack Zhu <zhujack@mail.nih.gov>
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Using the SRAmetadb demo database
## Not run:
library(SRAdb)
sra_dbname <- file.path(system.file('extdata', package='SRAdb'), 'SRAmetadb_demo.sqlite')
sra_con <- dbConnect(dbDriver("SQLite"), sra_dbname)
## List ftp or fasp addresses of sra files associated with "SRX000122"
listSRAfile (in_acc = c("SRX000122"), sra_con = sra_con, fileType = 'sra')
listSRAfile (in_acc = c("SRX000122"), sra_con = sra_con, fileType = 'sra', srcType='fasp')
## End(Not run)
## The actual SRAmetadb sqlite database can be downloaded using function: getSRAdbFile. Warning: the actual SRAmetadb sqlite database is pretty large (> 35GB as of May, 2018) after uncompression. So, downloading and uncompressing of the actual SRAmetadb sqlite could take quite a few minutes depending on your network bandwidth. Direct links for downloading the SRAmetadb sqlite database: https://s3.amazonaws.com/starbuck1/sradb/SRAmetadb.sqlite.gz https://gbnci-abcc.ncifcrf.gov/backup/SRAmetadb.sqlite.gz
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.