Skip to content

Instantly share code, notes, and snippets.

@icaoberg
Created February 13, 2016 04:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icaoberg/56d2f475fe52fe9a0712 to your computer and use it in GitHub Desktop.
Save icaoberg/56d2f475fe52fe9a0712 to your computer and use it in GitHub Desktop.
Biopython 1.65 example #slurm
#!/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