Skip to content

Commit a73656b

Browse files
Update bin/epaa.py
Co-authored-by: axelwalter <axel.walter@uni-tuebingen.de>
1 parent 688dbcd commit a73656b

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

bin/epaa.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -828,13 +828,12 @@ def generate_fasta_output(output_filename: str, mutated_proteins: list, mutated_
828828
variant["consequences"]
829829
)
830830

831-
# Skip this variant if it has stop_gained (not in last position) and multiple consequences
832-
if len(new_consequences) > 1 and "stop_gained" in new_consequences[:-1]:
833-
continue
834-
835831
# Update the variant with new consequences if needed (optional)
836832
variant["details_protein"] = ",".join(new_details)
837-
variant["consequences"] = ",".join(new_consequences)
833+
if new_consequences is not None:
834+
variant["consequences"] = ",".join(new_consequences)
835+
else:
836+
variant["consequences"] = ""
838837
filtered_variants.append(variant)
839838

840839
entry["variants"] = filtered_variants

0 commit comments

Comments
 (0)