Commit c2299a1f authored by Mathieu Courcelles's avatar Mathieu Courcelles

Fixes support for Kojak 1.6.0-dev (Issue #27)

Incorrect text with field.
parent 63d44479
Pipeline #15339057 passed with stage
in 2 minutes and 16 seconds
......@@ -439,7 +439,7 @@ class CLPeptide(AdminURLMixin, models.Model):
link_type = models.CharField(max_length=50, choices=LINK_TYPE_CHOICES)
cross_link = models.BooleanField('Inter-peptide cross-link', default=False)
cross_link = models.BooleanField('Cross-link', default=False)
not_decoy = models.BooleanField(default=False)
......
......@@ -126,11 +126,13 @@ class KojakParser:
fields['delta'] = row['dScore']
fields['error'] = row['PPM Error']
row['Peptide #1'] = row['Peptide #1'].replace('-15N', '')
fields['peptide1'] = row['Peptide #1']
fields['peptide_wo_mod1'] = re.sub('(\[.+?\])', '', row['Peptide #1'])
fields['peptide_position1'] = -1
row['Peptide #2'] = row['Peptide #2'].replace('-15N', '')
fields['peptide2'] = row['Peptide #2']
fields['peptide_wo_mod2'] = re.sub('(\[.+?\])', '', row['Peptide #2'])
fields['peptide_position2'] = -1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment