This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sys import argv | |
def main(arg1, arg2): | |
# Your logic here | |
pass | |
if __name__ == '__main__': | |
main(argv[1], argv[2]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from Bio import Entrez | |
taxids_filename = '/tmp/taxids.list' # Replace with the path to your Tax IDs file! | |
with open(taxids_filename) as f: | |
tax_ids = f.read().split('\n') | |
Entrez.email = '[email protected]' # Put your email here | |
handle = Entrez.efetch('taxonomy', id=tax_ids, rettype='xml') | |
response = Entrez.read(handle) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from Bio import Entrez | |
# Read the accessions from a file | |
accessions_file = 'accessions.txt' | |
with open(accessions_file) as f: | |
ids = f.read().split('\n') | |
# Fetch the entries from Entrez | |
Entrez.email = '[email protected]' # Insert your email here | |
handle = Entrez.efetch('nuccore', id=ids, retmode='xml') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<iframe src='/widget/#{current_client.slug}' style='height: #{height}px; width: 300px;' scrolling='no'></iframe>" %> |