cryojax 0.3.3rc1__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.
- cryojax-0.3.3rc1/.gitattributes +4 -0
- cryojax-0.3.3rc1/.github/dependabot.yml +6 -0
- cryojax-0.3.3rc1/.github/workflows/build_docs.yml +36 -0
- cryojax-0.3.3rc1/.github/workflows/release.yml +36 -0
- cryojax-0.3.3rc1/.github/workflows/ruff.yml +12 -0
- cryojax-0.3.3rc1/.github/workflows/testing.yml +45 -0
- cryojax-0.3.3rc1/.gitignore +15 -0
- cryojax-0.3.3rc1/.pre-commit-config.yaml +24 -0
- cryojax-0.3.3rc1/CONTRIBUTING.md +88 -0
- cryojax-0.3.3rc1/LICENSE +504 -0
- cryojax-0.3.3rc1/PKG-INFO +666 -0
- cryojax-0.3.3rc1/README.md +133 -0
- cryojax-0.3.3rc1/docs/_static/custom_css.css +153 -0
- cryojax-0.3.3rc1/docs/_static/mathjax.js +21 -0
- cryojax-0.3.3rc1/docs/api/simulator/instrument_config.md +31 -0
- cryojax-0.3.3rc1/docs/api/simulator/potential_integrators.md +42 -0
- cryojax-0.3.3rc1/docs/api/simulator/scattering_potential.md +99 -0
- cryojax-0.3.3rc1/docs/examples/compute-potential.ipynb +362 -0
- cryojax-0.3.3rc1/docs/examples/cross-correlation-search.ipynb +608 -0
- cryojax-0.3.3rc1/docs/examples/data/5w0s.pdb +3 -0
- cryojax-0.3.3rc1/docs/examples/data/groel_5w0s_scattering_potential.mrc +3 -0
- cryojax-0.3.3rc1/docs/examples/data/groel_chainA.pdb +3 -0
- cryojax-0.3.3rc1/docs/examples/data/ribosome_4ug0_micrograph.mrc +3 -0
- cryojax-0.3.3rc1/docs/examples/data/ribosome_4ug0_micrograph.mrcs +3 -0
- cryojax-0.3.3rc1/docs/examples/data/ribosome_4ug0_particles.star +44 -0
- cryojax-0.3.3rc1/docs/examples/data/ribosome_4ug0_scattering_potential_from_cistem.mrc +3 -0
- cryojax-0.3.3rc1/docs/examples/ewald-sphere.ipynb +215 -0
- cryojax-0.3.3rc1/docs/examples/multislice.ipynb +265 -0
- cryojax-0.3.3rc1/docs/examples/read-dataset.ipynb +409 -0
- cryojax-0.3.3rc1/docs/examples/simulate-image.ipynb +380 -0
- cryojax-0.3.3rc1/docs/examples/simulate-micrograph.ipynb +345 -0
- cryojax-0.3.3rc1/docs/examples/simulate-relion-dataset.ipynb +701 -0
- cryojax-0.3.3rc1/docs/index.md +110 -0
- cryojax-0.3.3rc1/docs/requirements.txt +10 -0
- cryojax-0.3.3rc1/mkdocs.yml +74 -0
- cryojax-0.3.3rc1/pyproject.toml +65 -0
- cryojax-0.3.3rc1/src/cryojax/__init__.py +10 -0
- cryojax-0.3.3rc1/src/cryojax/constants/__init__.py +7 -0
- cryojax-0.3.3rc1/src/cryojax/constants/_scattering_factor_parameters.py +57 -0
- cryojax-0.3.3rc1/src/cryojax/constants/_unit_conversions.py +12 -0
- cryojax-0.3.3rc1/src/cryojax/constants/peng1996_element_params.npy +0 -0
- cryojax-0.3.3rc1/src/cryojax/coordinates/__init__.py +8 -0
- cryojax-0.3.3rc1/src/cryojax/coordinates/_geometry.py +24 -0
- cryojax-0.3.3rc1/src/cryojax/coordinates/_make_coordinate_grids.py +204 -0
- cryojax-0.3.3rc1/src/cryojax/cryojax_version.py +16 -0
- cryojax-0.3.3rc1/src/cryojax/data/__init__.py +15 -0
- cryojax-0.3.3rc1/src/cryojax/data/_dataset.py +89 -0
- cryojax-0.3.3rc1/src/cryojax/data/_particle_stack.py +15 -0
- cryojax-0.3.3rc1/src/cryojax/data/_relion/__init__.py +13 -0
- cryojax-0.3.3rc1/src/cryojax/data/_relion/_starfile_reading.py +788 -0
- cryojax-0.3.3rc1/src/cryojax/data/_relion/_starfile_writing.py +578 -0
- cryojax-0.3.3rc1/src/cryojax/experimental/__init__.py +16 -0
- cryojax-0.3.3rc1/src/cryojax/image/__init__.py +34 -0
- cryojax-0.3.3rc1/src/cryojax/image/_average.py +88 -0
- cryojax-0.3.3rc1/src/cryojax/image/_downsample.py +132 -0
- cryojax-0.3.3rc1/src/cryojax/image/_edges.py +192 -0
- cryojax-0.3.3rc1/src/cryojax/image/_fft.py +99 -0
- cryojax-0.3.3rc1/src/cryojax/image/_map_coordinates.py +255 -0
- cryojax-0.3.3rc1/src/cryojax/image/_normalize.py +99 -0
- cryojax-0.3.3rc1/src/cryojax/image/_rescale_pixel_size.py +138 -0
- cryojax-0.3.3rc1/src/cryojax/image/_spectrum.py +60 -0
- cryojax-0.3.3rc1/src/cryojax/image/operators/__init__.py +42 -0
- cryojax-0.3.3rc1/src/cryojax/image/operators/_filters.py +338 -0
- cryojax-0.3.3rc1/src/cryojax/image/operators/_fourier_operator.py +202 -0
- cryojax-0.3.3rc1/src/cryojax/image/operators/_masks.py +420 -0
- cryojax-0.3.3rc1/src/cryojax/image/operators/_operator.py +207 -0
- cryojax-0.3.3rc1/src/cryojax/image/operators/_real_operator.py +86 -0
- cryojax-0.3.3rc1/src/cryojax/inference/__init__.py +20 -0
- cryojax-0.3.3rc1/src/cryojax/inference/_grid_search/__init__.py +17 -0
- cryojax-0.3.3rc1/src/cryojax/inference/_grid_search/custom_types.py +10 -0
- cryojax-0.3.3rc1/src/cryojax/inference/_grid_search/pytree_manipulation.py +205 -0
- cryojax-0.3.3rc1/src/cryojax/inference/_grid_search/search_loop.py +158 -0
- cryojax-0.3.3rc1/src/cryojax/inference/_grid_search/search_method.py +309 -0
- cryojax-0.3.3rc1/src/cryojax/inference/_lie_group_transforms.py +138 -0
- cryojax-0.3.3rc1/src/cryojax/inference/distributions/__init__.py +9 -0
- cryojax-0.3.3rc1/src/cryojax/inference/distributions/_base_distribution.py +58 -0
- cryojax-0.3.3rc1/src/cryojax/inference/distributions/_gaussian_distributions.py +321 -0
- cryojax-0.3.3rc1/src/cryojax/internal/__init__.py +7 -0
- cryojax-0.3.3rc1/src/cryojax/internal/_errors.py +35 -0
- cryojax-0.3.3rc1/src/cryojax/internal/_loop.py +114 -0
- cryojax-0.3.3rc1/src/cryojax/io/__init__.py +23 -0
- cryojax-0.3.3rc1/src/cryojax/io/_gemmi.py +182 -0
- cryojax-0.3.3rc1/src/cryojax/io/_mdtraj.py +43 -0
- cryojax-0.3.3rc1/src/cryojax/io/_mrc.py +240 -0
- cryojax-0.3.3rc1/src/cryojax/io/_pdb_and_cif.py +224 -0
- cryojax-0.3.3rc1/src/cryojax/io/_starfile.py +28 -0
- cryojax-0.3.3rc1/src/cryojax/rotations/__init__.py +9 -0
- cryojax-0.3.3rc1/src/cryojax/rotations/_lie_group.py +522 -0
- cryojax-0.3.3rc1/src/cryojax/rotations/_rotation.py +67 -0
- cryojax-0.3.3rc1/src/cryojax/rotations/_utils.py +61 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/__init__.py +69 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_detector.py +218 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_imaging_pipeline.py +423 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_instrument_config.py +261 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_multislice_integrator/__init__.py +4 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_multislice_integrator/base_multislice_integrator.py +24 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_multislice_integrator/fft_multislice_integrator.py +221 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_pose.py +279 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_potential_integrator/__init__.py +14 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_potential_integrator/atom_potential_integrator.py +159 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_potential_integrator/base_potential_integrator.py +82 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_potential_integrator/fourier_voxel_extract.py +513 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_potential_integrator/nufft_project.py +134 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_potential_representation/__init__.py +17 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_potential_representation/atom_potential.py +569 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_potential_representation/base_potential.py +26 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_potential_representation/voxel_potential.py +435 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_scattering_theory/__init__.py +18 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_scattering_theory/base_scattering_theory.py +120 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_scattering_theory/common_functions.py +44 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_scattering_theory/high_energy_scattering_theory.py +110 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_scattering_theory/multislice_scattering_theory.py +53 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_scattering_theory/weak_phase_scattering_theory.py +337 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_solvent.py +123 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_structural_ensemble/__init__.py +18 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_structural_ensemble/assembly/__init__.py +9 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_structural_ensemble/assembly/base_assembly.py +199 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_structural_ensemble/assembly/helix.py +280 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_structural_ensemble/base_conformation.py +19 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_structural_ensemble/base_ensemble.py +63 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_structural_ensemble/discrete_ensemble.py +60 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_transfer_theory/__init__.py +12 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_transfer_theory/base_transfer_theory.py +53 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_transfer_theory/common_functions.py +63 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_transfer_theory/contrast_transfer_theory.py +150 -0
- cryojax-0.3.3rc1/src/cryojax/simulator/_transfer_theory/wave_transfer_theory.py +139 -0
- cryojax-0.3.3rc1/src/cryojax/utils/__init__.py +17 -0
- cryojax-0.3.3rc1/src/cryojax/utils/_filter_specs.py +46 -0
- cryojax-0.3.3rc1/src/cryojax/utils/_filtered_transformations.py +117 -0
- cryojax-0.3.3rc1/src/cryojax/utils/_transforms.py +130 -0
- cryojax-0.3.3rc1/tests/__init__.py +0 -0
- cryojax-0.3.3rc1/tests/conftest.py +172 -0
- cryojax-0.3.3rc1/tests/data/.gitkeep +0 -0
- cryojax-0.3.3rc1/tests/data/1uao.pdb +282 -0
- cryojax-0.3.3rc1/tests/data/3j9g_potential_ps4_4.mrc +0 -0
- cryojax-0.3.3rc1/tests/data/3j9g_subunit_potential_ps4_4.mrc +0 -0
- cryojax-0.3.3rc1/tests/requirements.txt +3 -0
- cryojax-0.3.3rc1/tests/test_agree_with_cistem.py +186 -0
- cryojax-0.3.3rc1/tests/test_detector.py +81 -0
- cryojax-0.3.3rc1/tests/test_distributions.py +22 -0
- cryojax-0.3.3rc1/tests/test_ensemble.py +44 -0
- cryojax-0.3.3rc1/tests/test_fft.py +37 -0
- cryojax-0.3.3rc1/tests/test_grid_search.py +103 -0
- cryojax-0.3.3rc1/tests/test_helix.py +219 -0
- cryojax-0.3.3rc1/tests/test_normalize.py +24 -0
- cryojax-0.3.3rc1/tests/test_pixels_from_atoms.py +193 -0
- cryojax-0.3.3rc1/tests/test_pose_agreement.py +69 -0
- cryojax-0.3.3rc1/tests/test_potential.py +27 -0
- cryojax-0.3.3rc1/tests/test_rescale_pixel_size.py +13 -0
- cryojax-0.3.3rc1/tests/test_shape.py +60 -0
- cryojax-0.3.3rc1/tests/test_transforms.py +59 -0
- cryojax-0.3.3rc1/tests/test_voxels_from_atoms.py +262 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
name: Build docs
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
deploy:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- name: Checkout repository
|
|
13
|
+
uses: actions/checkout@v4
|
|
14
|
+
with:
|
|
15
|
+
fetch-depth: 0
|
|
16
|
+
|
|
17
|
+
- name: Set up Python
|
|
18
|
+
uses: actions/setup-python@v5
|
|
19
|
+
with:
|
|
20
|
+
python-version: "3.10"
|
|
21
|
+
|
|
22
|
+
- name: Install dependencies
|
|
23
|
+
run: |
|
|
24
|
+
pip install --upgrade pip
|
|
25
|
+
pip install -r docs/requirements.txt
|
|
26
|
+
|
|
27
|
+
- name: Build
|
|
28
|
+
run: |
|
|
29
|
+
mkdocs build
|
|
30
|
+
|
|
31
|
+
# Push the site to github-pages
|
|
32
|
+
- name: GitHub Pages action
|
|
33
|
+
uses: peaceiris/actions-gh-pages@v4
|
|
34
|
+
with:
|
|
35
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
36
|
+
publish_dir: ./site
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
deploy:
|
|
10
|
+
name: Deploy
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
|
|
13
|
+
permissions:
|
|
14
|
+
# IMPORTANT: this permission is mandatory for trusted publishing on PyPi
|
|
15
|
+
# see https://docs.pypi.org/trusted-publishers/
|
|
16
|
+
id-token: write
|
|
17
|
+
# This permission allows writing releases
|
|
18
|
+
contents: write
|
|
19
|
+
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v4
|
|
22
|
+
with:
|
|
23
|
+
fetch-depth: 0
|
|
24
|
+
|
|
25
|
+
- name: 🐍 Set up Python
|
|
26
|
+
uses: actions/setup-python@v5
|
|
27
|
+
with:
|
|
28
|
+
python-version: "3.11"
|
|
29
|
+
|
|
30
|
+
- name: 👷 Build
|
|
31
|
+
run: |
|
|
32
|
+
python -m pip install build
|
|
33
|
+
python -m build
|
|
34
|
+
|
|
35
|
+
- name: 🚢 Publish to PyPI
|
|
36
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# GHA workflow for running tests.
|
|
2
|
+
#
|
|
3
|
+
# Largely taken from
|
|
4
|
+
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
|
|
5
|
+
# Please check the link for more detailed instructions
|
|
6
|
+
|
|
7
|
+
name: Tests
|
|
8
|
+
|
|
9
|
+
on:
|
|
10
|
+
pull_request:
|
|
11
|
+
push:
|
|
12
|
+
branches:
|
|
13
|
+
- main
|
|
14
|
+
workflow_dispatch:
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
build:
|
|
18
|
+
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
strategy:
|
|
21
|
+
matrix:
|
|
22
|
+
python-version: ["3.11"]
|
|
23
|
+
|
|
24
|
+
steps:
|
|
25
|
+
- uses: actions/checkout@v4
|
|
26
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
27
|
+
uses: actions/setup-python@v5
|
|
28
|
+
with:
|
|
29
|
+
# lfs: true
|
|
30
|
+
python-version: ${{ matrix.python-version }}
|
|
31
|
+
# - name: Install Git LFS
|
|
32
|
+
# run: |
|
|
33
|
+
# sudo apt-get update
|
|
34
|
+
# sudo apt-get install git-lfs
|
|
35
|
+
# git lfs install
|
|
36
|
+
# - name: Pull LFS Files
|
|
37
|
+
# run: git lfs pull
|
|
38
|
+
- name: Install dependencies
|
|
39
|
+
run: |
|
|
40
|
+
python -m pip install --upgrade pip
|
|
41
|
+
pip install .
|
|
42
|
+
pip install -r tests/requirements.txt
|
|
43
|
+
- name: Test with pytest
|
|
44
|
+
run: |
|
|
45
|
+
pytest tests/
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# generate-starfile-and-mrcs tutorial generated data
|
|
2
|
+
docs/examples/relion_dataset.star
|
|
3
|
+
docs/examples/relion_dataset.star~
|
|
4
|
+
docs/examples/relion_dataset_particles/
|
|
5
|
+
|
|
6
|
+
.vscode/settings.json
|
|
7
|
+
*.swp
|
|
8
|
+
*_version.py
|
|
9
|
+
**/__pycache__
|
|
10
|
+
**/.ipynb_checkpoints
|
|
11
|
+
*.egg-info/
|
|
12
|
+
build/
|
|
13
|
+
dist/
|
|
14
|
+
site/
|
|
15
|
+
__pycache__
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# See https://pre-commit.com for more information
|
|
2
|
+
# See https://pre-commit.com/hooks.html for more hooks
|
|
3
|
+
ci:
|
|
4
|
+
autoupdate_schedule: monthly
|
|
5
|
+
|
|
6
|
+
repos:
|
|
7
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
8
|
+
rev: v3.2.0
|
|
9
|
+
hooks:
|
|
10
|
+
- id: trailing-whitespace
|
|
11
|
+
- id: end-of-file-fixer
|
|
12
|
+
- id: check-yaml
|
|
13
|
+
- id: check-added-large-files
|
|
14
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
15
|
+
# Ruff version.
|
|
16
|
+
rev: v0.3.4
|
|
17
|
+
hooks:
|
|
18
|
+
# Run the linter.
|
|
19
|
+
- id: ruff
|
|
20
|
+
types_or: [ python, pyi, jupyter ]
|
|
21
|
+
args: [ --fix ]
|
|
22
|
+
# Run the formatter.
|
|
23
|
+
- id: ruff-format
|
|
24
|
+
types_or: [ python, pyi, jupyter ]
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# Contributor Guide
|
|
2
|
+
|
|
3
|
+
Contributions to this repository are welcome and greatly appreciated! We would love
|
|
4
|
+
for this package to grow and be supported by a larger community.
|
|
5
|
+
|
|
6
|
+
## Design principles
|
|
7
|
+
|
|
8
|
+
`cryojax` is built on [equinox](https://docs.kidger.site/equinox/). In short, `equinox` provides an interface to writing parameterized functions in `jax`. The core object of these parameterized functions is called a [Module](https://docs.kidger.site/equinox/api/module/module/) (yes, this takes inspiration from pytorch). `equinox` ships with features to interact with these `Module`s, and more generally with [pytrees](https://jax.readthedocs.io/en/latest/pytrees.html) in `jax`. One of the most useful of these features, not found in `jax` itself, is a means of performing out-of-place updates on pytrees through `equinox.tree_at`.
|
|
9
|
+
|
|
10
|
+
Equinox also provides a recommended pattern for writing `Module`s: https://docs.kidger.site/equinox/pattern/. We think this is a good template for code readability, so `cryojax` tries to adhere to these principles as much as possible.
|
|
11
|
+
|
|
12
|
+
## What contributions fit into `cryojax`?
|
|
13
|
+
|
|
14
|
+
`cryojax` does not try to be a one-stop shop for cryo-EM analysis. The current scope of the package is outlined in the README.md. However, we would like to know what you would find helpful for your research, so if you have a contribution in mind please feel free to get in touch on the [Issue
|
|
15
|
+
Tracker](https://github.com/mjo22/cryojax/issues) and ask.
|
|
16
|
+
|
|
17
|
+
## Getting started
|
|
18
|
+
|
|
19
|
+
First, fork the library on GitHub. Then clone and install the library in development mode:
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
git clone https://github.com/your-username-here/cryojax.git
|
|
23
|
+
cd cryojax
|
|
24
|
+
python -m pip install -e .
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Next, install the pre-commit hooks:
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
python -m pip install pre-commit
|
|
31
|
+
pre-commit install
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
This uses `ruff` to format and lint the code.
|
|
35
|
+
|
|
36
|
+
## Running tests
|
|
37
|
+
|
|
38
|
+
After making changes, make sure that the tests pass. In the `cryojax` base directory, run
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
python -m pip install -r tests/requirements.txt
|
|
42
|
+
python -m pytest
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**If you are using a non-linux OS, the [`pycistem`](https://github.com/jojoelfe/pycistem) testing dependency cannot be installed**. In this case, in order to run the tests against [`cisTEM`](https://github.com/timothygrant80/cisTEM), run the testing [workflow](https://github.com/mjo22/cryojax/actions/workflows/testing.yml). This can be done manually or will happen automatically when a PR is opened.
|
|
46
|
+
|
|
47
|
+
## Building documentation
|
|
48
|
+
|
|
49
|
+
Again in the `cryojax` base directory, prepare to build the documentation by installing dependencies and pulling large-ish files from [git LFS](https://git-lfs.com/).
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
python -m pip install -r docs/requirements.txt
|
|
53
|
+
sudo apt-get install git-lfs # If using macOS, `brew install git-lfs`
|
|
54
|
+
git lfs install; git lfs pull
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Now, build the documentation with
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
mkdocs serve
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
and navigate to the local webpage by following the instructions in your terminal.
|
|
64
|
+
|
|
65
|
+
## How to submit changes
|
|
66
|
+
|
|
67
|
+
Now, if the tests and documentation look okay, push your changes and open a [Pull Request](https://github.com/mjo22/cryojax/pulls)!
|
|
68
|
+
|
|
69
|
+
## How to report a bug
|
|
70
|
+
|
|
71
|
+
Report bugs on the [Issue Tracker](https://github.com/mjo22/cryojax/issues).
|
|
72
|
+
|
|
73
|
+
When filing an issue, here are some guidelines that may be helpful to know:
|
|
74
|
+
|
|
75
|
+
- Which operating system and Python version are you using?
|
|
76
|
+
- Which version of this project are you using?
|
|
77
|
+
- What did you do?
|
|
78
|
+
- What did you expect to see?
|
|
79
|
+
- What did you see instead?
|
|
80
|
+
|
|
81
|
+
The best way to get your bug fixed is to provide a test case, and/or steps to
|
|
82
|
+
reproduce the issue. In particular, consider including a [Minimal, Reproducible
|
|
83
|
+
Example](https://stackoverflow.com/help/minimal-reproducible-example).
|
|
84
|
+
|
|
85
|
+
## How to request a feature
|
|
86
|
+
|
|
87
|
+
Feel free to request features on the [Issue
|
|
88
|
+
Tracker](https://github.com/mjo22/cryojax/issues).
|