Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Anders Jemt <jemten@users.noreply.github.com>
  • Loading branch information
Lucpen and jemten authored Dec 12, 2023
1 parent ee05869 commit 00bab64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/drop_filter_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)


Expand Down

0 comments on commit 00bab64

Please sign in to comment.