PyOVERCAST 1.0.11__tar.gz → 1.0.13__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyOVERCAST
3
- Version: 1.0.11
3
+ Version: 1.0.13
4
4
  Summary: A Python package for mining key transcription factors from transcriptome data.
5
5
  Author-email: Tinghua Huang <thua45@126.com>
6
6
  License-Expression: MIT
@@ -532,12 +532,12 @@ def permutation(gene_set, gene_list):
532
532
  col1 = gene_set0.columns[1]
533
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()
534
534
  set0_range = set0_max - set0_min
535
- if set0_range < 0.0:
535
+ if set0_range == 0.0:
536
536
  for gene in gene_sample:
537
- set1_values.append(random.uniform(set0_max, set0_min) + (random.uniform(1E-10, 1E-15) * random.choice([1, -1])))
537
+ set1_values.append(random.uniform(set0_min, set0_max) + random.uniform(1E-15, 1E-10) * random.choice([1, -1]))
538
538
  else:
539
539
  for gene in gene_sample:
540
- set1_values.append(random.uniform(set0_min, set0_max) + (random.uniform(1E-10, 1E-15) * random.choice([1, -1])))
540
+ set1_values.append(random.uniform(set0_min, set0_max))
541
541
 
542
542
  gene_set1 = pd.DataFrame({"gene": gene_sample, "logFC": set1_values}, index=gene_sample)
543
543
  gene_set_pt = pd.concat([gene_set0, gene_set1], axis=0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyOVERCAST
3
- Version: 1.0.11
3
+ Version: 1.0.13
4
4
  Summary: A Python package for mining key transcription factors from transcriptome data.
5
5
  Author-email: Tinghua Huang <thua45@126.com>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "PyOVERCAST"
7
- version = "1.0.11"
7
+ version = "1.0.13"
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