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

This might be handy for nucleotide download #25

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

langelog
Copy link

@langelog langelog commented Apr 6, 2020

library to download nucleotides by name according to ncbi library.
It uses BeautifulSoup to parse html.

usage example:

import nucleotide
RNA = {}
# If its not already downloaded, will download and put it in data directory
# and return the rna
RNA["NC_045512.2"] = nucleotide.get("NC_045512.2")

library to download nucleotides by name according to ncbi library
@langelog langelog changed the title This might be handy This might be handy for any nucleotide download Apr 6, 2020
@langelog langelog changed the title This might be handy for any nucleotide download This might be handy for nucleotide download Apr 6, 2020
nucleotide.py Outdated
except Exception as err:
print(err)

fasta_files = [join(data_dir,f) for f in listdir(data_dir) if isfile(join(data_dir, f)) and fasta_pattern.match(f)]
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

woops, this line should be in available() function

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

Successfully merging this pull request may close these issues.

None yet

1 participant