Skip to content

Commit

Permalink
added gap primer output
Browse files Browse the repository at this point in the history
  • Loading branch information
preciserobot committed Sep 20, 2016
1 parent 058cee8 commit ac01c37
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zippy/zippy.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,10 @@ def getPrimers(intervals, db, design, config, deep=True, rename=None, compatible
primerTable.append([unquote(intervals[1].name)] + str(rankedPairs[0][3]).split('\t'))
primerVariants[rankedPairs[0][2]].append(intervals[0])
primerVariants[rankedPairs[0][3]].append(intervals[1])
# add gap interval
gapInterval = Interval(intervals[0].chrom, intervals[0].chromStart, intervals[1].chromEnd)
gapPrimerPair = PrimerPair([rankedPairs[0][2][0], rankedPairs[0][3][1]], name='gap_'+gapInterval.name )
primerTable.append([unquote(gapInterval.name)] + str(gapPrimerPair).split('\t'))
else:
missedIntervals = intervals
else:
Expand Down

0 comments on commit ac01c37

Please sign in to comment.