python-katlas 0.0.5__tar.gz → 0.0.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python-katlas-0.0.5/python_katlas.egg-info → python-katlas-0.0.7}/PKG-INFO +1 -1
- python-katlas-0.0.7/katlas/__init__.py +1 -0
- {python-katlas-0.0.5 → python-katlas-0.0.7}/katlas/core.py +10 -2
- {python-katlas-0.0.5 → python-katlas-0.0.7/python_katlas.egg-info}/PKG-INFO +1 -1
- {python-katlas-0.0.5 → python-katlas-0.0.7}/python_katlas.egg-info/requires.txt +1 -0
- {python-katlas-0.0.5 → python-katlas-0.0.7}/settings.ini +2 -2
- python-katlas-0.0.5/katlas/__init__.py +0 -1
- {python-katlas-0.0.5 → python-katlas-0.0.7}/LICENSE +0 -0
- {python-katlas-0.0.5 → python-katlas-0.0.7}/MANIFEST.in +0 -0
- {python-katlas-0.0.5 → python-katlas-0.0.7}/README.md +0 -0
- {python-katlas-0.0.5 → python-katlas-0.0.7}/katlas/_modidx.py +0 -0
- {python-katlas-0.0.5 → python-katlas-0.0.7}/katlas/dl.py +0 -0
- {python-katlas-0.0.5 → python-katlas-0.0.7}/katlas/feature.py +0 -0
- {python-katlas-0.0.5 → python-katlas-0.0.7}/katlas/imports.py +0 -0
- {python-katlas-0.0.5 → python-katlas-0.0.7}/katlas/plot.py +0 -0
- {python-katlas-0.0.5 → python-katlas-0.0.7}/katlas/train.py +0 -0
- {python-katlas-0.0.5 → python-katlas-0.0.7}/python_katlas.egg-info/SOURCES.txt +0 -0
- {python-katlas-0.0.5 → python-katlas-0.0.7}/python_katlas.egg-info/dependency_links.txt +0 -0
- {python-katlas-0.0.5 → python-katlas-0.0.7}/python_katlas.egg-info/entry_points.txt +0 -0
- {python-katlas-0.0.5 → python-katlas-0.0.7}/python_katlas.egg-info/not-zip-safe +0 -0
- {python-katlas-0.0.5 → python-katlas-0.0.7}/python_katlas.egg-info/top_level.txt +0 -0
- {python-katlas-0.0.5 → python-katlas-0.0.7}/setup.cfg +0 -0
- {python-katlas-0.0.5 → python-katlas-0.0.7}/setup.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.0.6"
|
|
@@ -395,6 +395,7 @@ def predict_kinase(input_string: str, # site sequence
|
|
|
395
395
|
ref: pd.DataFrame, # reference dataframe for scoring
|
|
396
396
|
func: Callable, # function to calculate score
|
|
397
397
|
to_lower: bool=False, # convert capital STY to lower case
|
|
398
|
+
to_upper: bool=False, # convert all letter to uppercase
|
|
398
399
|
verbose=True
|
|
399
400
|
):
|
|
400
401
|
"Predict kinase given a phosphorylation site sequence"
|
|
@@ -408,6 +409,10 @@ def predict_kinase(input_string: str, # site sequence
|
|
|
408
409
|
# If to_lower is True, convert STY in the sequence to lower case
|
|
409
410
|
if to_lower:
|
|
410
411
|
input_string = STY2sty(input_string)
|
|
412
|
+
|
|
413
|
+
# If to_upper is True, convert the sequence to all uppercase
|
|
414
|
+
if to_upper:
|
|
415
|
+
input_string = input_string.upper()
|
|
411
416
|
|
|
412
417
|
results = [] # Initialize a list to store the scores for each kinase
|
|
413
418
|
|
|
@@ -446,10 +451,10 @@ param_PSPA = {'ref':Data.get_pspa_all_norm(), 'func':multiply().func}
|
|
|
446
451
|
|
|
447
452
|
# Kinase-substrate dataset, CDDM
|
|
448
453
|
param_CDDM = {'ref':Data.get_cddm(), 'func':sumup}
|
|
449
|
-
param_CDDM_upper = {'ref':Data.get_cddm_upper(), 'func':sumup} # specific for all uppercase
|
|
454
|
+
param_CDDM_upper = {'ref':Data.get_cddm_upper(), 'func':sumup, 'to_upper':True} # specific for all uppercase
|
|
450
455
|
|
|
451
456
|
# %% ../nbs/00_core.ipynb 46
|
|
452
|
-
def predict_kinase_df(df, seq_col, ref, func, to_lower=False):
|
|
457
|
+
def predict_kinase_df(df, seq_col, ref, func, to_lower=False, to_upper=False):
|
|
453
458
|
print('input dataframe has a length', df.shape[0])
|
|
454
459
|
print('Preprocessing')
|
|
455
460
|
|
|
@@ -466,6 +471,9 @@ def predict_kinase_df(df, seq_col, ref, func, to_lower=False):
|
|
|
466
471
|
if to_lower:
|
|
467
472
|
df[seq_col] = df[seq_col].apply(STY2sty)
|
|
468
473
|
|
|
474
|
+
if to_upper:
|
|
475
|
+
df[seq_col] = df[seq_col].str.upper()
|
|
476
|
+
|
|
469
477
|
# Adjust sequence lengths to match the reference matrix's expected inputs
|
|
470
478
|
max_value = ref.columns.str[:-1].astype(int).max() # Get the highest position index from the reference columns
|
|
471
479
|
min_value = ref.columns.str[:-1].astype(int).min() # Get the lowest position index
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
### Python library ###
|
|
6
6
|
repo = python-katlas
|
|
7
7
|
lib_name = %(repo)s
|
|
8
|
-
version = 0.0.
|
|
8
|
+
version = 0.0.7
|
|
9
9
|
min_python = 3.7
|
|
10
10
|
license = apache2
|
|
11
11
|
black_formatting = False
|
|
@@ -38,6 +38,6 @@ status = 3
|
|
|
38
38
|
user = sky1ove
|
|
39
39
|
|
|
40
40
|
### Optional ###
|
|
41
|
-
requirements = statsmodels fastparquet tqdm
|
|
41
|
+
requirements = statsmodels fastparquet tqdm joblib
|
|
42
42
|
dev_requirements = nbdev pyngrok fastai>=2.7.12 fastbook fairscale fair-esm logomaker seaborn rdkit umap-learn adjustText bokeh scikit-learn>=1.3.0 openpyxl
|
|
43
43
|
# console_scripts =
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.0.3"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|