alteration_links = [j.split(")")[0] for j in [i.split("(")[1] for i in row["Alterations"].split(", ")]]
expected row["Alterations"]: EGFR (P546S), EGFR (G598V), EGFR (E690K), EGFR (S768I)
unexpected: PDGFRA wildtype -> throws index error as index 1 does not exist for 1-element-list.
cgi_results/biomarkers.tsv: lines 476-479
```
input01 EGFR (P546S), EGFR (G598V), EGFR (E690K), EGFR (S768I) EGFR (T790M) Afatinib (ERBB2 inhibitor&EGFR inhibitor 2nd gen) Lung Resistant A YES NCCN only alteration type L
input01 PTEN (R233Q) PTEN biallelic inactivation Panitumumab (EGFR mAb inhibitor) Colorectal adenocarcinoma Resistant C YES Caris molecular intelligence only alteration type COREAD
input01 FLT3 (D835E) FLT3 (D835,Y842) Ponatinib (BCR-ABL inhibitor 3rd gen&Pan-TK inhibitor) Acute myeloid leukemia Resistant D YES PMID:23430109 complete AML
input01 PDGFRA wildtype PDGFRA wildtype Dasatinib (BCR-ABL inhibitor 2nd gen) Gastrointestinal stromal Responsive D YES PMID:16397263 complete GIST
```
why did this bug occur now?
the unexpected entry was already there when create-report ran through without issues
Description of the bug
the input used, was the result of a
variantMTB
call on the variantmtb test dataset.querynator create-report
suddenly fails and throws index error. I did not have a problem with the same data before.error is thrown in combine_cgi::get_all_alterations:
expected row["Alterations"]:
EGFR (P546S), EGFR (G598V), EGFR (E690K), EGFR (S768I)
unexpected:PDGFRA wildtype
-> throws index error as index 1 does not exist for 1-element-list.cgi_results/biomarkers.tsv: lines 476-479
``` input01 EGFR (P546S), EGFR (G598V), EGFR (E690K), EGFR (S768I) EGFR (T790M) Afatinib (ERBB2 inhibitor&EGFR inhibitor 2nd gen) Lung Resistant A YES NCCN only alteration type L input01 PTEN (R233Q) PTEN biallelic inactivation Panitumumab (EGFR mAb inhibitor) Colorectal adenocarcinoma Resistant C YES Caris molecular intelligence only alteration type COREAD input01 FLT3 (D835E) FLT3 (D835,Y842) Ponatinib (BCR-ABL inhibitor 3rd gen&Pan-TK inhibitor) Acute myeloid leukemia Resistant D YES PMID:23430109 complete AML input01 PDGFRA wildtype PDGFRA wildtype Dasatinib (BCR-ABL inhibitor 2nd gen) Gastrointestinal stromal Responsive D YES PMID:16397263 complete GIST ```
why did this bug occur now?
create-report
ran through without issuesCommand used and terminal output
System information
python=3.10
hardware: replicated on local machine as well as on server
local uname -a
``` Linux rechenmaschine02 5.10.0-1057-oem #61-Ubuntu SMP Thu Jan 13 15:06:11 UTC 2022 x86_64 GNU/Linux ```
server uname -a
``` Linux thanos.am10.uni-tubingen.de 5.14.0-362.18.1.el9_3.0.1.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Feb 11 13:49:23 UTC 2024 x86_64 GNU/Linux ```