Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed stOOpid bug in main loop.

  • Loading branch information...
commit 504f31b4f747b0f6f547421a718083e005da8777 1 parent 8401af6
Damien Leroux authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 primer3tofasta.py
8 primer3tofasta.py
View
@@ -40,16 +40,16 @@ def __init__(self):
def add_line(self, l):
try:
if self.left is None:
- print "left>", l
+ #print "left>", l
fields = LEFT_RE.match(l).groups()
self.num = int(fields[0])
self.left = dict(zip(lr_fields, match2type(fields[1:])))
elif self.right is None:
- print "right>", l
+ #print "right>", l
fields = RIGHT_RE.match(l).groups()
self.right = dict(zip(lr_fields, match2type(fields)))
elif self.product_size is None:
- print "misc>", l
+ #print "misc>", l
self.product_size, self.pair_any_compl, self.pair_3_compl = (
PRODUCT_SIZE_RE.match(l).groups())
return self.product_size is not None
@@ -114,7 +114,7 @@ def primer_to_fasta(p, lr, pfields):
if __name__ == '__main__':
for inputfile in sys.argv[1:]:
- inputfile = sys.argv[1]
+ print "processing", inputfile
test = primer3_parse(inputfile)
output = map(lambda p: primer_to_fasta(p, 'left', p.left)
+ primer_to_fasta(p, 'right', p.right),
Please sign in to comment.
Something went wrong with that request. Please try again.