Module fastaComplement
[hide private]
[frames] | no frames]

Source Code for Module fastaComplement

 1  #!/usr/local/bin/python 
 2   
 3   
 4  import fileinput 
 5  import re 
 6  import getopt 
 7  import sys 
 8   
 9  from obitools.fasta import fastaIterator,writeFasta 
10   
11       
12 -def printHelp():
13 print "-----------------------------------" 14 print " fastaComplement.py" 15 print "-----------------------------------" 16 print "fastaComplement.py <fastafile>" 17 print " complement and reverse all sequence in the fasta file" 18 print "-----------------------------------" 19 print "-h --help : print this help" 20 print "-----------------------------------"
21 22 23 if __name__=='__main__': 24 25 fasta = fastaIterator(fileinput.input()) 26 27 for seq in fasta: 28 print writeFasta(seq.complement()) 29