tfclass-predict 1.1.2__tar.gz → 1.1.4__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.
- {tfclass_predict-1.1.2/src/tfclass_predict.egg-info → tfclass_predict-1.1.4}/PKG-INFO +3 -2
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.4}/README.md +1 -1
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.4}/pyproject.toml +3 -2
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.4}/src/tfclass_predict/predictor.py +16 -12
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.4/src/tfclass_predict.egg-info}/PKG-INFO +3 -2
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.4}/src/tfclass_predict.egg-info/requires.txt +1 -0
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.4}/LICENSE +0 -0
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.4}/setup.cfg +0 -0
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.4}/src/tfclass_predict/__init__.py +0 -0
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.4}/src/tfclass_predict/cli_interface.py +0 -0
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.4}/src/tfclass_predict/constants.py +0 -0
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.4}/src/tfclass_predict/io_interface.py +0 -0
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.4}/src/tfclass_predict/prediction_manager.py +0 -0
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.4}/src/tfclass_predict/sequence_processor.py +0 -0
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.4}/src/tfclass_predict.egg-info/SOURCES.txt +0 -0
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.4}/src/tfclass_predict.egg-info/dependency_links.txt +0 -0
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.4}/src/tfclass_predict.egg-info/entry_points.txt +0 -0
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.4}/src/tfclass_predict.egg-info/top_level.txt +0 -0
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.4}/tests/test_parsing.py +0 -0
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.4}/tests/test_predictionmanager.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tfclass_predict
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.4
|
|
4
4
|
Summary: tfclass_predict allows to estimate transcription factor bindingsites in the TFClass hierarchy.
|
|
5
5
|
Author-email: Christian Ickes <christian.ickes@med.uni-goettingen.de>, Hazal Timucin <hazal.timucin@med.uni-goettingen.de>
|
|
6
6
|
Project-URL: Homepage, https://gitlab.gwdg.de/hti/tfclass_dnabert
|
|
@@ -23,6 +23,7 @@ Requires-Dist: numpy
|
|
|
23
23
|
Requires-Dist: pandas
|
|
24
24
|
Requires-Dist: pyBigWig
|
|
25
25
|
Requires-Dist: tf-keras
|
|
26
|
+
Requires-Dist: tqdm
|
|
26
27
|
Dynamic: license-file
|
|
27
28
|
|
|
28
29
|
# TFClassPredict
|
|
@@ -53,7 +54,7 @@ Alternatively, the human genome (v38) and the TFClassPredict (TFCP) model can be
|
|
|
53
54
|
|
|
54
55
|
[HG38](http://hgdownload.soe.ucsc.edu/goldenPath/hg38/bigZips/hg38.fa.gz) from UCSC
|
|
55
56
|
|
|
56
|
-
[TFCP_model](https://owncloud.gwdg.de/index.php/s/
|
|
57
|
+
[TFCP_model](https://owncloud.gwdg.de/index.php/s/QqfAJqcRYbnA5VZ)
|
|
57
58
|
|
|
58
59
|
All downloads need to be **unzipped** so that the path to `TFCP_precompiled` directory or the path to the `hg38.fa` file and directory `TFCP_model` can be passed to the command-line tool or `PredictionManager`.
|
|
59
60
|
|
|
@@ -26,7 +26,7 @@ Alternatively, the human genome (v38) and the TFClassPredict (TFCP) model can be
|
|
|
26
26
|
|
|
27
27
|
[HG38](http://hgdownload.soe.ucsc.edu/goldenPath/hg38/bigZips/hg38.fa.gz) from UCSC
|
|
28
28
|
|
|
29
|
-
[TFCP_model](https://owncloud.gwdg.de/index.php/s/
|
|
29
|
+
[TFCP_model](https://owncloud.gwdg.de/index.php/s/QqfAJqcRYbnA5VZ)
|
|
30
30
|
|
|
31
31
|
All downloads need to be **unzipped** so that the path to `TFCP_precompiled` directory or the path to the `hg38.fa` file and directory `TFCP_model` can be passed to the command-line tool or `PredictionManager`.
|
|
32
32
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "tfclass_predict"
|
|
7
|
-
version = "1.1.
|
|
7
|
+
version = "1.1.4"
|
|
8
8
|
authors = [
|
|
9
9
|
{ name="Christian Ickes", email="christian.ickes@med.uni-goettingen.de" },
|
|
10
10
|
{ name="Hazal Timucin", email="hazal.timucin@med.uni-goettingen.de" },
|
|
@@ -31,7 +31,8 @@ dependencies = [
|
|
|
31
31
|
"numpy",
|
|
32
32
|
"pandas",
|
|
33
33
|
"pyBigWig",
|
|
34
|
-
"tf-keras"
|
|
34
|
+
"tf-keras",
|
|
35
|
+
"tqdm"
|
|
35
36
|
]
|
|
36
37
|
|
|
37
38
|
[project.urls]
|
|
@@ -4,7 +4,7 @@ import numpy as np
|
|
|
4
4
|
import pyBigWig as pbw
|
|
5
5
|
import pandas as pd
|
|
6
6
|
import os
|
|
7
|
-
|
|
7
|
+
from tqdm import tqdm
|
|
8
8
|
from .constants import MODELNAME, THRESHOLDS, TOKENIZERFOLDERNAME, K, CLASSMAPPING, WINDOWSIZE, BATCHSIZE
|
|
9
9
|
from .sequence_processor import SequenceProcessor
|
|
10
10
|
|
|
@@ -78,7 +78,6 @@ class PredictorTFCPModel(Predictor):
|
|
|
78
78
|
count_df = pd.DataFrame(count_mat.astype(int), columns=self.classmapping["Class"])
|
|
79
79
|
return count_df
|
|
80
80
|
|
|
81
|
-
# Currently under development
|
|
82
81
|
class PredictorPrecompiled(Predictor):
|
|
83
82
|
""" Predictor class takes care about the prediction / model execution using the hg38 precompiled set"""
|
|
84
83
|
def __init__(self, bed:pd.DataFrame, precompiled_file_path:str):
|
|
@@ -93,14 +92,15 @@ class PredictorPrecompiled(Predictor):
|
|
|
93
92
|
count_mat = np.zeros(((end-start-WINDOWSIZE+1), len(self.tfbs_files)))
|
|
94
93
|
for idx, tfclass_file in enumerate(self.tfbs_files):
|
|
95
94
|
bb = pbw.open(tfclass_file)
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
95
|
+
if (end) > bb.chroms(chrom): # interval must be completely included
|
|
96
|
+
end = bb.chroms(chrom)
|
|
97
|
+
|
|
98
|
+
entries = bb.entries(chrom, start, end)
|
|
99
|
+
if entries:
|
|
100
|
+
for entry in entries:
|
|
101
|
+
if entry[0] >= start and entry[1] <= end: # only fully included intervals
|
|
102
|
+
i = entry[0]-start
|
|
103
|
+
count_mat[i, idx] += 1
|
|
104
104
|
count_vec = np.sum(count_mat, axis=0)
|
|
105
105
|
return count_vec
|
|
106
106
|
|
|
@@ -111,9 +111,13 @@ class PredictorPrecompiled(Predictor):
|
|
|
111
111
|
:return: DataFrame of predicted TFBSs per region in BED file.
|
|
112
112
|
"""
|
|
113
113
|
|
|
114
|
+
print("Processing using precompiled data set!")
|
|
114
115
|
count_mat = np.zeros((self.bed.shape[0], len(self.tfbs_files)))
|
|
115
|
-
|
|
116
|
-
|
|
116
|
+
|
|
117
|
+
with tqdm(total=self.bed.shape[0], ncols=50) as pbar:
|
|
118
|
+
for idx, row in self.bed.iterrows():
|
|
119
|
+
count_mat[idx, :] = self._predict_precompiled(row["chr"], row["start"], row["end"])
|
|
120
|
+
pbar.update(1)
|
|
117
121
|
|
|
118
122
|
count_df = pd.DataFrame(count_mat.astype(int), columns=self.classmapping["Class"])
|
|
119
123
|
return count_df
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tfclass_predict
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.4
|
|
4
4
|
Summary: tfclass_predict allows to estimate transcription factor bindingsites in the TFClass hierarchy.
|
|
5
5
|
Author-email: Christian Ickes <christian.ickes@med.uni-goettingen.de>, Hazal Timucin <hazal.timucin@med.uni-goettingen.de>
|
|
6
6
|
Project-URL: Homepage, https://gitlab.gwdg.de/hti/tfclass_dnabert
|
|
@@ -23,6 +23,7 @@ Requires-Dist: numpy
|
|
|
23
23
|
Requires-Dist: pandas
|
|
24
24
|
Requires-Dist: pyBigWig
|
|
25
25
|
Requires-Dist: tf-keras
|
|
26
|
+
Requires-Dist: tqdm
|
|
26
27
|
Dynamic: license-file
|
|
27
28
|
|
|
28
29
|
# TFClassPredict
|
|
@@ -53,7 +54,7 @@ Alternatively, the human genome (v38) and the TFClassPredict (TFCP) model can be
|
|
|
53
54
|
|
|
54
55
|
[HG38](http://hgdownload.soe.ucsc.edu/goldenPath/hg38/bigZips/hg38.fa.gz) from UCSC
|
|
55
56
|
|
|
56
|
-
[TFCP_model](https://owncloud.gwdg.de/index.php/s/
|
|
57
|
+
[TFCP_model](https://owncloud.gwdg.de/index.php/s/QqfAJqcRYbnA5VZ)
|
|
57
58
|
|
|
58
59
|
All downloads need to be **unzipped** so that the path to `TFCP_precompiled` directory or the path to the `hg38.fa` file and directory `TFCP_model` can be passed to the command-line tool or `PredictionManager`.
|
|
59
60
|
|
|
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
|
{tfclass_predict-1.1.2 → tfclass_predict-1.1.4}/src/tfclass_predict.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{tfclass_predict-1.1.2 → tfclass_predict-1.1.4}/src/tfclass_predict.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|