Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accession range support? #16

Open
peterjc opened this issue Feb 26, 2020 · 1 comment
Open

Accession range support? #16

peterjc opened this issue Feb 26, 2020 · 1 comment

Comments

@peterjc
Copy link

peterjc commented Feb 26, 2020

For a continuous range of accessions, the following range notation is common both in human readable text like data availablitlity sections in papers, and in NCBI cross-references. Could the tool spot this and expand the range automatically? e.g.

$ ncbi-acc-download EF590893-EF590896

Internally expand this to:

$ ncbi-acc-download EF590893 EF590894 EF590895 EF590896

Workaround, handy if you just have a couple of ranges to fetch:

for i in {590893..590896}; do ncbi-acc-download EF${i}; done

(Updated to fix typo, range was not increasing)

@kblin
Copy link
Owner

kblin commented Feb 27, 2020

There's some logic in ncbi-acc-download that already knows how to do this for WGS record recursive downloads. Should be easy to expand to this use case, I'll give this a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants