Skip to content

Commit 207a229

Browse files
author
Brant Faircloth
committed
adding *.fna files and fixing bug in msat scanning
1 parent d145702 commit 207a229

File tree

3 files changed

+19
-17
lines changed

3 files changed

+19
-17
lines changed

main.py

+17-15
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def __init__(self, parent = None, config = 'msatcommander.conf'):
3131
def open(self):
3232
'''get the input filename - mutiple file input is not supported'''
3333
self.infile = QtGui.QFileDialog.getOpenFileName(self,\
34-
"Select Fasta to Search",os.path.expanduser('~'), "Fasta (*.fsa *.fa *.fasta)")
34+
"Select Fasta to Search",os.path.expanduser('~'), "Fasta (*.fsa *.fa *.fasta *.fna)")
3535
# ==================
3636
# = DEBUG EASIFIER =
3737
# ==================
@@ -525,13 +525,14 @@ def readSearchSave(self):
525525
#pdb.set_trace()
526526
# fixing bug in primer number reporting reported by Jarek Byrk
527527
# Max Planck Institute for Evolutionary Biology
528-
locus_specific_primer = record.primers[motif][record.matches[motif].index(match)]
529-
if record.primers:
530-
self.storePrimers(index, msat_index, locus_specific_primer)
531-
if record.primers \
532-
and (self.pigtailPrimersCheckBox.isChecked() \
533-
or self.tagPrimersCheckBox.isChecked()):
534-
self.storeTaggedPrimers(index, msat_index, locus_specific_primer)
528+
if self.designPrimersCheckBox.isChecked():
529+
locus_specific_primer = record.primers[motif][record.matches[motif].index(match)]
530+
if record.primers:
531+
self.storePrimers(index, msat_index, locus_specific_primer)
532+
if record.primers \
533+
and (self.pigtailPrimersCheckBox.isChecked() \
534+
or self.tagPrimersCheckBox.isChecked()):
535+
self.storeTaggedPrimers(index, msat_index, locus_specific_primer)
535536
msat_index += 1
536537

537538
if self.combineLociCheckBox.isChecked():
@@ -560,13 +561,14 @@ def readSearchSave(self):
560561
# ensure the same bug doesn't hit us as above:
561562
#QtCore.pyqtRemoveInputHook()
562563
#pdb.set_trace()
563-
locus_specific_primer = record.primers[motif][pos]
564-
if record.primers:
565-
self.storePrimers(index, combine_index, locus_specific_primer)
566-
if record.primers \
567-
and (self.pigtailPrimersCheckBox.isChecked() \
568-
or self.tagPrimersCheckBox.isChecked()):
569-
self.storeTaggedPrimers(index, combine_index, locus_specific_primer)
564+
if self.designPrimersCheckBox.isChecked():
565+
locus_specific_primer = record.primers[motif][pos]
566+
if record.primers:
567+
self.storePrimers(index, combine_index, locus_specific_primer)
568+
if record.primers \
569+
and (self.pigtailPrimersCheckBox.isChecked() \
570+
or self.tagPrimersCheckBox.isChecked()):
571+
self.storeTaggedPrimers(index, combine_index, locus_specific_primer)
570572
combine_index += 1
571573

572574
self.conn.commit()

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
pass
3939
print 'Building app...'
4040

41-
VER = '1.0.6-beta'
41+
VER = '1.0.8-beta'
4242
NAME = 'msatcommander'
4343
APPNAME = '%s-%s' % (NAME, VER)
4444
FULLAPPNAME = '%s.app' % APPNAME

ui_msatcommander.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def setupUi(self, msatcommander):
397397
msatcommander.setTabOrder(self.customTagCheckBox, self.hexanucSpinBox)
398398

399399
def retranslateUi(self, msatcommander):
400-
msatcommander.setWindowTitle(QtGui.QApplication.translate("msatcommander", "msatcommander-1.0.6-beta", None, QtGui.QApplication.UnicodeUTF8))
400+
msatcommander.setWindowTitle(QtGui.QApplication.translate("msatcommander", "msatcommander-1.0.8-beta", None, QtGui.QApplication.UnicodeUTF8))
401401
self.groupBox.setTitle(QtGui.QApplication.translate("msatcommander", "Search Parameters", None, QtGui.QApplication.UnicodeUTF8))
402402
self.dinucCheckBox.setText(QtGui.QApplication.translate("msatcommander", "Dinucleotide", None, QtGui.QApplication.UnicodeUTF8))
403403
self.pentanucCheckBox.setText(QtGui.QApplication.translate("msatcommander", "Pentanucleotide", None, QtGui.QApplication.UnicodeUTF8))

0 commit comments

Comments
 (0)