changeset 1:ef007adcbbf8 draft default tip

planemo upload for repository https://bitbucket.org/drosofff/gedtools/
author drosofff
date Sat, 20 Jun 2015 07:55:35 -0400
parents 7b4212122a49
children
files blastn_to_scaffold.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/blastn_to_scaffold.py	Fri Jun 12 12:27:30 2015 -0400
+++ b/blastn_to_scaffold.py	Sat Jun 20 07:55:35 2015 -0400
@@ -91,7 +91,10 @@
             orientation = "direct"
         sequence = getseq (ContigsDict, seqHeader, queryStart, queryStop, orientation)
         for i in range(subjectStart, subjectStop+1):
-            del GuideDict[i]
+            try:
+                del GuideDict[i]
+            except KeyError:
+                continue
         for i, nucleotide in enumerate(sequence):
             GuideDict[i+subjectStart] = nucleotide