Skip to content

Add support for Snakemake latch develop for JIT step#364

Merged
rahuldesai1 merged 8 commits into
mainfrom
rahuldesai1/snakemake-latch-develop
Jan 8, 2024
Merged

Add support for Snakemake latch develop for JIT step#364
rahuldesai1 merged 8 commits into
mainfrom
rahuldesai1/snakemake-latch-develop

Conversation

@rahuldesai1
Copy link
Copy Markdown
Contributor

@rahuldesai1 rahuldesai1 commented Dec 28, 2023

Flow for using latch develop with Snakemake:
latch register . --snakefile ...
latch develop . --snakemake ...
python3 <user defined test file> (see example below)

from snakemake_jit_entrypoint import snakemake_gia_jit_register_task

snakemake_gia_jit_register_task(
    adapter_r1="AGATCGGAAGAGCACACGTCTGAACTCCAGTCAC",
    adapter_r2="CTGTCTCTTATACACATCTGACGCTGCCGACGA",
    genome_dir="latch://24030.account/uditas-inputs/test-inputs/references",
    demuxed_fastq_dir="latch://24030.account/uditas-inputs/test-inputs/human_sample/post-demultiplexed",
    donor_map_dir="latch://24030.account/uditas-inputs/test-inputs/human_sample/donor_map",
    manifest="latch://24030.account/uditas-inputs/test-inputs/human_sample/metadata.tsv",
    read_structure="8B+T 8B+T",
    has_tn5_umis=True,
    dry_run=True,
)

This will run the JIT step, and upload the resulting entrypoint file without starting the execution.

Copy link
Copy Markdown
Contributor

@ayushkamat ayushkamat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

big thing is not adding a dry_run parameter, use env variable instead

everything else is minor

Comment thread latch_cli/services/local_dev_old.py Outdated
Comment thread latch_cli/main.py
Comment thread latch_cli/snakemake/utils.py Outdated
Comment thread latch_cli/snakemake/workflow.py Outdated
Comment thread latch_cli/snakemake/workflow.py Outdated
Comment thread latch_cli/snakemake/workflow.py Outdated
Comment thread latch_cli/snakemake/workflow.py Outdated
Comment thread latch_cli/snakemake/workflow.py
Comment thread latch_cli/snakemake/workflow.py
Comment thread docs/source/snakemake/debugging.md
Comment thread docs/source/snakemake/debugging.md
Comment thread latch_cli/snakemake/workflow.py Outdated
Comment thread docs/source/snakemake/debugging.md Outdated
@rahuldesai1 rahuldesai1 merged commit c368868 into main Jan 8, 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.

2 participants