gsMap 1.60__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 (58) hide show
  1. gsmap-1.60/.github/workflows/publish-to-pypi.yml +120 -0
  2. gsmap-1.60/.github/workflows/sphinx.yml +24 -0
  3. gsmap-1.60/.gitignore +257 -0
  4. gsmap-1.60/LICENSE +21 -0
  5. gsmap-1.60/PKG-INFO +124 -0
  6. gsmap-1.60/README.md +70 -0
  7. gsmap-1.60/docs/Makefile +20 -0
  8. gsmap-1.60/docs/make.bat +35 -0
  9. gsmap-1.60/docs/requirements.txt +2 -0
  10. gsmap-1.60/docs/source/_static/architecture.svg +1 -0
  11. gsmap-1.60/docs/source/api/cauchy_combination.rst +8 -0
  12. gsmap-1.60/docs/source/api/find_latent_representations.rst +8 -0
  13. gsmap-1.60/docs/source/api/format_sumstats.rst +7 -0
  14. gsmap-1.60/docs/source/api/generate_ldscore.rst +8 -0
  15. gsmap-1.60/docs/source/api/latent_to_gene.rst +8 -0
  16. gsmap-1.60/docs/source/api/spatial_ldsc.rst +8 -0
  17. gsmap-1.60/docs/source/api/visualization.rst +8 -0
  18. gsmap-1.60/docs/source/api.rst +86 -0
  19. gsmap-1.60/docs/source/charts/cortex/Cortex_151507_Height.json +1 -0
  20. gsmap-1.60/docs/source/charts/cortex/Cortex_151507_IQ.json +1 -0
  21. gsmap-1.60/docs/source/charts/cortex/Cortex_151507_MCHC.json +1 -0
  22. gsmap-1.60/docs/source/charts/cortex/Cortex_151507_SCZ.json +1 -0
  23. gsmap-1.60/docs/source/charts/mouse_embryo/E16.5_E1S1_Height.json +1 -0
  24. gsmap-1.60/docs/source/charts/mouse_embryo/E16.5_E1S1_IQ.json +1 -0
  25. gsmap-1.60/docs/source/charts/mouse_embryo/E16.5_E1S1_MCHC.json +1 -0
  26. gsmap-1.60/docs/source/charts/mouse_embryo/E16.5_E1S1_SCZ.json +1 -0
  27. gsmap-1.60/docs/source/charts/test.json +16 -0
  28. gsmap-1.60/docs/source/conf.py +55 -0
  29. gsmap-1.60/docs/source/data.rst +62 -0
  30. gsmap-1.60/docs/source/data_format.md +120 -0
  31. gsmap-1.60/docs/source/index.rst +72 -0
  32. gsmap-1.60/docs/source/install.rst +24 -0
  33. gsmap-1.60/docs/source/mouse.rst +26 -0
  34. gsmap-1.60/docs/source/mouse_example.md +389 -0
  35. gsmap-1.60/docs/source/release.rst +7 -0
  36. gsmap-1.60/docs/source/tutorials.rst +27 -0
  37. gsmap-1.60/pyproject.toml +73 -0
  38. gsmap-1.60/src/gsMap/GNN_VAE/__init__.py +0 -0
  39. gsmap-1.60/src/gsMap/GNN_VAE/adjacency_matrix.py +95 -0
  40. gsmap-1.60/src/gsMap/GNN_VAE/model.py +87 -0
  41. gsmap-1.60/src/gsMap/GNN_VAE/train.py +97 -0
  42. gsmap-1.60/src/gsMap/__init__.py +5 -0
  43. gsmap-1.60/src/gsMap/__main__.py +3 -0
  44. gsmap-1.60/src/gsMap/cauchy_combination_test.py +163 -0
  45. gsmap-1.60/src/gsMap/config.py +734 -0
  46. gsmap-1.60/src/gsMap/find_latent_representation.py +209 -0
  47. gsmap-1.60/src/gsMap/format_sumstats.py +410 -0
  48. gsmap-1.60/src/gsMap/generate_ldscore.py +551 -0
  49. gsmap-1.60/src/gsMap/generate_r2_matrix.py +743 -0
  50. gsmap-1.60/src/gsMap/jackknife.py +514 -0
  51. gsmap-1.60/src/gsMap/latent_to_gene.py +257 -0
  52. gsmap-1.60/src/gsMap/main.py +39 -0
  53. gsmap-1.60/src/gsMap/make_annotations.py +560 -0
  54. gsmap-1.60/src/gsMap/regression_read.py +294 -0
  55. gsmap-1.60/src/gsMap/spatial_ldsc_multiple_sumstats.py +307 -0
  56. gsmap-1.60/src/gsMap/visualize.py +154 -0
  57. gsmap-1.60/test/GPS-snakemake-workflow-macaque.smk +268 -0
  58. gsmap-1.60/test/GPS-snakemake-workflow.smk +229 -0
