Skip to content

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.

1 participant