Repository navigation
Add SpliceAI2 modules, subworkflow and workflow - #37
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds SpliceAI2 to core: four modules, a subworkflow and a workflow, plus the catalog entry.
What is added
modules/nextflow/spliceai2/chunk: splits the genome into strand-aware chunks (spliceai2 chunk).modules/nextflow/spliceai2/predict: per-chunk donor and acceptor WIGs on both strands (spliceai2 predict, GPU).modules/nextflow/spliceai2/transcripts: optional transcripts BED12 for a loci BED6 (spliceai2 transcripts, GPU).modules/nextflow/spliceai2/publish: copies the final outputs.subworkflows/spliceai2: chunk → predict → WIG to bigWig → per-track merge, and the optional transcripts branch.workflows/spliceai2: the entry point (--genome,--spliceai2_models, optional--spliceai2_loci).Usage notes
ghcr.io/hillerlab/spliceai2:latest(0.0.6, from Add SpliceAI2 container: genome-wide splice sites and per-locus transcripts containers#69).--spliceai2_modelspointing to a directory withspliceai2_multispecies_13M_01/andspliceai2_multispecies_13M_02/, obtained under Illumina's terms.--no-compile: torch.compile needs a writable HOME and a C compiler, and the Apptainer task has neither.Other flags can still be passed through
ext.args.--spliceai2_locineeds a FASTA index next to the genome:genome.fa.fai, or forgenome.fa.gzan index of the uncompressedsequence named
genome.fa.fai. Core has no samtools faidx module, so a missing index fails early with a message saying so.Tests
Real runs with
-profile apptaineron an L4, using onlyhillerlab.configand the published image:spliceai2 predictrun.spliceai2 transcriptsrun, including the gzipped-genome run.Known issue (pre-existing, unchanged here)
modules/nextflow/chromsize's stub writes${prefix}/chrom.sizeswithprefix = meta.id, while the real script and thedeclared output use
genome.baseName. A full-workflow-stub-runtherefore stops at CHROMSIZE. Real runs are unaffected.