diff parse_aln.py @ 16:0e820310d4dc draft

Uploaded
author petr-novak
date Wed, 04 Sep 2019 06:45:18 -0400
parents 3151a72a6671
children
line wrap: on
line diff
--- a/parse_aln.py	Tue Sep 03 05:20:02 2019 -0400
+++ b/parse_aln.py	Wed Sep 04 06:45:18 2019 -0400
@@ -41,7 +41,7 @@
 
 
 def get_header(f):
-    aln_header = ".    :    .    :    .    :    .    :    .    :    .    :"
+    aln_header = "    .    :    .    :    .    :    .    :    .    :    .    :"
     contig_lead = "******************"
     aln_start = -1
     while True:
@@ -63,7 +63,7 @@
     pos = f.tell()
     line = f.readline()
     # detect next contig or end of file
-    if "********" in line or line == "":
+    if "********" in line or line == "" or "Number of segment pairs = " in line:
         segment = False
     else:
         segment = True