Pipeline processes
Subcommands invoked as individual processes during JASEN pipeline execution.
concatenate-files
Merge multiple YAML files (e.g. versions.yml outputs from pipeline runs) into a single YAML file. Later files override keys from earlier files.
jasentool concatenate-files -i <FILE> [-i <FILE> ...] -o <FILE>
Argument |
Required |
Default |
Description |
|---|---|---|---|
|
Yes (multiple) |
— |
Input YAML file(s) to concatenate |
|
Yes |
— |
Path to output YAML file |
Example
jasentool concatenate-files \
-i run1/versions.yml \
-i run2/versions.yml \
-o merged_versions.yml
count-reads
jasentool count-reads --fastq1 <FILE> [--fastq2 <FILE>] --output-file <FILE>
[--sample-id <ID>]
Argument |
Required |
Default |
Description |
|---|---|---|---|
|
Yes |
— |
Path to R1 FASTQ file |
|
No |
— |
Path to R2 FASTQ file (paired-end) |
|
Yes |
— |
Path to JSON output file |
|
No |
— |
Sample ID |
Example
jasentool count-reads \
--fastq1 sample_R1.fastq.gz \
--fastq2 sample_R2.fastq.gz \
--output-file read_counts.json \
--sample-id SAMPLE001
create-yaml
Create a YAML input file for Bonsai upload from sample metadata and analysis result file paths. Builds IGV annotation entries automatically from BAM/BAI, VCF, and BED inputs.
jasentool create-yaml --sample-id <ID> --sample-name <NAME> --groups <GROUP> [--groups ...] -o <FILE>
[analysis result options ...]
Required options
Argument |
Description |
|---|---|
|
Sample ID |
|
Sample name |
|
Sample group(s); repeat for multiple |
|
Output YAML file path |
Analysis result options (all optional, all accept a file path)
Argument |
Description |
|---|---|
|
AMRFinder output |
|
chewBBACA cgMLST output |
|
Emmtyper output |
|
GAMBIT core output |
|
Kleborate output |
|
Kleborate hAMRonization output |
|
Kraken2 output |
|
MLST output |
|
Mykrobe output |
|
NanoPlot output |
|
Nextflow run info JSON |
|
Post-alignment QC output (mutually exclusive with |
|
QUAST output |
|
Reference genome annotation |
|
Reference genome FASTA |
|
ResFinder output |
|
Samtools stats output |
|
Samtools bedcov output (mutually exclusive with |
|
Samtools stats (detailed) output (mutually exclusive with |
|
SCCmec output |
|
SerotypeFinder output |
|
ShigaPass output |
|
SKA index file |
|
Sourmash signature file |
|
spaTyper output |
|
TBProfiler output |
|
VirulenceFinder output |
IGV annotation options (all optional)
Argument |
Description |
|---|---|
|
BAM alignment file (creates IGV alignment track) |
|
BAM index file |
|
VCF variant file (creates IGV variant track) |
|
TB grading rules BED file (creates IGV BED track) |
|
TB database BED file (creates IGV BED track) |
Other options
Argument |
Description |
|---|---|
|
LIMS ID |
|
Software info file(s); repeat for multiple |
Example
jasentool create-yaml \
--sample-id SAMP001 \
--sample-name "Sample 001" \
--groups wgs \
--bam aligned.bam \
--bai aligned.bam.bai \
--mlst mlst.json \
--kraken kraken_report.txt \
-o input.yml
annotate-delly
Annotate a Delly structural-variant VCF/BCF with gene and locus_tag INFO fields derived
from a tabix-indexed BED file. Handles chromosome name mismatches between the VCF and BED
(single-contig BED files are remapped automatically).
jasentool annotate-delly -v <VCF> -b <BED> -o <OUTPUT>
Argument |
Required |
Default |
Description |
|---|---|---|---|
|
Yes |
— |
Delly VCF/BCF to annotate |
|
Yes |
— |
Tabix-indexed BED file with gene annotations |
|
Yes |
— |
Output annotated VCF path |
Example
jasentool annotate-delly \
-v delly.bcf \
-b converged_who_fohm_tbdb.bed.gz \
-o delly_annotated.vcf
create-blacklist
Build a minority variant blacklist by running samtools mpileup and minority base distribution
analysis across a set of BAM files, then aggregating positions that exceed a frequency threshold
in enough samples. The resulting TSV can be passed to minority-report via --blacklist to
exclude known high-noise positions.
Intermediate per-sample mpileup and distribution files are written to --output-dir. Only
samples whose stem matches --sample-pattern contribute to the final blacklist.
jasentool create-blacklist (--input-file <FILE> | --input-dir <DIR>)
--output-dir <DIR> -o <FILE>
[--bed-file <FILE>] [--samtools <PATH>]
[--sample-pattern <REGEX>]
[--min-freq <FLOAT>] [--min-count <INT>]
Argument |
Required |
Default |
Description |
|---|---|---|---|
|
Yes (or |
— |
Text file of BAM paths, one per line |
|
Yes (or |
— |
Directory containing |
|
Yes |
— |
Directory for intermediate files |
|
Yes |
— |
Output blacklist TSV path |
|
No |
— |
BED file passed to |
|
No |
|
Path or name of the samtools executable |
|
No |
|
Regex to filter which sample names contribute to the blacklist |
|
No |
|
Minimum minority frequency to count a position |
|
No |
|
Minimum number of samples a position must appear in |
Example
# From a directory of BAM files, only including samples matching ^[0-9]{2}MT
jasentool create-blacklist \
--input-dir /data/bams \
--output-dir /data/blacklist_work \
-o blacklist.tsv \
--bed-file targets.bed \
--sample-pattern '^[0-9]{2}MT'
minority-report
Compute minority base frequency distribution from a pre-computed samtools mpileup file. For each
position with coverage between 30 and 100, the second-highest base count divided by coverage is
recorded as the minority frequency. Outputs two files:
<output>— one minority frequency per line (no position)<output>.withpos— tab-separatedposition\tminority_freq
jasentool minority-report --mpileup <FILE> -o <OUTPUT_STEM> [--blacklist <FILE>]
Argument |
Required |
Default |
Description |
|---|---|---|---|
|
Yes |
— |
Input mpileup file ( |
|
Yes |
— |
Output path stem (no extension) |
|
No |
— |
Blacklist TSV of positions to exclude (see |
Example
jasentool minority-report \
--mpileup sample.mpileup.gz \
--blacklist blacklist.tsv \
-o sample_minority_dist
post-align-qc
jasentool post-align-qc --sample-id <ID> --bam-file <FILE> --output-file <FILE>
[--bed-file <FILE>] [--cpus <N>]
Argument |
Required |
Default |
Description |
|---|---|---|---|
|
Yes |
— |
Sample ID |
|
Yes |
— |
Input BAM file |
|
Yes |
— |
Path to QC JSON output file |
|
No |
— |
Input BED file |
|
No |
|
Number of CPUs |
Example
jasentool post-align-qc \
--sample-id SAMPLE001 \
--bam-file aligned.bam \
--output-file qc.json \
--bed-file targets.bed \
--cpus 4