changeset 16:0e820310d4dc draft

Uploaded
author petr-novak
date Wed, 04 Sep 2019 06:45:18 -0400
parents 3151a72a6671
children 1a766f9f623d
files coverage2gff.py parse_aln.py test-data/toolshed.g2.bx.psu.edu_repos_petr-novak_dante_dante_1.0.0.tgz
diffstat 3 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/coverage2gff.py	Tue Sep 03 05:20:02 2019 -0400
+++ b/coverage2gff.py	Wed Sep 04 06:45:18 2019 -0400
@@ -36,7 +36,6 @@
         d = {}
         for name, prof in zip(p, p):
             d[name[1:].strip()] = [int(i) for i in prof.split()]
-    print(d, file=sys.stderr)
     return d
 
 
--- 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
Binary file test-data/toolshed.g2.bx.psu.edu_repos_petr-novak_dante_dante_1.0.0.tgz has changed