Skip to content

Commit

Permalink
fix(analysis): parameterize top mae genes gene filter
Browse files Browse the repository at this point in the history
Signed-off-by: Cameron Smith <cameron.ray.smith@gmail.com>
  • Loading branch information
cameronraysmith committed Sep 6, 2024
1 parent 917ee7f commit 882f27e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pyrovelocity/analysis/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ def top_mae_genes(
mae_top_percentile: int | float = 10.0,
min_genes_per_bin: int = 2,
max_genes_per_bin: Optional[int] = None,
gene_name_filter: str = "^Act|^Rpl|^Rps",
) -> List[str]:
"""
Identify top genes based on Mean Absolute Error (MAE) percentile, excluding ribosomal genes,
Expand All @@ -361,7 +362,7 @@ def top_mae_genes(
)

filtered_data = volcano_data[
~volcano_data.index.str.contains(("^Rpl|^Rps"), case=False)
~volcano_data.index.str.contains(("^Act|^Rpl|^Rps"), case=False)
]

filtered_data["time_corr_bin"] = pd.cut(
Expand Down

0 comments on commit 882f27e

Please sign in to comment.