Skip to content

Commit

Permalink
Merge pull request #462 from griffithlab/hotfix_pvacbind
Browse files Browse the repository at this point in the history
Update all output parsers to handle IEDB files with Warning line
  • Loading branch information
susannasiebert authored Oct 25, 2019
2 parents 2b234b2 + 90a7581 commit 6b8a8ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ install:
- pip install tornado==5.0.2
- pip install jsonschema==2.6.0
- pip install mhcnuggets==2.2
- pip install tensorflow==1.14.0
- pip install keras==2.2.5
services:
- postgresql
script:
Expand Down
4 changes: 4 additions & 0 deletions lib/output_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,8 @@ def parse_iedb_file(self, tsv_entries):
iedb_tsv_reader = csv.DictReader(reader, delimiter='\t')
(sample, method, remainder) = os.path.basename(input_iedb_file).split(".", 2)
for line in iedb_tsv_reader:
if "Warning: Potential DNA sequence(s)" in line['allele']:
continue
protein_label = int(line['seq_num'])
if 'core_peptide' in line:
position = str(int(line['start']) - line['peptide'].find(line['core_peptide']))
Expand Down Expand Up @@ -596,6 +598,8 @@ def parse_iedb_file(self):
iedb_tsv_reader = csv.DictReader(reader, delimiter='\t')
(sample, method, remainder) = os.path.basename(input_iedb_file).split(".", 2)
for line in iedb_tsv_reader:
if "Warning: Potential DNA sequence(s)" in line['allele']:
continue
protein_label = int(line['seq_num'])
if 'core_peptide' in line:
position = str(int(line['start']) - line['peptide'].find(line['core_peptide']))
Expand Down

0 comments on commit 6b8a8ca

Please sign in to comment.