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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get a sequence from a Genbank ID #3

Closed
audy opened this issue Jul 17, 2014 · 4 comments
Closed

Get a sequence from a Genbank ID #3

audy opened this issue Jul 17, 2014 · 4 comments
Assignees

Comments

@audy
Copy link

audy commented Jul 17, 2014

Is it possible to get a single sequence given a Genbank ID?

I tried:

bionode-ncbi search Genbank AF068820.2

Which returns nothing.

If not, this would be useful 馃樃

@alanrice
Copy link

It isn't possible yet. "assembly" and "SRA" are the only supported NCBI sections at the moment.

Following "assembly" and "SRA" I imagine the syntax to get a sequence would be like

bionode-ncbi download nucleotide AF068820.2

and

ncbi.download('nucleotide', 'AF068820.2')

perhaps?

Search and download in this case would be somewhat redundant given a unique Genbank ID, search would return with just one result.

@bmpvieira
Copy link
Member

We can add this using efetch (http://www.ncbi.nlm.nih.gov/books/NBK25499/).
ncbi.download could give the same result as efetch and ncbi.search would return the metadata.

@audy
Copy link
Author

audy commented Jul 18, 2014

Right there would only be download.

Also, pagination. I know the NCBI API has support for this.

ncbi.download('nucleotide', ['AF068820.2', ...])

@bmpvieira
Copy link
Member

Moving discussion to #10

@bmpvieira bmpvieira self-assigned this Apr 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

3 participants