Repository navigation
Fixes of a second review of the 2026-11-26 audit fixes, and of a test of custom RNA-seq, ChIP-seq and ATAC-seq presets; presets and their run order shown as tables in interactive mode. Upgrading: mitopiper presets reset default for the
htseq-count settings.
Fixed
- The build's check of the gene attribute read only the first counted line of the annotation: featureCounts stops at any counted line without it (NCBI's Bemisia tabaci annotation has 24 exon/CDS lines without
gene=), so the build passed and every sample failed at the last step, hours later. The whole annotation is read (once per file version); the build names the lines and prints a command that writes a copy without them. The placeholders_exon_gene_attr/_gene_attrtake an attribute every counted line has. - The default preset's htseq-count counted reads of introns (
-t gene): it counts exons, by the attribute that names the gene on them (-i _exon_gene_attr:gene_idin a GTF,genein NCBI's GFF3). - A rerun of an experiment built before 2.0.2 failed: its samples were pointed at derived references under the new names, which nothing built. The rerun now includes the reference job when a derived reference the steps use is missing.
- FASTQ folders: mates are found whatever the position of the mate token (Trim Galore's
x_1_val_1/x_2_val_2,x_R1_trimmed,y-R1); single-end files numbereddonor_1,donor_2,donor_3are no longer paired;run_1_R1/_R2andrun_2_R1/_R2pair by run; a single-endC.fq.gznext toC_R1/C_R2was dropped silently and is now the sampleC_unpaired, with a warning. - An interrupted FASTQ folder import (move) left samples out of the table when run again: the runs found are written down first, and importing the folder again resumes from them. Copies (and moves across file systems) appear under their final name only when complete.
- A sample of several runs could be left with its first run only: without
fail_fast(or in csh), a run that failed to download did not stop the job, and the concatenation of the parts there became the sample's file. Concatenation, rename and clean-up are now one command that stops at the first failure; a local file gzipped into the experiment appears only when complete. - Custom presets (a test of RNA-seq, ChIP-seq and ATAC-seq presets written from scratch, on an LSF cluster):
- A step named
trim,fastqc,fastqc_preoralignmentignored itsstructureand ran mitopiper's built-in command (atrimstep with cutadapt's structure got Trim Galore's--paired R1 R2, without a word). A structure of your own is now used;wgetstays the download, and a structure given to it is reported as ignored. The README says which names are built in, and that_fastq1/_fastq2are Trim Galore's file names. - The tool check skipped the tools of
conda_envsteps (a missing MACS3 or deepTools showed only when the sample job failed): they are looked up in their environment (conda run ... sh -c 'command -v macs3'), and the advice is to install them there. _mt_contigs(andmitopiper mt contigs --mt) gives only the mtDNA of a whole-genome reference (namedchrM/MT/... or described as "mitochondrion"): it gave all 1,870 contigs of the fly genome, so an ATAC-seq preset had to name the fly mtDNA itself.- The download job's memory is the general setting
download_memory(default 2G, as before; downloads used 25–41 MB). The reference job takes the STAR step's threads and memory only when it builds the STAR index, not when the index is there already.
- A step named
- Grid Engine:
reruncancels one queued array task withqdel <job> -t <task>(the task range after the job, as qdel reads it); thesgeCI workflow now checks it on a real Grid Engine.
Changed
- Interactive mode shows the workflow presets (with their descriptions) and a preset's run order (with each step's scope and description) as tables; long descriptions are wrapped.
md5sum mitopiper-2.0.3.tar.gz must print be9d70f12d7e13ce740c3a9e8133e03a. Once installed, mitopiper --version must name commit 8684e9c.