You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
added generate_tree function to Kinome object (#51)
* added generate_tree function to Kinome object
* moved generate_tree function to utils.py; created generate_tree wrappers in enrichment results
* improved type checking for NaN values in MEA
* change named path to output_path
Copy file name to clipboardExpand all lines: CHANGELOG.md
+43Lines changed: 43 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,48 @@
1
1
# Changelog
2
2
3
+
## Unreleased
4
+
5
+
Added
6
+
7
+
- New feature for generating kinome tree using same logic as website. Original kinome tree SVG sourced from [CORAL](http://phanstiel-lab.med.unc.edu/CORAL/)
8
+
9
+
## [1.5.0] - 2025-06-27
10
+
11
+
Added
12
+
13
+
- New feature for scoring all the possible phosphosites in an entire protein
14
+
15
+
## [1.4.1] - 2025-06-19
16
+
17
+
Added
18
+
19
+
- Function to retrieve label mapping
20
+
21
+
Changed
22
+
23
+
- Label retrieval method in enrichment modules
24
+
25
+
## [1.4.0] - 2025-06-18
26
+
27
+
Added
28
+
29
+
- New feature for displaying different label types in volcanoes: gene name, protein name, matrix name, or curated display name
30
+
31
+
## [1.3.0] - 2025-05-13
32
+
33
+
Added
34
+
35
+
- New feature for running MEA with custom kinase-substrate sets
36
+
- The kinase-substrate sets used in the MEA to the results
37
+
38
+
Changed
39
+
40
+
- Kinase name in custom sets to uppercase for consistency
raiseValueError(f"Column '{sort_by}' not found in combined enrichment results. Available columns: {self.combined_enrichment_results.columns.tolist()}")
Generic function to generate a colored kinome tree. See DiffPhosEnrichmentResults.generate_tree(), MeaEnrichmentResults.generate_tree(), and EnrichmentResults.generate_tree() for specific implementations.
626
+
627
+
Parameters
628
+
----------
629
+
kinase_matrix : pd.DataFrame
630
+
DataFrame containing kinases as indices and numerical columns to color the nodes. e.g. the output of kl.Substrate('PSVEPPLsQETFSDL').predict()
631
+
output_path : str
632
+
Path to save the tree image.
633
+
color_column : str
634
+
Column name in the kinase matrix to use for coloring the nodes.
635
+
color_thresholds : dict
636
+
Dictionary containing the color thresholds for low, middle, and high values. e.g. { "high": 3.0, "middle": 0.0, "low": -3.0 }.
637
+
node_size : int
638
+
Size of the nodes (SVG circles). Default is 5.
639
+
branch_color : str
640
+
Hex color for the tree branches. Default is "#663636".
641
+
low_color : str
642
+
Hex color for the low end of the heatmap. Default is "#999acf".
643
+
mid_color : str
644
+
Hex color for the midpoint of the heatmap. Default is "#c8c8c8".
645
+
high_color : str
646
+
Hex color for the high end of the heatmap. Default is "#fa6464".
647
+
"""
648
+
649
+
defhex_to_rgb(hex_color):
650
+
"""Convert hex string like '#FF0000' to (255, 0, 0)"""
0 commit comments