Skip to content

Commit 9f97001

Browse files
committed
refactor: remove hardcoded filepaths
1 parent 4baf95a commit 9f97001

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

main/como/proteomics_gen.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,13 @@ def abundance_to_bool_group(
5353
quantile,
5454
output_boolean_filepath: Path,
5555
):
56-
"""Descrioption...."""
57-
config = Config()
58-
output_dir = config.result_dir / context_name / "proteomics"
59-
output_dir.mkdir(parents=True, exist_ok=True)
60-
61-
# write group abundances to individual files
62-
abundance_filepath = (
63-
config.result_dir / context_name / "proteomics" / "".join(["protein_abundance_", group_name, ".csv"])
64-
)
56+
"""Convert proteomic data to boolean expression."""
6557
abundance_matrix.to_csv(abundance_filepath, index_label="entrez_gene_id")
66-
protein_transform_main(abundance_matrix, output_dir, group_name)
58+
protein_transform_main(
59+
abundance_df=abundance_matrix,
60+
output_gaussian_img_filepath=output_gaussian_img_filepath,
61+
output_z_score_matrix_filepath=output_z_score_matrix_filepath,
62+
)
6763

6864
# Logical Calculation
6965
abundance_matrix_nozero = abundance_matrix.replace(0, np.nan)

0 commit comments

Comments
 (0)