genefox 1.1.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 (93) hide show
  1. genefox-1.1.2/LICENSE +21 -0
  2. genefox-1.1.2/NOTICE +13 -0
  3. genefox-1.1.2/PKG-INFO +211 -0
  4. genefox-1.1.2/README.md +161 -0
  5. genefox-1.1.2/pyproject.toml +49 -0
  6. genefox-1.1.2/setup.cfg +4 -0
  7. genefox-1.1.2/src/genefox/__init__.py +9 -0
  8. genefox-1.1.2/src/genefox/api.py +370 -0
  9. genefox-1.1.2/src/genefox/client.py +96 -0
  10. genefox-1.1.2/src/genefox/column_metadata.py +20 -0
  11. genefox-1.1.2/src/genefox/contracts/account-status-result-v1.schema.json +128 -0
  12. genefox-1.1.2/src/genefox/contracts/arrayexpress-details-result-v1.schema.json +206 -0
  13. genefox-1.1.2/src/genefox/contracts/arrayexpress-expression-result-v1.schema.json +307 -0
  14. genefox-1.1.2/src/genefox/contracts/arrayexpress-search-result-v1.schema.json +49 -0
  15. genefox-1.1.2/src/genefox/contracts/cbioportal-alterations-result-v1.schema.json +700 -0
  16. genefox-1.1.2/src/genefox/contracts/cbioportal-composition-result-v1.schema.json +371 -0
  17. genefox-1.1.2/src/genefox/contracts/cbioportal-cross-study-mutations-result-v1.schema.json +339 -0
  18. genefox-1.1.2/src/genefox/contracts/cbioportal-expression-result-v1.schema.json +456 -0
  19. genefox-1.1.2/src/genefox/contracts/cbioportal-mutation-burden-result-v1.schema.json +316 -0
  20. genefox-1.1.2/src/genefox/contracts/cbioportal-significantly-mutated-genes-result-v1.schema.json +265 -0
  21. genefox-1.1.2/src/genefox/contracts/cbioportal-structural-variants-result-v1.schema.json +385 -0
  22. genefox-1.1.2/src/genefox/contracts/cbioportal-studies-result-v1.schema.json +161 -0
  23. genefox-1.1.2/src/genefox/contracts/cbioportal-treatment-counts-result-v1.schema.json +477 -0
  24. genefox-1.1.2/src/genefox/contracts/gdc-project-summary-result-v1.schema.json +551 -0
  25. genefox-1.1.2/src/genefox/contracts/gene-info-result-v1.schema.json +96 -0
  26. genefox-1.1.2/src/genefox/contracts/geo-chat-schema-result-v1.schema.json +469 -0
  27. genefox-1.1.2/src/genefox/contracts/geo-collection-summary-result-v1.schema.json +1640 -0
  28. genefox-1.1.2/src/genefox/contracts/geo-dataset-details-result-v1.schema.json +557 -0
  29. genefox-1.1.2/src/genefox/contracts/geo-finder-plan-result-v1.schema.json +197 -0
  30. genefox-1.1.2/src/genefox/contracts/geo-gene-correlation-result-v1.schema.json +986 -0
  31. genefox-1.1.2/src/genefox/contracts/geo-heatmap-result-v1.schema.json +928 -0
  32. genefox-1.1.2/src/genefox/contracts/geo-numeric-series-result-v1.schema.json +676 -0
  33. genefox-1.1.2/src/genefox/contracts/geo-sample-pca-result-v1.schema.json +1975 -0
  34. genefox-1.1.2/src/genefox/contracts/geo-search-result-v1.schema.json +371 -0
  35. genefox-1.1.2/src/genefox/contracts/geo-series-expression-result-v1.schema.json +1368 -0
  36. genefox-1.1.2/src/genefox/contracts/geo-supplementary-layout-result-v1.schema.json +658 -0
  37. genefox-1.1.2/src/genefox/contracts/geo-survival-result-v1.schema.json +931 -0
  38. genefox-1.1.2/src/genefox/contracts/geo-top-correlates-result-v1.schema.json +727 -0
  39. genefox-1.1.2/src/genefox/contracts/gtex-tissue-expression-result-v1.schema.json +400 -0
  40. genefox-1.1.2/src/genefox/contracts/hpa-gene-result-v1.schema.json +481 -0
  41. genefox-1.1.2/src/genefox/contracts/imported-de-enrichment-result-v1.schema.json +236 -0
  42. genefox-1.1.2/src/genefox/contracts/list-coverage-result-v1.schema.json +125 -0
  43. genefox-1.1.2/src/genefox/contracts/list-operations-result-v1.schema.json +40 -0
  44. genefox-1.1.2/src/genefox/contracts/list-signature-presets-result-v1.schema.json +157 -0
  45. genefox-1.1.2/src/genefox/contracts/open-destination-result-v1.schema.json +555 -0
  46. genefox-1.1.2/src/genefox/contracts/reference-ccle-expression-result-v1.schema.json +807 -0
  47. genefox-1.1.2/src/genefox/contracts/reference-expression-atlas-catalog-result-v1.schema.json +399 -0
  48. genefox-1.1.2/src/genefox/contracts/reference-expression-atlas-result-v1.schema.json +513 -0
  49. genefox-1.1.2/src/genefox/contracts/reference-treehouse-expression-result-v1.schema.json +578 -0
  50. genefox-1.1.2/src/genefox/contracts/report-table-v1.schema.json +33 -0
  51. genefox-1.1.2/src/genefox/contracts/result-schemas-v1.json +134 -0
  52. genefox-1.1.2/src/genefox/contracts/survival-result-v1.schema.json +719 -0
  53. genefox-1.1.2/src/genefox/contracts/tcga-case-detail-result-v1.schema.json +554 -0
  54. genefox-1.1.2/src/genefox/contracts/tcga-case-expression-result-v1.schema.json +420 -0
  55. genefox-1.1.2/src/genefox/contracts/tcga-cases-result-v1.schema.json +140 -0
  56. genefox-1.1.2/src/genefox/contracts/tcga-chat-schema-result-v1.schema.json +333 -0
  57. genefox-1.1.2/src/genefox/contracts/tcga-cohort-composition-result-v1.schema.json +574 -0
  58. genefox-1.1.2/src/genefox/contracts/tcga-cohort-summary-result-v1.schema.json +424 -0
  59. genefox-1.1.2/src/genefox/contracts/tcga-compare-cohorts-result-v1.schema.json +494 -0
  60. genefox-1.1.2/src/genefox/contracts/tcga-differential-expression-result-v1.schema.json +1071 -0
  61. genefox-1.1.2/src/genefox/contracts/tcga-expression-result-v1.schema.json +1602 -0
  62. genefox-1.1.2/src/genefox/contracts/tcga-gene-isoforms-result-v1.schema.json +471 -0
  63. genefox-1.1.2/src/genefox/contracts/tcga-gene-signature-result-v1.schema.json +1046 -0
  64. genefox-1.1.2/src/genefox/contracts/tcga-heatmap-result-v1.schema.json +920 -0
  65. genefox-1.1.2/src/genefox/contracts/tcga-pan-cancer-expression-result-v1.schema.json +495 -0
  66. genefox-1.1.2/src/genefox/contracts/tcga-pan-cancer-survival-result-v1.schema.json +546 -0
  67. genefox-1.1.2/src/genefox/contracts/tcga-projects-result-v1.schema.json +180 -0
  68. genefox-1.1.2/src/genefox/contracts/tcga-sample-pca-result-v1.schema.json +1493 -0
  69. genefox-1.1.2/src/genefox/contracts/tcga-survival-result-v1.schema.json +551 -0
  70. genefox-1.1.2/src/genefox/contracts/tcga-top-correlates-result-v1.schema.json +528 -0
  71. genefox-1.1.2/src/genefox/contracts/tcga-tumor-normal-result-v1.schema.json +533 -0
  72. genefox-1.1.2/src/genefox/contracts/tool-error-v1.schema.json +37 -0
  73. genefox-1.1.2/src/genefox/contracts/tool-figure-v1.schema.json +224 -0
  74. genefox-1.1.2/src/genefox/contracts/tool-provenance-v1.schema.json +34 -0
  75. genefox-1.1.2/src/genefox/contracts/toxicodb-analysis-result-v1.schema.json +521 -0
  76. genefox-1.1.2/src/genefox/contracts/toxicodb-experiments-result-v1.schema.json +530 -0
  77. genefox-1.1.2/src/genefox/contracts/toxicodb-search-result-v1.schema.json +160 -0
  78. genefox-1.1.2/src/genefox/experiments.py +105 -0
  79. genefox-1.1.2/src/genefox/imports.py +83 -0
  80. genefox-1.1.2/src/genefox/result_contracts.py +20 -0
  81. genefox-1.1.2/src/genefox/results.py +128 -0
  82. genefox-1.1.2/src/genefox/runtime.py +79 -0
  83. genefox-1.1.2/src/genefox/transports.py +155 -0
  84. genefox-1.1.2/src/genefox.egg-info/PKG-INFO +211 -0
  85. genefox-1.1.2/src/genefox.egg-info/SOURCES.txt +91 -0
  86. genefox-1.1.2/src/genefox.egg-info/dependency_links.txt +1 -0
  87. genefox-1.1.2/src/genefox.egg-info/requires.txt +26 -0
  88. genefox-1.1.2/src/genefox.egg-info/top_level.txt +1 -0
  89. genefox-1.1.2/tests/test_imports.py +56 -0
  90. genefox-1.1.2/tests/test_native_loading.py +119 -0
  91. genefox-1.1.2/tests/test_result_contracts.py +40 -0
  92. genefox-1.1.2/tests/test_runtime.py +113 -0
  93. genefox-1.1.2/tests/test_sdk.py +158 -0
