This function can use the API of the European Nucleotide Archive (recommended) or the Sequence Read Archive.
fetchMetadata(
bioproject,
host = c("ena", "sra"),
fields = c("study_accession", "sample_accession", "secondary_sample_accession",
"sample_alias", "sample_title", "experiment_accession", "run_accession", "fastq_md5",
"fastq_ftp", "fastq_aspera"),
file = NULL
)
A data.table
.
String indicating bioproject accession.
String indicating from where to fetch the metadata.
Character vector indicating which fields to fetch, if host
is "ena".
String indicating output file path, if not NULL
.
seeker()
, fetch()