-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from saezlab/main
Update dev with changes in main
- Loading branch information
Showing
5 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,4 @@ | |
from ._scperturb import * | ||
from ._nci60 import * | ||
from ._cptac import * | ||
from ._phosphoegf import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
#!/usr/bin/env python | ||
|
||
# | ||
# This file is part of the `networkcommons` Python module | ||
# | ||
# Copyright 2024 | ||
# Heidelberg University Hospital | ||
# | ||
# File author(s): Saez Lab ([email protected]) | ||
# | ||
# Distributed under the GPLv3 license | ||
# See the file `LICENSE` or read a copy at | ||
# https://www.gnu.org/licenses/gpl-3.0.txt | ||
# | ||
|
||
""" | ||
Meta-analysis of phosphoproteomics response to EGF stimulus. | ||
""" | ||
|
||
import pandas as pd | ||
import warnings | ||
|
||
def phospho_egf_datatypes() -> pd.DataFrame: | ||
""" | ||
Table describing the available data types in the Phospho EGF dataset. | ||
Returns: | ||
DataFrame with all data types. | ||
""" | ||
|
||
return pd.DataFrame({ | ||
'type': ['phosphosite', 'kinase'], | ||
'description': ['Differential phosphoproteomics at the site level for all studies in the meta-analysis', | ||
'Kinase activities obtained using each of the kinase-substrate prior knowledge resources'], | ||
}) | ||
|
||
|
||
def phospho_egf_tables(type='diffabundance'): | ||
""" | ||
A table with the corresponding data type for the phospho EGF dataset. | ||
Args: | ||
type: | ||
Either 'diffabundance' or 'kinase_scores'. | ||
Returns: | ||
A DataFrame with the corresponding data. | ||
""" | ||
|
||
if type == 'phosphosite': | ||
out_table = pd.read_csv('https://www.biorxiv.org/content/biorxiv/early/2024/10/22/2024.10.21.619348/DC3/embed/media-3.gz', compression='gzip', low_memory=False) | ||
elif type == 'kinase': | ||
out_table = pd.read_csv('https://www.biorxiv.org/content/biorxiv/early/2024/10/22/2024.10.21.619348/DC4/embed/media-4.gz', compression='gzip', low_memory=False) | ||
else: | ||
warnings.warn(f'Unknown data type "{type}"') | ||
return None | ||
return out_table | ||
|