PyOVERCAST 1.0.10__tar.gz → 1.0.12__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.
- {pyovercast-1.0.10 → pyovercast-1.0.12}/PKG-INFO +1 -1
- {pyovercast-1.0.10 → pyovercast-1.0.12}/PyOVERCAST/predict.py +7 -4
- {pyovercast-1.0.10 → pyovercast-1.0.12}/PyOVERCAST.egg-info/PKG-INFO +1 -1
- {pyovercast-1.0.10 → pyovercast-1.0.12}/pyproject.toml +1 -1
- {pyovercast-1.0.10 → pyovercast-1.0.12}/LICENSE +0 -0
- {pyovercast-1.0.10 → pyovercast-1.0.12}/PyOVERCAST/__init__.py +0 -0
- {pyovercast-1.0.10 → pyovercast-1.0.12}/PyOVERCAST/clinks.py +0 -0
- {pyovercast-1.0.10 → pyovercast-1.0.12}/PyOVERCAST.egg-info/SOURCES.txt +0 -0
- {pyovercast-1.0.10 → pyovercast-1.0.12}/PyOVERCAST.egg-info/dependency_links.txt +0 -0
- {pyovercast-1.0.10 → pyovercast-1.0.12}/PyOVERCAST.egg-info/entry_points.txt +0 -0
- {pyovercast-1.0.10 → pyovercast-1.0.12}/PyOVERCAST.egg-info/requires.txt +0 -0
- {pyovercast-1.0.10 → pyovercast-1.0.12}/PyOVERCAST.egg-info/top_level.txt +0 -0
- {pyovercast-1.0.10 → pyovercast-1.0.12}/README.md +0 -0
- {pyovercast-1.0.10 → pyovercast-1.0.12}/setup.cfg +0 -0
|
@@ -529,12 +529,15 @@ def permutation(gene_set, gene_list):
|
|
|
529
529
|
gene_sample = random.sample(diff_idx, min(gene_set0.shape[0], len(diff_idx)))
|
|
530
530
|
|
|
531
531
|
set1_values = []
|
|
532
|
-
|
|
532
|
+
col1 = gene_set0.columns[1]
|
|
533
|
+
set0_max, set0_min = gene_set0.loc[gene_set0[col1] >= 0.0, col1].min(), gene_set0.loc[gene_set0[col1] <= 0.0, col1].max()
|
|
533
534
|
set0_range = set0_max - set0_min
|
|
534
535
|
if set0_range < 0.0:
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
536
|
+
for gene in gene_sample:
|
|
537
|
+
set1_values.append(random.uniform(set0_max, set0_min) + (random.uniform(1E-15, 1E-10) * random.choice([1, -1])))
|
|
538
|
+
else:
|
|
539
|
+
for gene in gene_sample:
|
|
540
|
+
set1_values.append(random.uniform(set0_min, set0_max) + (random.uniform(1E-15, 1E-10) * random.choice([1, -1])))
|
|
538
541
|
|
|
539
542
|
gene_set1 = pd.DataFrame({"gene": gene_sample, "logFC": set1_values}, index=gene_sample)
|
|
540
543
|
gene_set_pt = pd.concat([gene_set0, gene_set1], axis=0)
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "PyOVERCAST"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.12"
|
|
8
8
|
license = "MIT" # SPDX expression
|
|
9
9
|
description = "A Python package for mining key transcription factors from transcriptome data."
|
|
10
10
|
readme = "README.md"
|
|
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
|