ncbiSubmit: NCBI submission dates

Description Usage Arguments Details Value Note Author(s) See Also Examples

Description

Returns the date a sequence was submitted to NCBI using the Direct Submission line in the GenBank file

Usage

1
ncbiSubmit(term, db = "nuccore")

Arguments

term

Any valid combination of Entrez search terms or a vector of accessions numbers

db

Entrez sequence database to search, default nuccore

Details

Searches an Entrez sequence database, downloads GenBank files and parses the JOURNAL line containing a submitted date, for example, JOURNAL Submitted (03-SEP-1999) ....

Value

a data.frame with accession, definition, and submitted date

Note

If more than two submitted dates are found, then the earliest date is returned. This script uses E-fetch, so retrievals to the genome and other database will not work.

Author(s)

Chris Stubben

See Also

ncbiRelease

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
#Yersinia pestis  reference sequences
ncbiSubmit("Yersinia pestis CO92[ORGN] AND refseq[FILTER]")
# Ebola virus - no patents or references
ebola<- ncbiSubmit("Ebolavirus[ORGN] NOT gbdiv_pat[PROP] NOT refseq[FILTER]")
head(ebola)
# a few early submissions may be missing
subset(ebola, is.na(submitted))
table(year(ebola$submit))

## End(Not run)

cstubben/genomes2 documentation built on May 14, 2019, 12:25 p.m.