bsvae 0.4.1__tar.gz → 0.4.2__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.
- {bsvae-0.4.1 → bsvae-0.4.2}/PKG-INFO +1 -1
- {bsvae-0.4.1 → bsvae-0.4.2}/pyproject.toml +1 -1
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/networks/targets.py +7 -4
- {bsvae-0.4.1 → bsvae-0.4.2}/LICENSE +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/README.md +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/__init__.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/benchmark/__init__.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/benchmark/acorde.R +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/benchmark/edges.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/benchmark/harness.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/benchmark/methods.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/benchmark/runners.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/benchmark/twn.R +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/benchmark/wgcna.R +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/cli/__init__.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/cli/_common.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/cli/benchmark.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/cli/networks.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/cli/simulate.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/cli/sweep_k.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/cli/train.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/latent/__init__.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/latent/latent_analysis.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/latent/latent_export.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/models/__init__.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/models/decoder.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/models/encoder.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/models/gmm_prior.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/models/gmvae.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/models/losses.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/models/vae.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/networks/__init__.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/networks/extract_networks.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/networks/module_extraction.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/networks/postprocess.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/networks/quality.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/networks/utils.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/simulation/__init__.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/simulation/generate.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/simulation/isoform.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/simulation/metrics.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/simulation/scenario.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/utils/__init__.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/utils/datasets.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/utils/helpers.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/utils/hierarchy.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/utils/isoform.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/utils/modelIO.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/utils/preprocess.py +0 -0
- {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/utils/training.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "bsvae"
|
|
3
|
-
version = "0.4.
|
|
3
|
+
version = "0.4.2" # dynamically resolved by poetry-dynamic-versioning
|
|
4
4
|
description = "Gaussian Mixture VAE for multi-modal biological module discovery in omics data."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = ["Kynon J Benjamin <kj.benjamin90@gmail.com>"]
|
|
@@ -195,10 +195,13 @@ def resolve_target_transcripts(
|
|
|
195
195
|
Transcripts of the target genes (plus explicitly listed transcripts) that
|
|
196
196
|
are present in ``tx_gene`` (feature_id → gene_id for the expression
|
|
197
197
|
matrix). Gene symbols are resolved through ``annotation`` when given.
|
|
198
|
-
Returns (feature_id → gene_id for the targets, list of unmatched inputs)
|
|
198
|
+
Returns (feature_id → gene_id for the targets, list of unmatched inputs);
|
|
199
|
+
the index keeps the matrix's own feature IDs (versions included), while
|
|
200
|
+
listed transcripts match with versions stripped unless ``keep_version``.
|
|
199
201
|
"""
|
|
200
202
|
tx_gene = tx_gene.copy()
|
|
201
|
-
tx_gene.index =
|
|
203
|
+
tx_gene.index = tx_gene.index.astype(str)
|
|
204
|
+
by_id = {strip_feature_version(f, keep_version): f for f in tx_gene.index}
|
|
202
205
|
unmatched: List[str] = []
|
|
203
206
|
target_genes: set = set()
|
|
204
207
|
if genes:
|
|
@@ -217,8 +220,8 @@ def resolve_target_transcripts(
|
|
|
217
220
|
sel = tx_gene[tx_gene.isin(target_genes)] if target_genes else tx_gene.iloc[0:0]
|
|
218
221
|
if transcripts:
|
|
219
222
|
ids = [strip_feature_version(t, keep_version) for t in transcripts]
|
|
220
|
-
present = [t for t in ids if t in
|
|
221
|
-
unmatched.extend([t for t, i in zip(transcripts, ids) if i not in
|
|
223
|
+
present = [by_id[t] for t in ids if t in by_id]
|
|
224
|
+
unmatched.extend([t for t, i in zip(transcripts, ids) if i not in by_id])
|
|
222
225
|
sel = pd.concat([sel, tx_gene.loc[present]])
|
|
223
226
|
sel = sel[~sel.index.duplicated()]
|
|
224
227
|
return sel, unmatched
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|