tfclass-predict 1.1.2__tar.gz → 1.1.3__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.3}/PKG-INFO +2 -1
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.3}/pyproject.toml +3 -2
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.3}/src/tfclass_predict/predictor.py +7 -4
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.3/src/tfclass_predict.egg-info}/PKG-INFO +2 -1
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.3}/src/tfclass_predict.egg-info/requires.txt +1 -0
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.3}/LICENSE +0 -0
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.3}/README.md +0 -0
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.3}/setup.cfg +0 -0
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.3}/src/tfclass_predict/__init__.py +0 -0
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.3}/src/tfclass_predict/cli_interface.py +0 -0
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.3}/src/tfclass_predict/constants.py +0 -0
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.3}/src/tfclass_predict/io_interface.py +0 -0
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.3}/src/tfclass_predict/prediction_manager.py +0 -0
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.3}/src/tfclass_predict/sequence_processor.py +0 -0
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.3}/src/tfclass_predict.egg-info/SOURCES.txt +0 -0
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.3}/src/tfclass_predict.egg-info/dependency_links.txt +0 -0
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.3}/src/tfclass_predict.egg-info/entry_points.txt +0 -0
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.3}/src/tfclass_predict.egg-info/top_level.txt +0 -0
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.3}/tests/test_parsing.py +0 -0
- {tfclass_predict-1.1.2 → tfclass_predict-1.1.3}/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.3
|
|
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
|
|
@@ -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.3"
|
|
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
|
|
|
@@ -93,7 +93,6 @@ class PredictorPrecompiled(Predictor):
|
|
|
93
93
|
count_mat = np.zeros(((end-start-WINDOWSIZE+1), len(self.tfbs_files)))
|
|
94
94
|
for idx, tfclass_file in enumerate(self.tfbs_files):
|
|
95
95
|
bb = pbw.open(tfclass_file)
|
|
96
|
-
print("Processing: {}".format(self.tfbs_files[idx].split(os.sep)[-1]))
|
|
97
96
|
if (end) < bb.chroms(chrom): # interval must be completely included
|
|
98
97
|
entries = bb.entries(chrom, start, end)
|
|
99
98
|
if entries:
|
|
@@ -111,9 +110,13 @@ class PredictorPrecompiled(Predictor):
|
|
|
111
110
|
:return: DataFrame of predicted TFBSs per region in BED file.
|
|
112
111
|
"""
|
|
113
112
|
|
|
113
|
+
print("Processing using precompiled data set!")
|
|
114
114
|
count_mat = np.zeros((self.bed.shape[0], len(self.tfbs_files)))
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
|
|
116
|
+
with tqdm(total=self.bed.shape[0], ncols=50) as pbar:
|
|
117
|
+
for idx, row in self.bed.iterrows():
|
|
118
|
+
count_mat[idx, :] = self._predict_precompiled(row["chr"], row["start"], row["end"])
|
|
119
|
+
pbar.update(1)
|
|
117
120
|
|
|
118
121
|
count_df = pd.DataFrame(count_mat.astype(int), columns=self.classmapping["Class"])
|
|
119
122
|
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.3
|
|
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
|
|
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
|
{tfclass_predict-1.1.2 → tfclass_predict-1.1.3}/src/tfclass_predict.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{tfclass_predict-1.1.2 → tfclass_predict-1.1.3}/src/tfclass_predict.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|