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.
Files changed (50) hide show
  1. {bsvae-0.4.1 → bsvae-0.4.2}/PKG-INFO +1 -1
  2. {bsvae-0.4.1 → bsvae-0.4.2}/pyproject.toml +1 -1
  3. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/networks/targets.py +7 -4
  4. {bsvae-0.4.1 → bsvae-0.4.2}/LICENSE +0 -0
  5. {bsvae-0.4.1 → bsvae-0.4.2}/README.md +0 -0
  6. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/__init__.py +0 -0
  7. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/benchmark/__init__.py +0 -0
  8. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/benchmark/acorde.R +0 -0
  9. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/benchmark/edges.py +0 -0
  10. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/benchmark/harness.py +0 -0
  11. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/benchmark/methods.py +0 -0
  12. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/benchmark/runners.py +0 -0
  13. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/benchmark/twn.R +0 -0
  14. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/benchmark/wgcna.R +0 -0
  15. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/cli/__init__.py +0 -0
  16. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/cli/_common.py +0 -0
  17. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/cli/benchmark.py +0 -0
  18. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/cli/networks.py +0 -0
  19. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/cli/simulate.py +0 -0
  20. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/cli/sweep_k.py +0 -0
  21. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/cli/train.py +0 -0
  22. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/latent/__init__.py +0 -0
  23. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/latent/latent_analysis.py +0 -0
  24. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/latent/latent_export.py +0 -0
  25. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/models/__init__.py +0 -0
  26. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/models/decoder.py +0 -0
  27. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/models/encoder.py +0 -0
  28. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/models/gmm_prior.py +0 -0
  29. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/models/gmvae.py +0 -0
  30. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/models/losses.py +0 -0
  31. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/models/vae.py +0 -0
  32. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/networks/__init__.py +0 -0
  33. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/networks/extract_networks.py +0 -0
  34. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/networks/module_extraction.py +0 -0
  35. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/networks/postprocess.py +0 -0
  36. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/networks/quality.py +0 -0
  37. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/networks/utils.py +0 -0
  38. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/simulation/__init__.py +0 -0
  39. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/simulation/generate.py +0 -0
  40. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/simulation/isoform.py +0 -0
  41. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/simulation/metrics.py +0 -0
  42. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/simulation/scenario.py +0 -0
  43. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/utils/__init__.py +0 -0
  44. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/utils/datasets.py +0 -0
  45. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/utils/helpers.py +0 -0
  46. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/utils/hierarchy.py +0 -0
  47. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/utils/isoform.py +0 -0
  48. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/utils/modelIO.py +0 -0
  49. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/utils/preprocess.py +0 -0
  50. {bsvae-0.4.1 → bsvae-0.4.2}/src/bsvae/utils/training.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bsvae
3
- Version: 0.4.1
3
+ Version: 0.4.2
4
4
  Summary: Gaussian Mixture VAE for multi-modal biological module discovery in omics data.
5
5
  License: GPL-3.0-only
6
6
  License-File: LICENSE
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "bsvae"
3
- version = "0.4.1" # dynamically resolved by poetry-dynamic-versioning
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 = [strip_feature_version(f, keep_version) for f in 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 tx_gene.index]
221
- unmatched.extend([t for t, i in zip(transcripts, ids) if i not in tx_gene.index])
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