@@ -0,0 +1,120 @@
1
+ name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
2
+
3
+ on: push
4
+
5
+ jobs:
6
+ build:
7
+ name: Build distribution 📦
8
+ runs-on: ubuntu-latest
9
+
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+ - name: Set up Python
13
+ uses: actions/setup-python@v4
14
+ with:
15
+ python-version: "3.x"
16
+ - name: Install pypa/build
17
+ run: >-
18
+ python3 -m
19
+ pip install
20
+ flit
21
+ --user
22
+ - name: Build a binary wheel and a source tarball
23
+ run: |
24
+ flit build
25
+ ls -lh dist
26
+ - name: Store the distribution packages
27
+ uses: actions/upload-artifact@v3
28
+ with:
29
+ name: python-package-distributions
30
+ path: dist/
31
+
32
+ publish-to-pypi:
33
+ name: >-
34
+ Publish Python 🐍 distribution 📦 to PyPI
35
+ if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
36
+ needs:
37
+ - build
38
+ runs-on: ubuntu-latest
39
+ environment:
40
+ name: pypi
41
+ url: https://pypi.org/p/<package-name> # Replace <package-name> with your PyPI project name
42
+ permissions:
43
+ id-token: write # IMPORTANT: mandatory for trusted publishing
44
+
45
+ steps:
46
+ - name: Download all the dists
47
+ uses: actions/download-artifact@v3
48
+ with:
49
+ name: python-package-distributions
50
+ path: dist/
51
+ - name: Publish distribution 📦 to PyPI
52
+ uses: pypa/gh-action-pypi-publish@release/v1
53
+
54
+ github-release:
55
+ name: >-
56
+ Sign the Python 🐍 distribution 📦 with Sigstore
57
+ and upload them to GitHub Release
58
+ needs:
59
+ - publish-to-pypi
60
+ runs-on: ubuntu-latest
61
+
62
+ permissions:
63
+ contents: write # IMPORTANT: mandatory for making GitHub Releases
64
+ id-token: write # IMPORTANT: mandatory for sigstore
65
+
66
+ steps:
67
+ - name: Download all the dists
68
+ uses: actions/download-artifact@v3
69
+ with:
70
+ name: python-package-distributions
71
+ path: dist/
72
+ - name: Sign the dists with Sigstore
73
+ uses: sigstore/gh-action-sigstore-python@v1.2.3
74
+ with:
75
+ inputs: >-
76
+ ./dist/*.tar.gz
77
+ ./dist/*.whl
78
+ - name: Create GitHub Release
79
+ env:
80
+ GITHUB_TOKEN: ${{ github.token }}
81
+ run: >-
82
+ gh release create
83
+ '${{ github.ref_name }}'
84
+ --repo '${{ github.repository }}'
85
+ --notes ""
86
+ - name: Upload artifact signatures to GitHub Release
87
+ env:
88
+ GITHUB_TOKEN: ${{ github.token }}
89
+ # Upload to GitHub Release using the `gh` CLI.
90
+ # `dist/` contains the built packages, and the
91
+ # sigstore-produced signatures and certificates.
92
+ run: >-
93
+ gh release upload
94
+ '${{ github.ref_name }}' dist/**
95
+ --repo '${{ github.repository }}'
96
+
97
+ publish-to-testpypi:
98
+ name: Publish Python 🐍 distribution 📦 to TestPyPI
99
+ if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
100
+ needs:
101
+ - build
102
+ runs-on: ubuntu-latest
103
+
104
+ environment:
105
+ name: testpypi
106
+ url: https://test.pypi.org/p/<package-name>
107
+
108
+ permissions:
109
+ id-token: write # IMPORTANT: mandatory for trusted publishing
110
+
111
+ steps:
112
+ - name: Download all the dists
113
+ uses: actions/download-artifact@v3
114
+ with:
115
+ name: python-package-distributions
116
+ path: dist/
117
+ - name: Publish distribution 📦 to TestPyPI
118
+ uses: pypa/gh-action-pypi-publish@release/v1
119
+ with:
120
+ repository-url: https://test.pypi.org/legacy/
@@ -0,0 +1,24 @@
1
+ name: "Sphinx: Render docs"
2
+
3
+ on: push
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+ permissions:
9
+ contents: write
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+ - name: Build HTML
13
+ uses: ammaraskar/sphinx-action@master
14
+ - name: Upload artifacts
15
+ uses: actions/upload-artifact@v4
16
+ with:
17
+ name: html-docs
18
+ path: docs/build/html/
19
+ - name: Deploy
20
+ uses: peaceiris/actions-gh-pages@v3
21
+ if: github.ref == 'refs/heads/main'
22
+ with:
23
+ github_token: ${{ secrets.GITHUB_TOKEN }}
24
+ publish_dir: docs/build/html
gsmap-1.60/.gitignore ADDED
@@ -0,0 +1,257 @@
1
+ ### JetBrains+all template
2
+ # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
3
+ # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
4
+
5
+ # User-specific stuff
6
+ .idea/**/workspace.xml
7
+ .idea/**/tasks.xml
8
+ .idea/**/usage.statistics.xml
9
+ .idea/**/dictionaries
10
+ .idea/**/shelf
11
+
12
+ # AWS User-specific
13
+ .idea/**/aws.xml
14
+
15
+ # Generated files
16
+ .idea/**/contentModel.xml
17
+
18
+ # Sensitive or high-churn files
19
+ .idea/**/dataSources/
20
+ .idea/**/dataSources.ids
21
+ .idea/**/dataSources.local.xml
22
+ .idea/**/sqlDataSources.xml
23
+ .idea/**/dynamic.xml
24
+ .idea/**/uiDesigner.xml
25
+ .idea/**/dbnavigator.xml
26
+
27
+ # Gradle
28
+ .idea/**/gradle.xml
29
+ .idea/**/libraries
30
+
31
+ # Gradle and Maven with auto-import
32
+ # When using Gradle or Maven with auto-import, you should exclude module files,
33
+ # since they will be recreated, and may cause churn. Uncomment if using
34
+ # auto-import.
35
+ # .idea/artifacts
36
+ # .idea/compiler.xml
37
+ # .idea/jarRepositories.xml
38
+ # .idea/modules.xml
39
+ # .idea/*.iml
40
+ # .idea/modules
41
+ # *.iml
42
+ # *.ipr
43
+
44
+ # CMake
45
+ cmake-build-*/
46
+
47
+ # Mongo Explorer plugin
48
+ .idea/**/mongoSettings.xml
49
+
50
+ # File-based project format
51
+ *.iws
52
+
53
+ # IntelliJ
54
+ out/
55
+
56
+ # mpeltonen/sbt-idea plugin
57
+ .idea_modules/
58
+
59
+ # JIRA plugin
60
+ atlassian-ide-plugin.xml
61
+
62
+ # Cursive Clojure plugin
63
+ .idea/replstate.xml
64
+
65
+ # SonarLint plugin
66
+ .idea/sonarlint/
67
+
68
+ # Crashlytics plugin (for Android Studio and IntelliJ)
69
+ com_crashlytics_export_strings.xml
70
+ crashlytics.properties
71
+ crashlytics-build.properties
72
+ fabric.properties
73
+
74
+ # Editor-based Rest Client
75
+ .idea/httpRequests
76
+
77
+ # Android studio 3.1+ serialized cache file
78
+ .idea/caches/build_file_checksums.ser
79
+
80
+ ### JupyterNotebooks template
81
+ # gitignore template for Jupyter Notebooks
82
+ # website: http://jupyter.org/
83
+
84
+ .ipynb_checkpoints
85
+ */.ipynb_checkpoints/*
86
+
87
+ # IPython
88
+ profile_default/
89
+ ipython_config.py
90
+
91
+ # Remove previous ipynb_checkpoints
92
+ # git rm -r .ipynb_checkpoints/
93
+
94
+ ### Python template
95
+ # Byte-compiled / optimized / DLL files
96
+ __pycache__/
97
+ *.py[cod]
98
+ *$py.class
99
+
100
+ # C extensions
101
+ *.so
102
+
103
+ # Distribution / packaging
104
+ .Python
105
+ build/
106
+ develop-eggs/
107
+ dist/
108
+ downloads/
109
+ eggs/
110
+ .eggs/
111
+ lib/
112
+ lib64/
113
+ parts/
114
+ sdist/
115
+ var/
116
+ wheels/
117
+ share/python-wheels/
118
+ *.egg-info/
119
+ .installed.cfg
120
+ *.egg
121
+ MANIFEST
122
+
123
+ # PyInstaller
124
+ # Usually these files are written by a python script from a template
125
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
126
+ *.manifest
127
+ *.spec
128
+
129
+ # Installer logs
130
+ pip-log.txt
131
+ pip-delete-this-directory.txt
132
+
133
+ # Unit test / coverage reports
134
+ htmlcov/
135
+ .tox/
136
+ .nox/
137
+ .coverage
138
+ .coverage.*
139
+ .cache
140
+ nosetests.xml
141
+ coverage.xml
142
+ *.cover
143
+ *.py,cover
144
+ .hypothesis/
145
+ .pytest_cache/
146
+ cover/
147
+
148
+ # Translations
149
+ *.mo
150
+ *.pot
151
+
152
+ # Django stuff:
153
+ *.log
154
+ local_settings.py
155
+ db.sqlite3
156
+ db.sqlite3-journal
157
+
158
+ # Flask stuff:
159
+ instance/
160
+ .webassets-cache
161
+
162
+ # Scrapy stuff:
163
+ .scrapy
164
+
165
+ # Sphinx documentation
166
+ docs/_build/
167
+
168
+ # PyBuilder
169
+ .pybuilder/
170
+ target/
171
+
172
+ # Jupyter Notebook
173
+ .ipynb_checkpoints
174
+
175
+ # IPython
176
+ profile_default/
177
+ ipython_config.py
178
+
179
+ # pyenv
180
+ # For a library or package, you might want to ignore these files since the code is
181
+ # intended to run in multiple environments; otherwise, check them in:
182
+ # .python-version
183
+
184
+ # pipenv
185
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
186
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
187
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
188
+ # install all needed dependencies.
189
+ #Pipfile.lock
190
+
191
+ # poetry
192
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
193
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
194
+ # commonly ignored for libraries.
195
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
196
+ #poetry.lock
197
+
198
+ # pdm
199
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
200
+ #pdm.lock
201
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
202
+ # in version control.
203
+ # https://pdm.fming.dev/#use-with-ide
204
+ .pdm.toml
205
+
206
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
207
+ __pypackages__/
208
+
209
+ # Celery stuff
210
+ celerybeat-schedule
211
+ celerybeat.pid
212
+
213
+ # SageMath parsed files
214
+ *.sage.py
215
+
216
+ # Environments
217
+ .env
218
+ .venv
219
+ env/
220
+ venv/
221
+ ENV/
222
+ env.bak/
223
+ venv.bak/
224
+
225
+ # Spyder project settings
226
+ .spyderproject
227
+ .spyproject
228
+
229
+ # Rope project settings
230
+ .ropeproject
231
+
232
+ # mkdocs documentation
233
+ /site
234
+
235
+ # mypy
236
+ .mypy_cache/
237
+ .dmypy.json
238
+ dmypy.json
239
+
240
+ # Pyre type checker
241
+ .pyre/
242
+
243
+ # pytype static type analyzer
244
+ .pytype/
245
+
246
+ # Cython debug symbols
247
+ cython_debug/
248
+
249
+ test/
250
+ # PyCharm
251
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
252
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
253
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
254
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
255
+ #.idea/
256
+
257
+ !/test/GPS-snakemake-workflow.smk
gsmap-1.60/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023 liyang
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
13
+ all 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
21
+ THE SOFTWARE.
gsmap-1.60/PKG-INFO ADDED
@@ -0,0 +1,124 @@
1
+ Metadata-Version: 2.1
2
+ Name: gsMap
3
+ Version: 1.60
4
+ Summary: Genetics-informed pathogenic spatial mapping
5
+ Author-email: liyang <songliyang@westlake.edu.cn>, wenhao <chenwenhao@westlake.edu.cn>
6
+ Requires-Python: >=3.8
7
+ Description-Content-Type: text/markdown
8
+ Classifier: Development Status :: 3 - Alpha
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Programming Language :: Python :: 3.8
12
+ Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Operating System :: POSIX :: Linux
14
+ Requires-Dist: numpy
15
+ Requires-Dist: pandas
16
+ Requires-Dist: scipy
17
+ Requires-Dist: scikit-learn
18
+ Requires-Dist: matplotlib
19
+ Requires-Dist: seaborn
20
+ Requires-Dist: tqdm
21
+ Requires-Dist: progress
22
+ Requires-Dist: pyyaml
23
+ Requires-Dist: torch
24
+ Requires-Dist: torch-geometric
25
+ Requires-Dist: pyranges
26
+ Requires-Dist: pyfiglet
27
+ Requires-Dist: plotly
28
+ Requires-Dist: kaleido
29
+ Requires-Dist: sphinx ; extra == "doc"
30
+ Requires-Dist: sphinx-argparse ; extra == "doc"
31
+ Requires-Dist: sphinx-autobuild ; extra == "doc"
32
+ Requires-Dist: sphinx-autodoc-typehints ; extra == "doc"
33
+ Requires-Dist: sphinx-basic-ng ; extra == "doc"
34
+ Requires-Dist: sphinx-charts ; extra == "doc"
35
+ Requires-Dist: sphinx-copybutton ; extra == "doc"
36
+ Requires-Dist: sphinx_inline_tabs ; extra == "doc"
37
+ Requires-Dist: sphinx-markdown-tables ; extra == "doc"
38
+ Requires-Dist: sphinx-rtd-theme ; extra == "doc"
39
+ Requires-Dist: sphinxcontrib-applehelp ; extra == "doc"
40
+ Requires-Dist: sphinxcontrib-devhelp ; extra == "doc"
41
+ Requires-Dist: sphinxcontrib-htmlhelp ; extra == "doc"
42
+ Requires-Dist: sphinxcontrib-jquery ; extra == "doc"
43
+ Requires-Dist: sphinxcontrib-jsmath ; extra == "doc"
44
+ Requires-Dist: sphinxcontrib-qthelp ; extra == "doc"
45
+ Requires-Dist: sphinxcontrib-serializinghtml ; extra == "doc"
46
+ Requires-Dist: furo ; extra == "doc"
47
+ Requires-Dist: myst-parser ; extra == "doc"
48
+ Requires-Dist: nbsphinx ; extra == "doc"
49
+ Project-URL: Documentation, https://...
50
+ Project-URL: Home, https://github.com/LeonSong1995/gsMap
51
+ Project-URL: Website, https://...
52
+ Provides-Extra: doc
53
+
54
+ # gsMap (genetically informed spatial mapping of cells for complex traits)
55
+ [![stars-badge](https://img.shields.io/github/stars/LeonSong1995/MeDuSA?logo=GitHub&color=yellow)](https://github.com/LeonSong1995/gsMap/stargazers)
56
+ [![license-badge](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
57
+
58
+
59
+ ## Features
60
+
61
+ ....
62
+
63
+ ## Installation
64
+
65
+ install use pip:
66
+
67
+ ```bash
68
+ pip install gsMap-mapping
69
+ ```
70
+
71
+ install from source:
72
+
73
+ ```bash
74
+ git clone
75
+ cd gsMap-mapping
76
+ pip install -e .
77
+ ```
78
+
79
+ ## Usage
80
+
81
+ To use gsMap, navigate to the command line and enter `gsMap` followed by the subcommand that corresponds to the desired operation. Each subcommand may require specific arguments to run.
82
+
83
+ ### Basic Command Structure
84
+
85
+ ```bash
86
+ gsMap subcommand [arguments...]
87
+ ```
88
+
89
+ - `subcommand`: The specific operation you wish to perform.
90
+ - `arguments`: The arguments and options required for the subcommand.
91
+
92
+ ### Available Subcommands
93
+
94
+ (Provide a list and brief description of each available subcommand. For example:)
95
+
96
+ - `run_find_latent_representations`: Finds latent representations using a GNN-VAE model.
97
+ - `run_latent_to_gene`: Maps latent representations to gene markers.
98
+ - `run_generate_ldscore`: Generates LD scores for genomic spots.
99
+ - `run_spatial_ldsc`: Conducts spatial LDSC analysis.
100
+ - `run_cauchy_combination`: Performs Cauchy combination tests for annotations.
101
+ - `run_all_mode`: Executes a comprehensive pipeline covering all steps.
102
+
103
+ ### Examples
104
+
105
+ To run a specific functionality, you need to provide the appropriate subcommand and arguments. For example:
106
+ ### Running Requirement
107
+
108
+
109
+ ```bash
110
+ gsMap run_find_latent_representations --input_hdf5_path <path> --output_hdf5_path <path> --sample_name <name>
111
+ ```
112
+
113
+ This command initiates the process of finding latent representations based on the given HDF5 input and output paths and sample name.
114
+
115
+ ## Contributing
116
+
117
+ ...
118
+
119
+ ## License
120
+
121
+ ....
122
+
123
+ ---
124
+
gsmap-1.60/README.md ADDED
@@ -0,0 +1,70 @@
1
+ # gsMap (genetically informed spatial mapping of cells for complex traits)
2
+ [![stars-badge](https://img.shields.io/github/stars/LeonSong1995/MeDuSA?logo=GitHub&color=yellow)](https://github.com/LeonSong1995/gsMap/stargazers)
3
+ [![license-badge](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
+
5
+
6
+ ## Features
7
+
8
+ ....
9
+
10
+ ## Installation
11
+
12
+ install use pip:
13
+
14
+ ```bash
15
+ pip install gsMap-mapping
16
+ ```
17
+
18
+ install from source:
19
+
20
+ ```bash
21
+ git clone
22
+ cd gsMap-mapping
23
+ pip install -e .
24
+ ```
25
+
26
+ ## Usage
27
+
28
+ To use gsMap, navigate to the command line and enter `gsMap` followed by the subcommand that corresponds to the desired operation. Each subcommand may require specific arguments to run.
29
+
30
+ ### Basic Command Structure
31
+
32
+ ```bash
33
+ gsMap subcommand [arguments...]
34
+ ```
35
+
36
+ - `subcommand`: The specific operation you wish to perform.
37
+ - `arguments`: The arguments and options required for the subcommand.
38
+
39
+ ### Available Subcommands
40
+
41
+ (Provide a list and brief description of each available subcommand. For example:)
42
+
43
+ - `run_find_latent_representations`: Finds latent representations using a GNN-VAE model.
44
+ - `run_latent_to_gene`: Maps latent representations to gene markers.
45
+ - `run_generate_ldscore`: Generates LD scores for genomic spots.
46
+ - `run_spatial_ldsc`: Conducts spatial LDSC analysis.
47
+ - `run_cauchy_combination`: Performs Cauchy combination tests for annotations.
48
+ - `run_all_mode`: Executes a comprehensive pipeline covering all steps.
49
+
50
+ ### Examples
51
+
52
+ To run a specific functionality, you need to provide the appropriate subcommand and arguments. For example:
53
+ ### Running Requirement
54
+
55
+
56
+ ```bash
57
+ gsMap run_find_latent_representations --input_hdf5_path <path> --output_hdf5_path <path> --sample_name <name>
58
+ ```
59
+
60
+ This command initiates the process of finding latent representations based on the given HDF5 input and output paths and sample name.
61
+
62
+ ## Contributing
63
+
64
+ ...
65
+
66
+ ## License
67
+
68
+ ....
69
+
70
+ ---
@@ -0,0 +1,20 @@
1
+ # Minimal makefile for Sphinx documentation
2
+ #
3
+
4
+ # You can set these variables from the command line, and also
5
+ # from the environment for the first two.
6
+ SPHINXOPTS ?=
7
+ SPHINXBUILD ?= sphinx-build
8
+ SOURCEDIR = source
9
+ BUILDDIR = build
10
+
11
+ # Put it first so that "make" without argument is like "make help".
12
+ help:
13
+ @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14
+
15
+ .PHONY: help Makefile
16
+
17
+ # Catch-all target: route all unknown targets to Sphinx using the new
18
+ # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19
+ %: Makefile
20
+ @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@@ -0,0 +1,35 @@
1
+ @ECHO OFF
2
+
3
+ pushd %~dp0
4
+
5
+ REM Command file for Sphinx documentation
6
+
7
+ if "%SPHINXBUILD%" == "" (
8
+ set SPHINXBUILD=sphinx-build
9
+ )
10
+ set SOURCEDIR=source
11
+ set BUILDDIR=build
12
+
13
+ %SPHINXBUILD% >NUL 2>NUL
14
+ if errorlevel 9009 (
15
+ echo.
16
+ echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
17
+ echo.installed, then set the SPHINXBUILD environment variable to point
18
+ echo.to the full path of the 'sphinx-build' executable. Alternatively you
19
+ echo.may add the Sphinx directory to PATH.
20
+ echo.
21
+ echo.If you don't have Sphinx installed, grab it from
22
+ echo.https://www.sphinx-doc.org/
23
+ exit /b 1
24
+ )
25
+
26
+ if "%1" == "" goto help
27
+
28
+ %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
29
+ goto end
30
+
31
+ :help
32
+ %SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
33
+
34
+ :end
35
+ popd
@@ -0,0 +1,2 @@
1
+ sphinx==6
2
+ gsMap[doc]