Skip to content

Commit

Permalink
add todo comment to extract method from reused piece of code
Browse files Browse the repository at this point in the history
  • Loading branch information
ashuaibi7 committed Dec 19, 2024
1 parent 4d3100b commit 69a74f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dialect/utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def initialize_gene_objects(cnt_df, bmr_dict):

def initialize_interaction_objects(k, genes):
interactions = []
# TODO move logic to get top genes to a helper function to use across different scripts
top_genes = sorted(genes, key=lambda x: sum(x.counts), reverse=True)[:k]
for gene_a, gene_b in combinations(top_genes, 2):
interactions.append(Interaction(gene_a, gene_b))
Expand Down

0 comments on commit 69a74f2

Please sign in to comment.