Back to index

python-biopython  1.60
Functions | Variables
fasta_dictionary Namespace Reference

Functions

def get_accession_num

Variables

tuple rec_iterator = SeqIO.parse("ls_orchid.fasta","fasta", generic_dna)
tuple orchid_dict = SeqIO.to_dict(rec_iterator, get_accession_num)

Function Documentation

def fasta_dictionary.get_accession_num (   seq_record)

Definition at line 10 of file fasta_dictionary.py.

00010 
00011 def get_accession_num(seq_record):
00012     accession_atoms = seq_record.id.split('|')
00013     gb_name = accession_atoms[3]
00014     # strip the version info before returning
00015     return gb_name[:-2]


Variable Documentation

Definition at line 17 of file fasta_dictionary.py.

tuple fasta_dictionary.rec_iterator = SeqIO.parse("ls_orchid.fasta","fasta", generic_dna)

Definition at line 16 of file fasta_dictionary.py.