Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slurm runner #61

Open
wants to merge 41 commits into
base: master
Choose a base branch
from
Open

Slurm runner #61

wants to merge 41 commits into from

Conversation

jkanche
Copy link
Member

@jkanche jkanche commented Nov 28, 2024

Building on HPC environments with slurm

To simplify building TileDB files on HPC environments that use slurm, there are a few steps you need to follow.

  • Step 1: Construct a manifest file
    A minimal manifest file (json) must contain the following fields
  • "files": A list of file path to the input h5ad objects.
  • "python_env": A set of commands to activate the Python environment containing this package and its dependencies.

Here’s an example of the manifest file:

manifest = {
    "files": your/list/of/files,
    "python_env": """
. /system/gredit/clientos/etc/profile

ml Miniforge3
conda activate biocpy_miniforge

~/.conda/envs/biocpy_miniforge/bin/python --version
which python
python --version
    """,
    "matrix_options": [
        {
            "matrix_name": "non_zero_cells",
            "dtype": "uint32"
        },
        {
            "matrix_name": "pseudo_bulk_log_normed",
            "dtype": "float32"
        }
    ],
}

import json
json.dump(manifest, open("your/path/to/manifest.json", "w"))

For more options, check out the README.

  • Step 2: Submit the job
    Once your manifest file is ready, you can submit the necessary jobs using the cellarr_build CLI. Run the following command:
cellarr_build --input-manifest your/path/to/manifest.json --output-dir your/path/to/output --memory-per-job 8 --cpus-per-task 2

Resolves: #59

jkanche and others added 30 commits November 21, 2024 18:05
…uerying; updating tests and documentation as well
@jkanche jkanche marked this pull request as ready for review December 12, 2024 17:04
@jkanche jkanche self-assigned this Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

slurm based ingestion process for large collections
1 participant