Commit 3fc1e4da by Riccardo Vicedomini

skip logo generation if there are no conserved positions only for the appropriate logo

parent cfb5aa85
...@@ -241,11 +241,8 @@ def main( argv = None ): ...@@ -241,11 +241,8 @@ def main( argv = None ):
#queryConsensus = [ qc for i,qc in enumerate(hhm.consensus) ] # if hhm.conserved[i] ] #queryConsensus = [ qc for i,qc in enumerate(hhm.consensus) ] # if hhm.conserved[i] ]
#queryCovered = BitVector(size=len(hhm.master_seq)) #queryCovered = BitVector(size=len(hhm.master_seq))
# skip if no conserved positions
if hhm.conserved.count_bits() <= 0:
continue
# output sequence logo restricted to conserved positions # output sequence logo restricted to conserved positions
if hhm.conserved.count_bits() > 0:
with open( "{}/{}.fas".format( args.fasDir, queryName ), 'r' ) as fas: with open( "{}/{}.fas".format( args.fasDir, queryName ), 'r' ) as fas:
fas_str = "" fas_str = ""
for rec in SeqIO.parse(fas,'fasta'): for rec in SeqIO.parse(fas,'fasta'):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment