Repository navigation
mitopiper 2.0.0
The single maker.py script was refactored into the installable mitopiper package.
Added
- VCF output: every mt preset writes
vcf/<sample>.vcf(mitopiper mt vcf, afterannotate), with the sample's heteroplasmies and variants.GTgives the called alleles (1homoplasmic,0/1or1/2heteroplasmic),DP/AD/AFthe depth, reads per allele and heteroplasmy level,INFOthe call type and genes; a heteroplasmy whose minor allele a NUMT carries is markedNUMT_MINORand filtered asnumt(unless its major allele is a variant). Deletion alleles are left out. Workspaces made before get the step withmitopiper presets reset NAME. - General setting
keep_reads(default true): when false, a sample job deletes its downloaded and trimmed FASTQ files after its last step succeeded (32 GB for two RNA-seq samples on BGU). Local FASTQ files are only linked or copied into the experiment, so the originals stay. Only jobs that stop at any failing command (bash/zsh/ksh withfail_fast) delete reads; otherwise the build warns and keeps them. - Every job script unsets
PERL5LIBandPERL5OPT(general settingunset_perl_env, on by default): jobs inherit the submitting shell's environment, and a site Perl'sPERL5LIBfrom the login files made FastQC fail in a job submitted from such a shell (BGU round 5). - The build refuses an "mtDNA" reference larger than 50 MB (a whole genome registered as
--fasta, e.g. hg38, which was rotated and indexed for 1.6 h on BGU) and warns above 1 MB. - The release notes of
latestgive the archive's MD5 and the commitmitopiper --versionmust name. mitopiper --versionnames the commit the copy was made from (stamped intomitopiper-latest.tar.gzbygit archive, or read from git in a checkout), so an installation can be compared with the title of thelatestrelease. The experiment manifest records it too.- The interactive start menu can monitor and rerun any experiment launched in the workspace, not only the last build: monitor / rerun other experiments lists them newest first, with launch time and job count, and follows the chosen ones together.
- A folder of FASTQ files (
.fastq,.fq,.fastq.gz,.fq.gz) can be the input of a build:mitopiper build FOLDER --org "Homo sapiens"or, interactively, its path at the prompt after the scheduler. The files are linked (default), copied or moved (--fastq-mode) into the workspace'sfastq/<folder name>/, and their table is written tometadata/<folder name>.tsv(asmake-tsvdoes).--browse/bchoose the folder in a file browser (Tk, else zenity or kdialog; needs a display, e.g.ssh -X). - Reference downloads (
refs fetch-genome, done by the reference job) usemitopiper downloadtoo: the same attempts (download_tries), protocols and growing waits, with the MD5 taken from NCBI'smd5checksums.txt(--md5-url), so a wrong checksum is retried instead of failing the job. Before, they were a singlewgetandmd5sum -c. - Downloads that keep trying:
mitopiper downloadfetches each FASTQ file of the sample jobs. It makes up todownload_triesattempts (default 10), a wrong MD5 counting as a failed attempt (the file is deleted first). ENA URLs alternate between http, https and ftp, and the wait doubles fromdownload_delayup to 10 minutes. When every attempt failed and the SRA Toolkit is installed (optional;sra_fallback, on by default), the run is taken from the SRA withfasterq-dump; without it the download fails after the attempts. Before, a download failed at the first error and a wrong checksum got one more try. Found on the BGU cluster (4 corrupt files among ~80, then an HTTP 403 after an hour of downloading). - The NUMT-aware presets reuse the nuclear assembly and its bwa index when its mitochondrial sequence is the mtDNA reference (same name and sequence, e.g. GRCh38 from NCBI with NC_012920.1):
references/derived/<organism>/*.with_nuclear.falinks to it instead of being a copy that is indexed again, which took over an hour per workspace for human. Otherwise nothing changes;mitopiper mt combine-references --copyforces a copy. - Diagnosis of
ERROR 403: Forbiddendownloads (seen on BGU, exit code 8 after an hour of downloading): how to tell a run that is not public from the archive or a proxy refusing the cluster, and to rerun fromwgetlater (complete files are kept). It was reported as an unrecognised failure. - NUMT allele flag: the NUMT-aware presets add
numt_basesandnumt_minorto the annotated tables (andnumt_minortoheteroplasmy_sites.tsv).numt_minor=yeswhen a heteroplasmy's minor allele is a non-reference base that a NUMT carries at that position, so NUMT reads can explain it (numt_baseslists those bases, comma-separated). The reference job builds the table once per organism (mitopiper mt numt-alleles: the mtDNA fragments aligned to the NUMT reference). On the tutorial's unfiltered pileup it flags all 77 NUMT-made heteroplasmies and none of the true ones. On the BGU RNA-seq data it flagged 13 of the 26 heteroplasmies that the Numt Parser preset removes and 6 of the 50 it keeps, among them the low-frequency 5746 A and 12007 A. A first version also flagged minor alleles equal to the reference base whenever a NUMT carried it (87% of positions), which marked a third of the calls every preset agrees on (e.g. 2617 A in all samples); tables made by that version are read correctly. mitopiper presets reset NAME ...restores bundled presets to the version of the installed mitopiper (workspaces keep their own copies, so upgrades did not reach them); the old copy is kept asNAME_old_DATE.- Steps can be marked
"temporary": true: their outputs are deleted at the end of a successful sample job. The mt presets mark their intermediate SAM/BAM files, which took 93 GB of the 116 GB of one preset's full run (10 RNA-seq samples) on the BGU cluster. benchmark/sge_usage.sh: run time, CPU time and peak memory of every job of an experiment from Grid Engine'sqacct(failed attempts included), with core-hours per experiment.mitopiper presets set PRESET[,PRESET...] KEY=VALUE ...changes general settings (qsub_queue=long.q) and step fields (numt-parser.memory=32G) without editing JSON. Every name is checked first, so a typo changes nothing.- mtDNA circularity, based on the original
circulize.py/combine_processed_pileups.py: samples are also aligned to a rotated copy of the mtDNA (mt_rotation, default half the mtDNA length), andmitopiper mt combine-pileupsmerges both pileups so themt_junction_windowpositions (default 400) on either side of the origin come from the rotated alignment. - NUMT-aware alignment:
mt-variants-numtaligns to nuclear genome + mtDNA (mitopiper mt combine-referencesdrops duplicate mitochondrial sequences of the assembly), keeps reads mapping to the mtDNA with MAPQ ≥numt_min_mapq, and realigns only those to the rotated mtDNA. - Tutorial (
docs/tutorial.md):tutorial/simulate.pymakes a deterministic mtDNA dataset with a known answer: heteroplasmies of 5–20% (one next to the origin), a homoplasmic variant, a diverged NUMT plus achrMcopy in a synthetic nuclear genome, NUMT contamination, and reads spanning the origin. The tutorial runs it through all three mt presets and checks the result against the truth. It was run end to end with the tools ofenvs/mitopiper-tools.yml, whose pins resolve. - Benchmark (
benchmark/):run_presets.shbuilds and submits the same samples with every mt preset, andcompare.pyreports depth next to the origin (linear vs circular), reads removed as NUMTs, concordance of calls between presets, and, with a truth table, precision, recall and frequency error. Figures are drawn when matplotlib is installed. - CI runs the tutorial on a real Grid Engine (
.github/workflows/sge.yml): it builds daimh/sge, sets up a one-host cluster (.github/sge/setup_sge.sh), smoke-tests qsub/-hold_jid/arrays/qacct and submits the three mt presets with-s sge, checked against the simulated truth. Ubuntu's gridengine packages crash on start-up, hence the source build. - Reference jobs of builds that run at the same time (e.g. the three mt presets submitted together) no longer corrupt each other's indices: each organism is prepared under
flock(references/derived/<organism>/.prepare.lock), so one job builds and the others wait and then skip what exists. Found on a real Grid Engine, where twobwa indexon the same rotated reference crashed a job. - SGE: the monitor asks
qacctwhy a job that disappeared fromqstatended (once per job; it reads the whole accounting file). It recognises time limits (failed 37with the requestedh_rtused up), memory limits (h_vmem),qdeland ordinary failures, so killed jobs get the right diagnosis and--auto-fix. Found by running the tutorial on a real Grid Engine (daimh/sge 8.1.9). - Diagnosis: bwa's info line
[M::bwa_idx_load_from_disk] …, printed by every successful run, no longer counts as a missing index. Only qstat's error states (Eqw) are reported as SGE error states. - SGE:
master.shno longer usesqsub -terse, which older Grid Engines reject. It reads the job id from qsub's usual answer ("Your job 123 ... has been submitted", also for job arrays), and stops with qsub's message if there is no id. A metadata path that does not exist is reported with the full path that was tried. mitopiper-latest.tar.gz: after every commit tomasterthat passes CI, a CI job packages the commit (git archive) and publishes it with its MD5 on thelatestrelease. That gives a fixed download link for clusters wheregit cloneis not possible.- CI runs the whole tutorial with the real tools on every push. The job installs
envs/mitopiper-tools.ymlwith micromamba and Numt Parser at a pinned commit. It runstutorial/run_tutorial.sh, andtutorial/check_results.pythen fails the build if the true heteroplasmies, the NUMT filtering, the origin depth or the NUMT search differ from the simulated truth. The results are kept as a build artifact. The unit-test job also runs pyflakes. docs/HPC_TESTING.md: a checklist for testing mitopiper on a new cluster.- The reference job builds the indices that a reference you added lacks (when its FASTA is on the build machine), instead of every sample job failing at alignment.
- The monitor no longer counts cutadapt's report lines (
max.err, "trimming error rate") as errors. - Per-position tables and heteroplasmy.
mitopiper mt annotateis a dependency-free port ofprocess_pileup.py. It reports coverage per strand, read starts/ends, z-scores, RPM and genes from GFF3/GTF/GenBank, with fixed read start/end counting and gene intervals. It adds allele counts and minor allele frequencies, with depth, frequency and both-strand filters for heteroplasmy calls.mitopiper mt heteroplasmycollects the sites of all samples into a sites table and a sample × position frequency matrix. Both run at the end of every mt preset. - A step setting whose placeholder is empty for a reference (e.g.
--annotation _gtfwithout a GTF) is left out instead of rendered without a value. - Numt Parser (de Flamingh et al. 2023) for NUMT removal: the
mt-variants-numtparserpreset aligns to the mtDNA and to a NUMT reference, classifies reads withnumt_parser.py, and keeps the reads classified as mtDNA (mitopiper mt numt-reads,samtools view -N). The NUMT reference is given withrefs add --numt-fasta, or found in the nuclear genome by the reference job (mitopiper mt fragments+bwa mem -a+mitopiper mt numt-regions+samtools faidx). The tool check explains how to install Numt Parser. - Curated presets in every workspace:
mt-variants,mt-variants-numt,mt-variants-numtparserandrnaseq-expression(STAR + featureCounts). The mt pileups report every position without a depth cap (-a -d 0). - Derived references (rotated, nuclear + mtDNA) are built and indexed once by the reference job under
references/derived/. Index detection looks at a step's command, not its name. Structure tokens can be escaped with\word. - Reproducibility: the tool-check job records the path and version of every tool in
output/<exp>/tool_versions.tsv. Steps can run in their owncontainer(Apptainer/Singularity, general settingcontainer_runtime) orconda_env.envs/mitopiper-tools.ymlpins the tools of the bundled workflows, and failures to start a container or conda environment are diagnosed. download_mode: downloads can run on the login node (login, bymaster.shbefore submitting) or in one download job (queue, optionally ondownload_queue), as a stage of their own that samples wait for. Reruns re-download what is missing.- Array jobs: with
max_running(a concurrency limit) orarray_jobs, the sample jobs of an experiment are submitted as one array job (SLURM--array=1-N%M, SGE-t/-tc, LSFname[1-N]%M). Monitoring, diagnosis and reruns stay per sample, and SLURM array tasks are queried individually. - Per-step resources: optional
threads,memoryandwalltimefields on a step. A job asks for the largest threads and memory and the summed time of its steps, never less than the general settings._threadsgives a step its own thread count, and the STAR step declares 8 threads and 32G. - Time limits (
walltime) are also passed to SGE (-l h_rt) and LSF (-W), not only to SLURM. - The package and command are named
mitopiper(development builds were calledpipemaker; their workspaces and manifests are still read). - Nuclear genomes from NCBI Genome:
mitopiper refs fetch-genome ORGANISM [--accession GCF_…] [--nuclear-of SET], and an interactive option when an organism has no reference. mitopiper finds the reference assembly through the NCBI Datasets API and warns about its size before asking for confirmation. If none is found, it reports an error and (interactively) lets you enter a path instead. The download itself, verified against NCBI's MD5 sums, and the indexing run in the reference job on the cluster. - Tool check. Every build gets a
check_<exp>.shjob that runs first and stops the pipeline if a tool the prep, sample or experiment jobs call cannot be found (e.g. cutadapt behind trim_galore). The same check runs locally before launching. Interactive mode offers to let you fix it yourself, to install into the current environment (conda/mamba from bioconda + conda-forge, or pip), or to add a set-up line to every job and regenerate the scripts.mitopiper buildhalts unless--auto-fix(install) or--no-checkis given, andmitopiper check [--auto-fix]runs the check on its own. The monitor, diagnosis and rerun understand the check job. - Interactive mode chains build → launch → monitor → diagnose → rerun. After the scripts are written it offers to launch them, then opens an interactive monitor session (live table plus the commands
j,e,r,o,i,q). The rerun options pre-fill the diagnosed fix. On start-up it offers to monitor the last build. Also available asmitopiper monitor -i. mitopiper rerun/python monitor.py --rerun: resubmit failed, killed or skipped jobs, resuming at the step that failed. It supports per-rerun resource overrides,--free-formsetup lines,--from/--from-start/--clean, and--auto-fix. Stuck dependants are cancelled, and reruns are logged in the manifests.- Failure diagnosis: the monitor explains each failed job (out of memory, time limit, missing tool/reference/index/input, corrupt files, download and disk problems, …) and suggests fixes with ready-to-run commands.
- The
localscheduler honours dependencies. Jobs whose dependency failed are markedSKIPPED. mitopiper monitor/python monitor.py: a live view (--watch) of submitted jobs with state, current step, elapsed time and error lines from each job's stderr.--errorsand--jobshow the failed step and its errors,--jsongives machine readable output. It detects jobs killed by the scheduler (time/memory limits) throughsacct/qstat/bjobs. Job scripts now report their progress tostatus/<job>.status, andmaster.shrecords job ids injobs.tsv.- A step can produce several output files.
output_extaccepts named outputs ({"bam": ..., "log": ...}orbam=.bam;log=.log), referenced asoutput_<step>:<name>,output_<step>:all, oroutputs_<step>:<name>in experiment-level steps. The default STAR step exposes its BAM, log and splice-junction outputs. - Project/study/sample accessions (e.g.
PRJEB12345,PRJNA67890,SRP012345) can be given instead of a metadata file. The run table is fetched from the ENA Portal API (build, the interactive prompt, andfetch-metadata). mitopipercommand with the sub-commandsbuild,presets,refs,make-tsv,cleanupandinit, for scripted, non-interactive builds. The interactive menus are still the default.- SRA metadata support (
SraRunInfo.csv, SRA Run Selector tables). FASTQ URLs are derived from ENA's mirror. - Rows without a
fastq_ftplink are skipped with a warning instead of breaking the build. - Paired runs listed with an extra unpaired file use only the
_1/_2mates. - MD5 verification of downloads using ENA's
fastq_md5column (verify_md5). - Several named references per organism, with switching (
refs use,build --reference). - NCBI search for the RefSeq mitochondrial genome when an organism is missing from the lookup table. Downloads are validated.
- Experiment-level steps (
"scope": "experiment"), run after all sample jobs finish, e.g. the newmultiqcstep. - Job dependencies in
master.shfor SGE, SLURM and LSF, plus alocalscheduler for workstations and testing. --dry-runwritesplan.jsonwith every resolved variable and command.--steps/--skippick steps for a single build.- Provenance manifest (
mitopiper_manifest.json) for every build. make-tsvsymlinks local FASTQ files instead of copying and renaming them, and groups Illumina lanes.- General settings
account,walltime,parallel_env,fail_fast,verify_md5,download_delay.qsub_threadsacceptsauto. - Test suite and CI.
Changed
qsub_queueis empty by default (the scheduler's default queue) instead of a queue name of the cluster mitopiper was developed on.mt-variants-numtparseris haplotype-aware. Numt Parser compared each read with the reference mtDNA, so a read carrying the sample's common allele where the rCRS has a rare one (4769, 8860) was closer to a NUMT carrying that allele and was removed: on a human RNA-seq project two real homoplasmic variants were lost in every sample. Each sample's own mtDNA (mitopiper mt consensus: the reference with its major alleles) is now what Numt Parser compares the reads with, andundeterminedreads are kept by default (cymt-reads.keep=not-numt). The tutorial reproduces the case with a recent NUMT on chr3 that carries the samples' allele at 10,000: the old comparison lost that variant (depth 0), the new one keeps it (depth 274, as without filtering); the MAPQ filter loses it too (depth 8).- Scripts are written to
output/<exp>/scripts/<job name>.sh(prep_<exp>.sh,s_<sample>_<i>.sh,e_<exp>.sh). The submit script ismaster.sh. - With the
localscheduler, a failing job no longer stops the remaining jobs. - The user's metadata file is copied into the experiment, not moved and rewritten.
- Row selections such as
1-4are inclusive. - Jobs stop at the first failing command (
set -eo pipefail, configurable). - Indexing of automatically downloaded references runs once in
prepare_refs.sh, before the sample jobs. Before, it was appended to the first sample's script while other samples could already be running. - Default preset:
samtools sortwrites<sample>.sorted.bam, whichindex/mpileupthen read. Before, it overwrote its input through a glob. - Default step paths no longer point to a specific cluster (a lab cluster's absolute tool paths).
- The SLURM account and the LSF project are no longer hard-coded.
- SLURM/LSF logs are written as per-job files inside
stdout/andstderr/. - pandas and Biopython are no longer needed.
Fixed
- The monitor, the start menu and
reruntook minutes per command when a job's stderr held millions of error lines (BGU: 4.1 million fromsamtools mpileup): logs are read in blocks, of a large unread part only the last 8 MB is searched (the error count then shows as a lower bound, e.g.133152+), and the monitor's rerun reuses the logs it has read. 47 s → 1.7 s for that log. - A job that hit its time limit while repeating an error (10,000 or more error lines) is no longer given more time by
--auto-fix; the diagnosis says it was stuck.[E::fai_retrieve] Failed to retrieve blockgets its own diagnosis: the reference FASTA does not match its.fai. rerunrefuses an mt experiment built (before the size check) with a whole genome as the mtDNA reference, which it would reuse, and says how to register the mtDNA and build again.rerunnotes when the preset an experiment was built from has changed since (e.g. a step path fixed withpresets setafter the failure) and how to use it (-p PRESET); before, it silently reran the recorded workflow (BGU round 6). The manifest records the preset.- A step whose program path does not exist (
/nonexistent/bwa: No such file or directory, exit code 127) is diagnosed as such, with thepresets setandrerun -pcommands, instead of "not installed: module load bwa". build --dry-runexits with an error when every sample is left out (e.g. a whole genome given as mtDNA); the message for left-out samples no longer always blames a missing reference.refs fetch-genomeasks for no confirmation (--yes) for a small genome (under 500 Mb), and prints its size before any confirmation error.- The interactive start menu can be left with
q/exit. - When the tool check fails with a csh/tcsh job shell, it explains that
~/.cshrccan resetPATHin every job. - Opening a workspace (the interactive menu, monitor, refs list, ...) no longer rewrites its preset files to add new settings: presets get the new defaults in memory when they are loaded, and files change only when you change or save a preset (BGU round 5: the menu rewrote every
general_settings.jsonof a read-only workspace). build FOLDER --dry-runno longer links files or writes the sample table into the workspace.mitopiper download: afterftp://fails to connect (FTP's data connection is often blocked from compute nodes), the next attempts use the other protocols only; a download that failed every attempt no longer leaves an empty file. Its notices while retrying no longer count as errors of a job that finished.refs fetch-genomegives the size of small genomes in Mb and no "NOT RECOMMENDED" warning for them; with--nuclear-of, it says that only the FASTA is added (the set keeps its own annotation).- When a genome is linked as the nuclear + mtDNA reference without a complete bwa index, the reference job says how to share the index it builds between workspaces.
- The start menu's experiment list counts each job once (reruns are not more jobs).
- A bwa index counts as present only when its
.safile exists, the last onebwa indexwrites. The reference job checked.bwt, so after a job killed while indexing the next build skipped the incomplete index and every sample job failed at alignment. - Clearer output on the BGU test: Numt Parser's summary line says it counts read mates per label and read pairs kept, and
refs listlabels its nuclear and NUMT columns (Nuclear FASTA,NUMT FASTA). - A workspace whose NUMT reference was already found does not search again, so deleting the nuclear + mtDNA copy and its index after a run does not cost a new 1-hour index at the next build.
- While Grid Engine had not yet written a finished job's accounting record, the monitor's summary called it an unrecognised failure; it now says to look again in a minute.
- Homoplasmic variants (
alt_major) had no depth threshold: a single read with an error at a barely covered position was reported as a variant. Variants now need the heteroplasmy calls' minimum depth (50) and more than half of the reads. On the BGU RNA-seq data the Numt Parser preset, which removes the most reads, reported up to 28 such positions per sample against 18-20 for the other presets. tool_versions.tsvsaysunknownfor a tool that prints no version (Numt Parser) instead of leaving the column empty.- A tool given as an absolute path in a step's
paththat does not exist gets the right advice (correct the step's path withpresets set, rerun with-p) instead ofmodule load /nonexistent/samtools. mitopiper monitor -istays open when every job is done, sojandecan still be used; it left at once before.fetch-metadatasorts the ENA run table by run accession. ENA returns the runs in no fixed order, so--samples 0-1named different runs depending on when the table was fetched.- A download with the full size but a wrong MD5 (seen on the BGU cluster) could not be fixed by the suggested rerun:
wget -cfound the file complete and the checksum failed again. The download step now deletes the file and downloads it once more when the checksum fails, and a checksum failure in the download step is always diagnosed as "resume atwget, deleting its output first". - The reference jobs' lock did not work across nodes on the BGU cluster's GPFS (
flock): two reference jobs indexed whole genomes at the same time. The lock is now a directory (mkdiris atomic on network file systems), kept fresh by its owner and taken over when a killed job left it behind for 10 minutes.flockis no longer needed. - The NUMT search aligned the mtDNA fragments to the user's nuclear FASTA, building a 5 GB
bwaindex next to it (in someone else's folder, or failing if read-only), whilemt-variants-numtindexed the nuclear + mtDNA copy of the same genome. Both now use the nuclear + mtDNA reference in the workspace: one index, nothing written next to the user's files. mt combine-pileups,mt annotateandbenchmark/compare.pycrashed on pileups with bytes that are not UTF-8 ('utf-8' codec can't decode byte 0x81, seen on real data incircular-merge). Pileups and SAM files are now read byte for byte.- Grid Engine reuses job numbers, so
qacct -j IDcan return other users' jobs from months ago (seen on the BGU cluster): the monitor andbenchmark/sge_usage.shnow only use records with the job's name, submitted after the job was. Before,sge_usage.shadded those jobs' run time and memory to the experiment's totals, and the monitor could take an old record for a job whose own record was not written yet. - On Grid Engines that record a time limit as
failed 100with nocategoryline (N1GE 6.0), a job killed by itsh_rtwas reported as cancelled, with a plain rerun as the fix. The requestedh_rtis now read from the job script, and a kill at that limit is a time limit (fix: more time). benchmark/sge_usage.shis now a wrapper ofsge_usage.py: one row per submission, array tasks counted once each.max_runningbroke every Grid Engine build on SGE before 6.2 (no-tc; seen on the BGU cluster, N1GE 6.0u8):master.shstopped after the check and reference jobs. When the array job is rejected,master.shnow submits the sample jobs one by one, each waiting for the jobmax_runningplaces before it, so the limit still holds.- Jobs that
master.shnever submitted because it stopped on an error are shown as such by the monitor ("never submitted", with a diagnosis), andrerunsubmits them. Before, the monitor reported no failures andrerunhad nothing to do. refs fetch-mt "Homo sapiens"downloaded the Denisovan mtDNA (NC_013993.1, "Homo sp. Altai"): the NCBI search includes related taxa and the first hit was taken. Common model organisms now have their RefSeq mitogenome built in (human: NC_012920.1, the rCRS), the search is restricted to the exact taxon and checks every hit's organism, and the downloaded record's title is printed, with a warning when it names another organism. Found on the BGU cluster.- Jobs whose Perl tools (FastQC, Trim Galore) load modules of another Perl installation (
Perl API version ... does not match,Can't locate ... in @INC, caused byPERL5LIB) get a diagnosis and the fixunset PERL5LIB PERL5OPT, instead of an unrecognised failure. Seen on the BGU cluster. rerun --presetwrites the check job for the tools of that preset. It used the tools recorded at build time, so a rerun after fixing a tool path failed the check again. Found on Grid Engine.- A truncated FASTQ is diagnosed as corrupt input when FastQC is the step that finds it ("Ran out of data in the middle of a fastq entry"), instead of an unrecognised failure. Found by truncating a file on Grid Engine.
tool_versions.tsvno longer records Java's "Picked up JAVA_TOOL_OPTIONS" notice as FastQC's version when that variable is set, and leading spaces of version lines are removed.- The rotated mtDNA is now shifted by half its length (
mt_rotation=half, was 500 bases). With 500, positions 1–400 lay 100–500 bp from the end of the rotated copy, so paired reads there were lost again and depth in the circular pileup fell by up to half between positions 250 and 400 (mt-variants; origin depth 0.87 → 0.93 of the rest in the tutorial). Workspaces created earlier keepmt_rotation500 inconfig/<preset>/general_settings.json: set it tohalf. - csh/tcsh jobs check every command, including pipelines starting with
echosuch as the MD5 check, so a corrupt download stops the job. Withfail_fastoff they report the exit status of the last command, like bash, instead of alwaysDONE. rerun --cleanfrom the download step works under csh/tcsh: file patterns are removed withfindinstead of an unmatchedrmglob ("No match").- Rerun jobs only wait for jobs resubmitted by the same rerun. Reruns of builds made without status files (older versions, csh/sh/dash) no longer skip themselves.
monitor --job NAME --errors --watchkeeps watching while the job runs.- The local scheduler always records the outcome of the current run, even for shells without status tracking.
- Diagnosis: a missing or corrupt file is traced to the step that writes that file, matched by folder and extension and never later than the failed step. Before, a
viewfailure on a missing.samsuggested resuming atindex, and a corrupt trimmed FASTQ pointed tofastqc. A corrupt file that no step of the build produces gets no automatic resume point. rerun --auto-fix/monitor --rerunignore a suggested resume step that is not before the failed step of that build, instead of aborting the whole rerun.- csh/tcsh jobs report their status (exit status checked after each command) and honour
fail_fast. Automatic reference indexing uses csh syntax under csh/tcsh. Thelocalscheduler records the exit code of jobs that cannot report it themselves. - SGE: dependent jobs no longer run after a failed dependency (
-hold_jidreleases them anyway). Every dependent job checks its dependencies and marks itselfSKIPPED. - Jobs of untracked shells that have left the scheduler show as
ENDEDrather thanUNKNOWN, so they are not resubmitted and--watchterminates. monitor --errors --watchno longer stops while jobs are still running.- The stderr scanner notices a log that was rewritten (e.g. by a local rerun) even if it grew past the previous read position.
build --steps <experiment-level step>builds only that job instead of reporting "No job scripts were generated", and empty per-sample scripts are no longer written.- Ending input (Ctrl-D or piped answers running out) and piping output into
headno longer print Python tracebacks. - Placeholders are resolved by dictionary lookup;
eval()of user text was removed. - Downloads use Python's
urllibwith retries; the reference download no longer shells out throughos.system. command_input_dir_pathpointed to the output directory.- The thread guess was computed but never used.
output_filesettings are resolved before the sample name is appended.- Structure tokens with commas or brackets (e.g.
-t 1,2) are kept intact. - Re-activating a step in the menu appended it to the run order incorrectly.
cleanupno longer deletes every workspace file whose name contains "run".- SLURM
--outputpointed at a directory.
md5sum mitopiper-2.0.0.tar.gz must print 924c4bc8db8999f4084c403e4b13145a. Once installed, mitopiper --version must name commit aed9e13.