diff --git a/lib/output_parser.py b/lib/output_parser.py index 346b69fb1..7c839ad44 100644 --- a/lib/output_parser.py +++ b/lib/output_parser.py @@ -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'])) @@ -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']))