genefox-1.1.2/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Vindhya Data Science
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
genefox-1.1.2/NOTICE ADDED
@@ -0,0 +1,13 @@
1
+ GeneFox for Python. Copyright 2026 Vindhya Data Science. Licensed under MIT.
2
+
3
+ The GeneFox application, the genefox command-line tool and the GeneFox runtime are
4
+ proprietary software of Vindhya Data Science and are not covered by this license.
5
+
6
+ The GeneFox name and logo are not licensed under this license. As a limited exception,
7
+ you may reproduce the unmodified GeneFox logo, together with the credit
8
+ "made with GeneFox", in reports, figures and documents produced with GeneFox. You may not
9
+ modify the logo, use it for any other purpose, or use the GeneFox name or logo to suggest
10
+ endorsement by Vindhya Data Science.
11
+
12
+ GeneFox is for research use only and must not be used for clinical decisions. Data that
13
+ GeneFox retrieves from public providers remains subject to each provider's terms.
genefox-1.1.2/PKG-INFO ADDED
@@ -0,0 +1,211 @@
1
+ Metadata-Version: 2.4
2
+ Name: genefox
3
+ Version: 1.1.2
4
+ Summary: Python client for the shared GeneFox scientific runtime
5
+ Author-email: Vindhya Data Science <info@vindhyadatascience.com>
6
+ Maintainer-email: Vindhya Data Science <info@vindhyadatascience.com>
7
+ License-Expression: MIT
8
+ Project-URL: Homepage, https://genefox.app
9
+ Project-URL: Documentation, https://genefox.app/python/
10
+ Project-URL: Repository, https://github.com/vindhyadatascience/genefox-python
11
+ Project-URL: Issues, https://github.com/vindhyadatascience/genefox-python/issues
12
+ Keywords: genomics,transcriptomics,bioinformatics,TCGA,GEO,GeneFox
13
+ Classifier: Development Status :: 5 - Production/Stable
14
+ Classifier: Intended Audience :: Science/Research
15
+ Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Operating System :: MacOS
23
+ Classifier: Operating System :: Microsoft :: Windows
24
+ Classifier: Operating System :: POSIX :: Linux
25
+ Requires-Python: >=3.10
26
+ Description-Content-Type: text/markdown
27
+ License-File: LICENSE
28
+ License-File: NOTICE
29
+ Provides-Extra: pandas
30
+ Requires-Dist: pandas>=2; extra == "pandas"
31
+ Provides-Extra: polars
32
+ Requires-Dist: polars>=1; extra == "polars"
33
+ Provides-Extra: arrays
34
+ Requires-Dist: numpy>=1.26; extra == "arrays"
35
+ Requires-Dist: pandas>=2; extra == "arrays"
36
+ Provides-Extra: anndata
37
+ Requires-Dist: numpy>=1.26; extra == "anndata"
38
+ Requires-Dist: pandas>=2; extra == "anndata"
39
+ Requires-Dist: anndata>=0.10; extra == "anndata"
40
+ Provides-Extra: xarray
41
+ Requires-Dist: numpy>=1.26; extra == "xarray"
42
+ Requires-Dist: pandas>=2; extra == "xarray"
43
+ Requires-Dist: xarray>=2024.1; extra == "xarray"
44
+ Provides-Extra: experiments
45
+ Requires-Dist: numpy>=1.26; extra == "experiments"
46
+ Requires-Dist: pandas>=2; extra == "experiments"
47
+ Requires-Dist: anndata>=0.10; extra == "experiments"
48
+ Requires-Dist: xarray>=2024.1; extra == "experiments"
49
+ Dynamic: license-file
50
+
51
+ # GeneFox for Python
52
+
53
+ Python access to GeneFox's scientific engine through its shared C SDK or persistent CLI.
54
+ The wrapper is MIT licensed; the GeneFox engine and native runtime are proprietary and
55
+ are obtained separately. Importing this package never downloads or installs a runtime.
56
+
57
+ This is version 1.1.2 of the package. It requires GeneFox CLI 1.1.2 or newer, which
58
+ includes the GeneFox runtime (ABI 1, SDK contract 1). Get the CLI from the
59
+ [GeneFox downloads page](https://genefox.app/download/) and follow the
60
+ [CLI installation guide](https://genefox.app/docs/install/).
61
+
62
+ Install from PyPI:
63
+
64
+ ```sh
65
+ python -m pip install genefox
66
+ python -m pip install "genefox[pandas,polars,experiments]" # with the optional extras
67
+ ```
68
+
69
+ To try unreleased changes, install from the public repository instead:
70
+ `python -m pip install "genefox @ git+https://github.com/vindhyadatascience/genefox-python.git"`.
71
+
72
+ For a local checkout, `python -m pip install .` installs the core client. Optional extras
73
+ add pandas, Polars, NumPy, AnnData and xarray interoperability.
74
+
75
+ Open a matching runtime bundle after verifying its publisher's signature:
76
+
77
+ ```python
78
+ from genefox import Session
79
+
80
+ with Session(runtime="/path/to/genefox-runtime", output="/path/to/results") as session:
81
+ result = session.call("list_operations")
82
+ print(result.table().to_pandas())
83
+ ```
84
+
85
+ `Runtime.open(path)` verifies the bundle's platform, architecture, ABI, contract and file
86
+ inventory before loading code. A file digest checks integrity; it does not authenticate
87
+ the publisher. Native runtime bundles are a separate GeneFox release deliverable; this
88
+ repository contains no runtime binary or scientific resource bundle.
89
+
90
+ All native sessions in one Python process share one verified runtime library. Use
91
+ separate processes or CLI transport to compare different runtime builds.
92
+
93
+ Use `result.table().to_pandas()` or `.to_polars()` for tables. ExpressionDataset adapters
94
+ preserve identifiers, assay units, missing values and sample metadata across supported
95
+ frameworks. Figures are drawn by GeneFox and can be displayed or exported from results.
96
+
97
+ Build a wheel with `python -m pip wheel --no-deps .`. Runtime conformance is checked with
98
+ `python -m unittest discover -s tests` and the documented GeneFox SDK test environment.
99
+ See the [Python documentation](https://genefox.app/python/) and report problems in [issues](https://github.com/vindhyadatascience/genefox-python/issues).
100
+ The export's `genefox-source.json` records its source commit and runtime compatibility.
101
+
102
+ Generated functions cover the free tools of the matching GeneFox runtime release. Inspect
103
+ `session.available_tools` in an open session to see what that runtime offers; a
104
+ generated function never grants access to anything the runtime does not list.
105
+
106
+ To run conformance from the standalone Python checkout, install the interoperability
107
+ extras and select a verified matching runtime bundle:
108
+
109
+ ```sh
110
+ python -m pip install ".[pandas,polars,experiments]"
111
+ export GENEFOX_SDK_TEST_RUNTIME=/absolute/path/to/genefox-runtime
112
+ python -m unittest discover -s tests -v
113
+ ```
114
+
115
+ Keep the runtime variable set to include the actual native and CLI transport checks.
116
+ The optional extras enable the framework adapter cases.
117
+
118
+ ## GeneFox Pro
119
+
120
+ GeneFox Pro needs a linked GeneFox account. Pro tools and Pro-only arguments (such as
121
+ figure customization) are not part of this package.
122
+
123
+ ## Data sources and terms
124
+
125
+ GeneFox analyzes public data that it retrieves from its providers when you run an
126
+ analysis: TCGA and other projects through the NCI Genomic Data Commons, GEO, GTEx, the
127
+ UCSC Xena and Toil recompute, CCLE, Treehouse, Expression Atlas and cBioPortal. That
128
+ data remains subject to each provider's terms, data-use policies and citation
129
+ requirements, which you are responsible for following. Results carry their source and
130
+ provenance so you can cite them.
131
+
132
+ ## Research use only
133
+
134
+ GeneFox is for research use only. It is not a medical device and must not be used to
135
+ diagnose, treat or make clinical decisions about any person.
136
+
137
+ ## Notices
138
+
139
+ See [LICENSE](LICENSE) and [NOTICE](NOTICE). The GeneFox application, the `genefox`
140
+ command-line tool and the GeneFox runtime are proprietary software of Vindhya Data
141
+ Science and are not covered by this package's license. The GeneFox name and logo are not
142
+ licensed, except that the unmodified logo may accompany the credit "made with GeneFox"
143
+ in reports produced with GeneFox, as NOTICE describes.
144
+
145
+ Inspect the output contracts shipped with this package using
146
+ `from genefox import result_schemas; schemas = result_schemas()`. This needs no running
147
+ GeneFox process. The returned mapping contains the versioned survival, table, figure,
148
+ provenance and error JSON Schema documents. Each call returns independent documents.
149
+ These describe shared result blocks; the original tool-specific scientific payload is
150
+ preserved. Runtime tool availability still comes from the selected session.
151
+
152
+ Named success contracts cover `list_operations`, `list_signature_presets`,
153
+ `tcga_projects`, `gtex_tissue_expression`, `reference_ccle_expression`,
154
+ `reference_treehouse_expression`, `reference_expression_atlas` and
155
+ `reference_expression_atlas_catalog`. Use each document's `x-genefox-tool` field to
156
+ identify the tool. Scientific values, nulls, display strings and trust-labelled fields
157
+ retain their wire types. The nine released cBioPortal tools also have named success
158
+ contracts: provider values, exact source probability strings, unavailable assays and
159
+ separate patient/sample treatment counts retain their types and meanings.
160
+
161
+ Clinical and discovery output contracts also cover `gene_info`, `list_coverage`,
162
+ `tcga_cases`, `tcga_case_detail`, `tcga_cohort_summary`, `geo_search`,
163
+ `geo_dataset_details` and `geo_supplementary_layout`. Clinical age/survival units,
164
+ unrequested versus empty file lists, unknown GEO sample counts, cursor state and
165
+ parser diagnostics retain their original types. The supplementary diagnostic
166
+ payload preserves its existing shape without `tool` or `caveats` members; its schema
167
+ association is recorded in the result index.
168
+
169
+ In `tcga_cohort_summary`, check `data.age_at_index.n` before interpreting its
170
+ quartiles. When no ages were observed (`n = 0`), the existing summary returns zero
171
+ quartiles and the histogram is refused. Those zeros do not represent measured ages.
172
+
173
+ The TCGA analysis tools also publish named output contracts: `tcga_expression`,
174
+ `tcga_case_expression`, `tcga_compare_cohorts`, `tcga_differential_expression`,
175
+ `tcga_gene_isoforms`, `tcga_gene_signature`, `tcga_heatmap`,
176
+ `tcga_pan_cancer_expression`, `tcga_pan_cancer_survival`, `tcga_sample_pca`,
177
+ `tcga_survival`, `tcga_top_correlates` and `tcga_tumor_normal`. These describe
178
+ scientific counts and measurements separately from display strings, canonical
179
+ survival blocks, correlation/BH families, paired-test availability and export files.
180
+ Sample counts and patient counts retain their distinct units. Infinite confidence
181
+ bounds retain the producer's string tokens; an unavailable measurement remains null.
182
+ Heatmap color extents are automatically computed output measurements, marked
183
+ `x-genefox-output-role: computed_extent` in the schema. Their presence does not
184
+ enable custom input controls. Isoform measurements retain their separate
185
+ pipeline and scale rather than being treated as a decomposition of the gene view.
186
+
187
+ GEO output contracts also cover `geo_collection_summary`, `geo_finder_plan`,
188
+ `geo_gene_correlation`, `geo_heatmap`, `geo_sample_pca`, `geo_series_expression`,
189
+ `geo_survival` and `geo_top_correlates`. The series expression schema includes its
190
+ heatmap-delegation result. Collection fields and sample-evidence modes retain
191
+ unknown counts, retry state, snapshots and the scope of subject linkage; neither
192
+ aggregate certifies unique patients across datasets. Finder suggestions remain
193
+ unexecuted and carry no fabricated fetch provenance.
194
+
195
+ GEO identifiers, source filenames, CSV headers, labels and ranked features retain
196
+ their explicit trust labels. Count-library summaries describe the source matrix
197
+ separately from retained samples. Survival discovery remains distinct from a
198
+ computed endpoint, and the shared survival block counts samples while retaining
199
+ the caller's explicit time-unit mapping. Heatmap color extents remain computed
200
+ output measurements. Scientific numbers and unavailable values retain their types.
201
+
202
+ Every tool in this package's released catalogue has a named success contract in its result schemas.
203
+ `account_status` preserves granted capability names and helper disclosures.
204
+ `tcga_chat_schema` and `geo_chat_schema` describe read-only snapshots with actual
205
+ analysis input schemas; they do not advertise chat execution. `imported_de_enrichment`
206
+ keeps full-precision decimal strings, explicit `Inf` boundaries and null sample sizes;
207
+ no sample counts are inferred from the imported table. `open_destination` preserves
208
+ route plans, restore decisions, structured delegated results and untrusted run errors.
209
+ These are additive output sidecars: the input catalogue, session ABI and SDK contract
210
+ version remain unchanged. Contract presence does not grant access to a tool; consult
211
+ the selected session's tool listing.
@@ -0,0 +1,161 @@
1
+ # GeneFox for Python
2
+
3
+ Python access to GeneFox's scientific engine through its shared C SDK or persistent CLI.
4
+ The wrapper is MIT licensed; the GeneFox engine and native runtime are proprietary and
5
+ are obtained separately. Importing this package never downloads or installs a runtime.
6
+
7
+ This is version 1.1.2 of the package. It requires GeneFox CLI 1.1.2 or newer, which
8
+ includes the GeneFox runtime (ABI 1, SDK contract 1). Get the CLI from the
9
+ [GeneFox downloads page](https://genefox.app/download/) and follow the
10
+ [CLI installation guide](https://genefox.app/docs/install/).
11
+
12
+ Install from PyPI:
13
+
14
+ ```sh
15
+ python -m pip install genefox
16
+ python -m pip install "genefox[pandas,polars,experiments]" # with the optional extras
17
+ ```
18
+
19
+ To try unreleased changes, install from the public repository instead:
20
+ `python -m pip install "genefox @ git+https://github.com/vindhyadatascience/genefox-python.git"`.
21
+
22
+ For a local checkout, `python -m pip install .` installs the core client. Optional extras
23
+ add pandas, Polars, NumPy, AnnData and xarray interoperability.
24
+
25
+ Open a matching runtime bundle after verifying its publisher's signature:
26
+
27
+ ```python
28
+ from genefox import Session
29
+
30
+ with Session(runtime="/path/to/genefox-runtime", output="/path/to/results") as session:
31
+ result = session.call("list_operations")
32
+ print(result.table().to_pandas())
33
+ ```
34
+
35
+ `Runtime.open(path)` verifies the bundle's platform, architecture, ABI, contract and file
36
+ inventory before loading code. A file digest checks integrity; it does not authenticate
37
+ the publisher. Native runtime bundles are a separate GeneFox release deliverable; this
38
+ repository contains no runtime binary or scientific resource bundle.
39
+
40
+ All native sessions in one Python process share one verified runtime library. Use
41
+ separate processes or CLI transport to compare different runtime builds.
42
+
43
+ Use `result.table().to_pandas()` or `.to_polars()` for tables. ExpressionDataset adapters
44
+ preserve identifiers, assay units, missing values and sample metadata across supported
45
+ frameworks. Figures are drawn by GeneFox and can be displayed or exported from results.
46
+
47
+ Build a wheel with `python -m pip wheel --no-deps .`. Runtime conformance is checked with
48
+ `python -m unittest discover -s tests` and the documented GeneFox SDK test environment.
49
+ See the [Python documentation](https://genefox.app/python/) and report problems in [issues](https://github.com/vindhyadatascience/genefox-python/issues).
50
+ The export's `genefox-source.json` records its source commit and runtime compatibility.
51
+
52
+ Generated functions cover the free tools of the matching GeneFox runtime release. Inspect
53
+ `session.available_tools` in an open session to see what that runtime offers; a
54
+ generated function never grants access to anything the runtime does not list.
55
+
56
+ To run conformance from the standalone Python checkout, install the interoperability
57
+ extras and select a verified matching runtime bundle:
58
+
59
+ ```sh
60
+ python -m pip install ".[pandas,polars,experiments]"
61
+ export GENEFOX_SDK_TEST_RUNTIME=/absolute/path/to/genefox-runtime
62
+ python -m unittest discover -s tests -v
63
+ ```
64
+
65
+ Keep the runtime variable set to include the actual native and CLI transport checks.
66
+ The optional extras enable the framework adapter cases.
67
+
68
+ ## GeneFox Pro
69
+
70
+ GeneFox Pro needs a linked GeneFox account. Pro tools and Pro-only arguments (such as
71
+ figure customization) are not part of this package.
72
+
73
+ ## Data sources and terms
74
+
75
+ GeneFox analyzes public data that it retrieves from its providers when you run an
76
+ analysis: TCGA and other projects through the NCI Genomic Data Commons, GEO, GTEx, the
77
+ UCSC Xena and Toil recompute, CCLE, Treehouse, Expression Atlas and cBioPortal. That
78
+ data remains subject to each provider's terms, data-use policies and citation
79
+ requirements, which you are responsible for following. Results carry their source and
80
+ provenance so you can cite them.
81
+
82
+ ## Research use only
83
+
84
+ GeneFox is for research use only. It is not a medical device and must not be used to
85
+ diagnose, treat or make clinical decisions about any person.
86
+
87
+ ## Notices
88
+
89
+ See [LICENSE](LICENSE) and [NOTICE](NOTICE). The GeneFox application, the `genefox`
90
+ command-line tool and the GeneFox runtime are proprietary software of Vindhya Data
91
+ Science and are not covered by this package's license. The GeneFox name and logo are not
92
+ licensed, except that the unmodified logo may accompany the credit "made with GeneFox"
93
+ in reports produced with GeneFox, as NOTICE describes.
94
+
95
+ Inspect the output contracts shipped with this package using
96
+ `from genefox import result_schemas; schemas = result_schemas()`. This needs no running
97
+ GeneFox process. The returned mapping contains the versioned survival, table, figure,
98
+ provenance and error JSON Schema documents. Each call returns independent documents.
99
+ These describe shared result blocks; the original tool-specific scientific payload is
100
+ preserved. Runtime tool availability still comes from the selected session.
101
+
102
+ Named success contracts cover `list_operations`, `list_signature_presets`,
103
+ `tcga_projects`, `gtex_tissue_expression`, `reference_ccle_expression`,
104
+ `reference_treehouse_expression`, `reference_expression_atlas` and
105
+ `reference_expression_atlas_catalog`. Use each document's `x-genefox-tool` field to
106
+ identify the tool. Scientific values, nulls, display strings and trust-labelled fields
107
+ retain their wire types. The nine released cBioPortal tools also have named success
108
+ contracts: provider values, exact source probability strings, unavailable assays and
109
+ separate patient/sample treatment counts retain their types and meanings.
110
+
111
+ Clinical and discovery output contracts also cover `gene_info`, `list_coverage`,
112
+ `tcga_cases`, `tcga_case_detail`, `tcga_cohort_summary`, `geo_search`,
113
+ `geo_dataset_details` and `geo_supplementary_layout`. Clinical age/survival units,
114
+ unrequested versus empty file lists, unknown GEO sample counts, cursor state and
115
+ parser diagnostics retain their original types. The supplementary diagnostic
116
+ payload preserves its existing shape without `tool` or `caveats` members; its schema
117
+ association is recorded in the result index.
118
+
119
+ In `tcga_cohort_summary`, check `data.age_at_index.n` before interpreting its
120
+ quartiles. When no ages were observed (`n = 0`), the existing summary returns zero
121
+ quartiles and the histogram is refused. Those zeros do not represent measured ages.
122
+
123
+ The TCGA analysis tools also publish named output contracts: `tcga_expression`,
124
+ `tcga_case_expression`, `tcga_compare_cohorts`, `tcga_differential_expression`,
125
+ `tcga_gene_isoforms`, `tcga_gene_signature`, `tcga_heatmap`,
126
+ `tcga_pan_cancer_expression`, `tcga_pan_cancer_survival`, `tcga_sample_pca`,
127
+ `tcga_survival`, `tcga_top_correlates` and `tcga_tumor_normal`. These describe
128
+ scientific counts and measurements separately from display strings, canonical
129
+ survival blocks, correlation/BH families, paired-test availability and export files.
130
+ Sample counts and patient counts retain their distinct units. Infinite confidence
131
+ bounds retain the producer's string tokens; an unavailable measurement remains null.
132
+ Heatmap color extents are automatically computed output measurements, marked
133
+ `x-genefox-output-role: computed_extent` in the schema. Their presence does not
134
+ enable custom input controls. Isoform measurements retain their separate
135
+ pipeline and scale rather than being treated as a decomposition of the gene view.
136
+
137
+ GEO output contracts also cover `geo_collection_summary`, `geo_finder_plan`,
138
+ `geo_gene_correlation`, `geo_heatmap`, `geo_sample_pca`, `geo_series_expression`,
139
+ `geo_survival` and `geo_top_correlates`. The series expression schema includes its
140
+ heatmap-delegation result. Collection fields and sample-evidence modes retain
141
+ unknown counts, retry state, snapshots and the scope of subject linkage; neither
142
+ aggregate certifies unique patients across datasets. Finder suggestions remain
143
+ unexecuted and carry no fabricated fetch provenance.
144
+
145
+ GEO identifiers, source filenames, CSV headers, labels and ranked features retain
146
+ their explicit trust labels. Count-library summaries describe the source matrix
147
+ separately from retained samples. Survival discovery remains distinct from a
148
+ computed endpoint, and the shared survival block counts samples while retaining
149
+ the caller's explicit time-unit mapping. Heatmap color extents remain computed
150
+ output measurements. Scientific numbers and unavailable values retain their types.
151
+
152
+ Every tool in this package's released catalogue has a named success contract in its result schemas.
153
+ `account_status` preserves granted capability names and helper disclosures.
154
+ `tcga_chat_schema` and `geo_chat_schema` describe read-only snapshots with actual
155
+ analysis input schemas; they do not advertise chat execution. `imported_de_enrichment`
156
+ keeps full-precision decimal strings, explicit `Inf` boundaries and null sample sizes;
157
+ no sample counts are inferred from the imported table. `open_destination` preserves
158
+ route plans, restore decisions, structured delegated results and untrusted run errors.
159
+ These are additive output sidecars: the input catalogue, session ABI and SDK contract
160
+ version remain unchanged. Contract presence does not grant access to a tool; consult
161
+ the selected session's tool listing.
@@ -0,0 +1,49 @@
1
+ [build-system]
2
+ requires = ["setuptools>=77"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "genefox"
7
+ version = "1.1.2"
8
+ description = "Python client for the shared GeneFox scientific runtime"
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ license = "MIT"
12
+ license-files = ["LICENSE", "NOTICE"]
13
+ authors = [{ name = "Vindhya Data Science", email = "info@vindhyadatascience.com" }]
14
+ maintainers = [{ name = "Vindhya Data Science", email = "info@vindhyadatascience.com" }]
15
+ keywords = ["genomics", "transcriptomics", "bioinformatics", "TCGA", "GEO", "GeneFox"]
16
+ classifiers = [
17
+ "Development Status :: 5 - Production/Stable",
18
+ "Intended Audience :: Science/Research",
19
+ "Topic :: Scientific/Engineering :: Bio-Informatics",
20
+ "Programming Language :: Python :: 3",
21
+ "Programming Language :: Python :: 3 :: Only",
22
+ "Programming Language :: Python :: 3.10",
23
+ "Programming Language :: Python :: 3.11",
24
+ "Programming Language :: Python :: 3.12",
25
+ "Programming Language :: Python :: 3.13",
26
+ "Operating System :: MacOS",
27
+ "Operating System :: Microsoft :: Windows",
28
+ "Operating System :: POSIX :: Linux",
29
+ ]
30
+
31
+ [project.urls]
32
+ Homepage = "https://genefox.app"
33
+ Documentation = "https://genefox.app/python/"
34
+ Repository = "https://github.com/vindhyadatascience/genefox-python"
35
+ Issues = "https://github.com/vindhyadatascience/genefox-python/issues"
36
+
37
+ [project.optional-dependencies]
38
+ pandas = ["pandas>=2"]
39
+ polars = ["polars>=1"]
40
+ arrays = ["numpy>=1.26", "pandas>=2"]
41
+ anndata = ["numpy>=1.26", "pandas>=2", "anndata>=0.10"]
42
+ xarray = ["numpy>=1.26", "pandas>=2", "xarray>=2024.1"]
43
+ experiments = ["numpy>=1.26", "pandas>=2", "anndata>=0.10", "xarray>=2024.1"]
44
+
45
+ [tool.setuptools.packages.find]
46
+ where = ["src"]
47
+
48
+ [tool.setuptools.package-data]
49
+ genefox = ["contracts/*.json"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,9 @@
1
+ """GeneFox's native SDK client; plotting and statistics execute in GeneFox."""
2
+ from .client import Session
3
+ from .runtime import Runtime
4
+ from .result_contracts import result_schemas
5
+ from .experiments import ExpressionDataset
6
+ from .results import Figure, Result, Table
7
+ from .transports import GenefoxError
8
+
9
+ __all__ = ["Runtime", "ExpressionDataset", "Session", "Figure", "Result", "Table", "GenefoxError", "result_schemas"]