Repository navigation
v1.0.0
First stable release, archived on Zenodo. Documentation moved from the README to crolllab.github.io/effectorVAR.
Added
- Coverage conflict flag (
--locus_coverage). A sample whose assembly has no copy of a query (no BLAST hit, or with--query_paralogonly paralog hits) can still carry it: on a 4,068-genome panel, one isolate calledparalog_onlyfor AvrStb6 had 78 uniquely mapped read pairs over the IPO323 AvrStb6 gene (0.74× genome depth, a divergent allele that SPAdes did not assemble). The locus coverage table now also reports depth and breadth over the unpadded reference hit, the hit-to-genome depth ratio, the sample's assembly status (assembly_hit) andcoverage_conflict(paralog_only_locus_covered/no_hit_locus_covered) when both thresholds are reached (--locus_conflict_min_depth_ratio0.3,--locus_conflict_min_breadth80 %). Flagged samples are also listed as warnings in the run log.
Changed
- Task resources matched to what the tools use (measured with SLURM accounting on the Oct 2026 runs). BLASTsearch, BLASTparalogs and BlastLocusOnReference use 1 CPU (they kept ~1 of 4 cores busy); fastp 8 (was the profile default, 16 on SLURM); AlignBuscoGene 4 (was 16, for seconds-long alignments); the per-query IQ-TREE trees 4, with
-T AUTOpicking the thread count up to that; BUSCO 8 CPUs and 8 GB (was 2 CPUs and 4 GB, CPU-bound and at its memory limit); RAxML-NG 8 GB (was 32 GB, peak 3 GB); CombineBlastHits 2 GB (was 8 GB). Resources are now set only innextflow.config, no longer partly in the modules where the config silently overrode them. --max_cpus,--max_memory,--max_time(defaults 16, 128 GB, 7 days) cap every task's request. Memory doubling on retries could previously exceed any node (SPAdes up to 96 GB, RAxML-NG up to 192 GB) and leave the job pending.pipeline_trace.txtrecords%cpuand%mem, so CPU use can be checked without SLURM accounting.
Fixed
-
Pipeline did not start under Nextflow 26. The strict syntax parser (the default in Nextflow 26) rejected the sample-name and FASTA helpers, which were closures held in local variables; they are now top-level functions.
-
Protein translated in the wrong frame when a model's 5′ end is offset. Exonerate can begin an alignment part-way through a query codon (
coding2genomereporting e.g.vulgar: AvrStb9_CDS 2 2183 +, i.e. from the third base of codon 1). The assembled CDS then opened with an incomplete codon, andextract_exonerate_cds.pytranslated it from base 0, shifting the protein out of frame. On a 4,068-genome panel this hit 4,020 of 4,070 models of one effector, whose stored protein was a 37-aa frameshifted fragment while the CDS beside it was correct and every metric in the same row described a full-length product. The partial leading codon is now dropped, so the CDS stays in frame and the protein istranslate(cds). Everything built from the protein is affected:{query_id}_exonerate_protein.fasta, the protein isoform numbering,{query_id}_protein_isoforms.fasta, the protein alignments and the protein trees. -
A single non-canonical splice site made every sample "truncated".
classify_cds_integrity.pycounted a non-canonical splice site as an ORF mutation, which alone set the status totruncated. An exon boundary placed one or two bases off reads as a non-canonical acceptor while leaving the protein untouched, and such a call is typically shared by every sample: oneAG>CAacceptor at the same position made 100 % of a 4,068-genome panel truncated for one effector and left its intact-only isoform table with a single row. The site is still reported inorf_mutation_types,n_noncanonical_splice_sitesand the mutation table, but on its own, with the reading frame still reaching the expected stop, the status is nowfull_lengthwith the notenoncanonical_splice_site_only_ORF_intact, orpartialwhen the model is also cut off by a contig edge or an assembly gap. (The first version of this fix called such incomplete modelsfull_length, e.g. two AvrStb9 models missing 43 and 92 N-terminal residues at a contig end.) -
RepeatMasker ran 4× more threads than allocated.
-pasets parallel batches, and RepeatMasker runs each RMBlast batch with 4 threads, so-pa 2started 8 threads on 2 cores. It now gets 4 CPUs and-pais the CPU count divided by 4. -
fasterq-dump ran 6 threads on 1 CPU (its default). It now uses the task's CPUs (
-e). -
samtoolsSort ran up to 4 threads on 1 CPU (
-@counts additional threads, andviewandsorteach got their own). It now gets 4 CPUs, uses-@ cpus-1, streams uncompressed BAM fromviewtosort, and sets the sort memory per thread from the task memory. -
Paralog hits contaminated the downstream outputs (
--query_paralog). The paralog check ran after the hit extraction and only reported, so in a sample without the query gene the query's best BLAST hit on a paralog was still extracted, modelled by Exonerate (often as "full_length"), classified, numbered as an isoform and placed in the alignments and trees. The check now runs per sample before the extraction: every BLAST hit is assigned to the query or to the paralog that scores best there, and only the query's own copy is extracted. Samples whose query hits are all paralog loci areparalog_onlyin the BLAST and Exonerate summaries, the isoform table and the TE summary, and are absent from all sequences, alignments and trees. Exonerate gene models must now overlap the extracted BLAST hit span, so a paralog in the padding flank is not modelled. -
Neighbouring paralogs could still enter the query's gene model and CDS integrity call (
--query_paralog). The extracted window (hit ±--padding) and the CDS integrity rescue search (up to 3 kb of flanking contig) could reach a paralog copy next to the query copy. Exonerate could then fuse the paralog to a truncated query copy (only models lying entirely in the flank were discarded), and a missing query segment found in the paralog was reported as present on the contig (segment_outside_ORF, an ORF mutation) instead of a nucleotide deletion.ResolveParalogsnow passes the paralog copies on the hit scaffold to the extraction, which stops the padding short of them and lists them in the hit FASTA header (paralogs=start-end,...); the CDS integrity check masks them for its rescue search and notesparalog copy in flank not searchedon the resulting deletion. This also keeps paralog sequence out of the padded BLAST hit sequences, alignments and trees. -
Locus coverage could be measured at a paralog (
--query_paralogwith--locus_coverage). The reference locus was the query's best BLAST hit on the reference, which lies on a paralog when the reference has no copy of the query. The paralogs are now BLASTed against the reference as well, and a locus where a paralog hit scores higher is dropped (coverageNA). -
TE summary did not tell paralog-only samples from samples without a hit.
{query_id}_scaffold_TEs_summary.tsvhas a new last columnhit_status(hit,no_hit,paralog_only); the per-TE table already marked them inposition. -
Paralog table reported paralogs incompletely. A paralog's "best locus" merged all its hits on a scaffold, so neighbouring paralogs were reported as one locus and the second paralog's own copy was hidden (in IPO323, paralog1's locus spanned both chromosome-10 genes). Every reference's copies are now separated by hit ownership;
{query_id}_paralog_check.tsvlists for the query and every paralog the number of copies and the best one, and the new{query_id}_paralog_loci.tsvlists every copy of every reference per sample. New columnskipped_paralog_locilists query hit loci left out because a paralog scores higher there. -
CDS check of multi-sequence queries with
--search_tool exonerate. The startup check for in-frame stop codons joined all query sequences into one, so the terminal stop codon of the first CDS counted as an internal stop and a valid multi-CDS query file was rejected. Each query is now checked on its own, and the error names the offending query.