Skip to content

This might be handy for nucleotide download#25

Open
langelog wants to merge 2 commits into
geohot:masterfrom
langelog:master
Open

This might be handy for nucleotide download#25
langelog wants to merge 2 commits into
geohot:masterfrom
langelog:master

Conversation

@langelog

@langelog langelog commented Apr 6, 2020

Copy link
Copy Markdown

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
Comment thread 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
Copy Markdown
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.

1 participant