Created
February 13, 2016 04:45
-
-
Save icaoberg/56d2f475fe52fe9a0712 to your computer and use it in GitHub Desktop.
Biopython 1.65 example #slurm
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
#!/bin/bash | |
##this is an example described in section 2.4.1 | |
##http://biopython.org/DIST/docs/tutorial/Tutorial.html#htoc10 | |
wget -nc http://biopython.org/DIST/docs/tutorial/examples/ls_orchid.fasta | |
echo " | |
from Bio import SeqIO | |
for seq_record in SeqIO.parse("ls_orchid.fasta", "fasta"): | |
print(seq_record.id) | |
print(repr(seq_record.seq)) | |
print(len(seq_record)) | |
" > script.py | |
python script.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment