From 00bab64616bc44a3e77fe8891519278df98ac7d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luc=C3=ADa=20Pe=C3=B1a-P=C3=A9rez?= Date: Tue, 12 Dec 2023 09:32:25 -0600 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Anders Jemt --- bin/drop_filter_results.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/drop_filter_results.py b/bin/drop_filter_results.py index 644f46b5..ed169ff1 100755 --- a/bin/drop_filter_results.py +++ b/bin/drop_filter_results.py @@ -36,7 +36,7 @@ def filter_by_gene_panel( ) -> DataFrame: """Filter out from results any gene that is not present in the provided gene panel.""" if case_id != "": - case_id_ = f"{case_id}_" + case_id += "_" if gene_panel != "None": df_panel: DataFrame = read_csv( gene_panel, sep="\t", names=GENE_PANEL_HEADER, header=None, comment="#", index_col=False @@ -46,7 +46,7 @@ def filter_by_gene_panel( df_family_top_hits, left_on="hgnc_symbol", right_on="hgncSymbol" ) df_clinical = df_clinical.drop(columns=["hgnc_symbol"]) - file_name = f"{case_id_}{module_name}_{output_file_subfix}.tsv" + file_name = f"{case_id}{module_name}_{output_file_subfix}.tsv" df_clinical.to_csv(file_name, sep="\t", index=False, header=True)