exprmat 0.1.7__tar.gz → 0.1.9__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.
- {exprmat-0.1.7 → exprmat-0.1.9}/PKG-INFO +1 -1
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/geneset.py +6 -2
- exprmat-0.1.9/exprmat/data/hsa/entrez.tsv.gz +0 -0
- exprmat-0.1.9/exprmat/data/hsa/mapping-ensembl.pkl +0 -0
- exprmat-0.1.9/exprmat/data/hsa/mapping-name.pkl +0 -0
- exprmat-0.1.9/exprmat/data/hsa/taxa +1 -0
- exprmat-0.1.9/exprmat/data/mmu/genesets/all.gmt +17789 -0
- exprmat-0.1.9/exprmat/data/mmu/genesets/biocarta.gmt +252 -0
- exprmat-0.1.9/exprmat/data/mmu/genesets/bp.gmt +7713 -0
- exprmat-0.1.9/exprmat/data/mmu/genesets/cc.gmt +1028 -0
- exprmat-0.1.9/exprmat/data/mmu/genesets/chemical-perturb.gmt +980 -0
- exprmat-0.1.9/exprmat/data/mmu/genesets/hallmark.gmt +50 -0
- exprmat-0.1.9/exprmat/data/mmu/genesets/m2.gmt +1730 -0
- exprmat-0.1.9/exprmat/data/mmu/genesets/markers.gmt +233 -0
- exprmat-0.1.9/exprmat/data/mmu/genesets/mf.gmt +1845 -0
- exprmat-0.1.9/exprmat/data/mmu/genesets/microrna.gmt +1768 -0
- exprmat-0.1.9/exprmat/data/mmu/genesets/mpt.gmt +92 -0
- exprmat-0.1.9/exprmat/data/mmu/genesets/positional.gmt +341 -0
- exprmat-0.1.9/exprmat/data/mmu/genesets/reactome.gmt +1289 -0
- exprmat-0.1.9/exprmat/data/mmu/genesets/transcript-factors.gmt +279 -0
- exprmat-0.1.9/exprmat/data/mmu/genesets/wikipathway.gmt +189 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/descriptive/gse.py +37 -7
- exprmat-0.1.9/exprmat/plotting/gse.py +323 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/reader/experiment.py +61 -1
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat.egg-info/PKG-INFO +1 -1
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat.egg-info/SOURCES.txt +20 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/setup.py +2 -2
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/__init__.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/ansi.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/clustering/__init__.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/clustering/leiden.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/clustering/rogue.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/clustering/spectral.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/clustering/summary.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/clustering/utils.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/cnv/__init__.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/cnv/cnvscore.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/cnv/infercnv.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/configuration.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/__init__.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/delim.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/finders.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/gff.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/hsa/genesets/all.gmt +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/hsa/genesets/bp.gmt +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/hsa/genesets/cancer-modules.gmt +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/hsa/genesets/cancer-neighborhoods.gmt +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/hsa/genesets/cancer.gmt +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/hsa/genesets/cc.gmt +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/hsa/genesets/chemical-perturb.gmt +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/hsa/genesets/hallmark.gmt +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/hsa/genesets/human-phenotype-ontology.gmt +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/hsa/genesets/immune-perturb.gmt +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/hsa/genesets/mf.gmt +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/hsa/genesets/microrna.gmt +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/hsa/genesets/oncogenic.gmt +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/hsa/genesets/pathways.gmt +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/hsa/genesets/positional.gmt +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/hsa/genesets/single-cell.gmt +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/hsa/genesets/transcript-factors.gmt +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/hsa/genesets/vaccine.gmt +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/hsa/genome.tsv.gz +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/mmu/entrez.tsv.gz +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/mmu/genome.tsv.gz +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/mmu/mapping-ensembl.pkl +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/mmu/mapping-name.pkl +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/mmu/taxa +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/private.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/data/ranges.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/descriptive/__init__.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/descriptive/de.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/descriptive/kde.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/plotting/__init__.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/plotting/cnv.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/plotting/de.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/plotting/expression.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/plotting/palettes.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/plotting/summary.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/preprocessing/__init__.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/preprocessing/doublets/__init__.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/preprocessing/doublets/composite.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/preprocessing/doublets/scrublet.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/preprocessing/filter.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/preprocessing/integrate.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/preprocessing/linear.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/preprocessing/normal.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/preprocessing/plot.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/preprocessing/qc.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/preprocessing/sctransform/__init__.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/preprocessing/sctransform/estimate.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/preprocessing/sctransform/ksmooth.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/preprocessing/sctransform/residual.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/preprocessing/sctransform/transform.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/preprocessing/sparse.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/preprocessing/uniform.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/reader/__init__.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/reader/matcher.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/reader/metadata.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/reduction/__init__.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/reduction/forceatlas.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/reduction/mde.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/reduction/nn.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/reduction/pca.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/reduction/plot.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/reduction/pumap.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/reduction/tsne.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/reduction/umap.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat/utils.py +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat.egg-info/dependency_links.txt +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat.egg-info/not-zip-safe +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat.egg-info/requires.txt +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/exprmat.egg-info/top_level.txt +0 -0
- {exprmat-0.1.7 → exprmat-0.1.9}/setup.cfg +0 -0
|
@@ -28,8 +28,7 @@ def get_genesets(taxa, name, identifier = 'entrez'):
|
|
|
28
28
|
lines = gfile.read().splitlines()
|
|
29
29
|
|
|
30
30
|
gene_set = {}
|
|
31
|
-
|
|
32
|
-
for line in tqdm.tqdm(lines, ncols = 80):
|
|
31
|
+
for line in lines:
|
|
33
32
|
|
|
34
33
|
if len(line.strip()) == 0: continue
|
|
35
34
|
if line.startswith('#'): continue
|
|
@@ -53,6 +52,9 @@ def get_genesets(taxa, name, identifier = 'entrez'):
|
|
|
53
52
|
|
|
54
53
|
def translate_id(taxa, genes, idfrom = 'entrez', idto = 'ugene', keep_nones = True):
|
|
55
54
|
|
|
55
|
+
if not taxa in genome.keys():
|
|
56
|
+
get_genome(taxa)
|
|
57
|
+
|
|
56
58
|
# setup the conversion table cache
|
|
57
59
|
if not 'conversion' in genome[taxa].keys():
|
|
58
60
|
|
|
@@ -86,6 +88,8 @@ def translate_id(taxa, genes, idfrom = 'entrez', idto = 'ugene', keep_nones = Tr
|
|
|
86
88
|
|
|
87
89
|
else:
|
|
88
90
|
result = []
|
|
91
|
+
froms = gtable[idfrom].tolist()
|
|
92
|
+
tos = gtable[idto].tolist()
|
|
89
93
|
for x in genes:
|
|
90
94
|
if x in froms:
|
|
91
95
|
t = tos[froms.index(x)]
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
9606
|