Search bioRxiv⌕ Search

bioRxiv · 10.64898/2026.05.12.724685

mafsmith: a Rust reimplementation of vcf2maf

Abstract

The Mutation Annotation Format (MAF) is a standard interchange format for somatic variant data in tumor genomics. Converting variant call format (VCF) files to MAF requires functional annotation (through tools such as the Ensembl Variant Effect Predictor) and complex allele normalisation and field-mapping logic. The gold-standard implementation, vcf2maf, is written in Perl and could be made more computationally efficient by translating it to a newer language and adding support for parallel processing. Here we describe mafsmith, an implementation of vcf2maf in Rust. The mafsmith implementation of vcf2maf reimplements the allele-normalisation and field-mapping logic of vcf2maf and uses fastVEP for annotation, achieving field-for-field identical output across fifteen validated caller types and formats spanning germline, somatic, structural variant, and annotation-database VCFs. When both tools are run with the same Ensembl VEP annotation cache, mafsmith vcf2maf produces 0 conversion differences versus vcf2maf across 23 diverse datasets aligned to GRCh38 or GRCh37. The companion maf2vcf, vcf2vcf, and maf2maf subcommands were similarly validated against their reference Perl counterparts across six datasets. Benchmarked on multiple reference samples totalling 27.5 million variants, mafsmith achieves approximately 80-fold faster conversion of pre-annotated VCFs (range 74.3-84.1x), enabling faster and cheaper conversion of vcfs to mafs. mafsmith is open source under the same license as vcf2maf and available at https://github.com/nf-osi/mafsmith.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Allaway, R. J.. 2026-05-15. mafsmith: a Rust reimplementation of vcf2maf. https://doi.org/10.64898/2026.05.12.724685

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

Chromosome-level, haplotype-resolved genome assembly of the tanniferous forage legume big trefoil (Lotus pedunculatus Cav.) using CiFi

Big trefoil (Lotus pedunculatus Cav.) is a perennial forage legume that thrives on acidic, low-fertility soils and produces condensed tannins that reduce enteric methanogenesis in ruminants. Despite this agronomic potential, genomic resources for the species remain scarce, and the existing haploid assembly does not resolve the two haplotypes of this outcrossing diploid species. Here we present a haplotype-resolved, chromosome-level reference genome for L. pedunculatus genotype Lusitano29 -- the first plant genome assembled using CiFi, a long-read chromosome conformation capture method. We combined PacBio HiFi long reads with CiFi concatemers produced from DpnII and HindIII libraries; in silico digestion and combinatorial pairing of the resulting monomers yielded 790.3 M and 10.3 M pseudo-paired contacts, respectively, enabling scaffolding and manual curation to chromosome level. The 991.1 Mb assembly resolves two phased haplotypes of 500 and 491 Mb, with 96.6% of the sequence anchored in twelve pseudo-chromosomes (six per haplotype). Telomeric repeats were detected at 19 of 24 pseudo-chromosome ends, and no structural errors were detected (scaffold N50 73.8 Mb; consensus QV 64.7; k-mer completeness 99.4%; genome-mode BUSCO completeness 97.0%; CRAQ S-AQI 100.0). Annotation supported by PacBio Iso-Seq full-length transcripts predicted 38,069 and 36,484 protein-coding genes in haplotypes 1 and 2, respectively (protein-mode BUSCO completeness 96.5%), indicating a high completeness of annotated genes. This genome assembly provides a foundation for allele-aware trait dissection of proanthocyanidin biosynthesis, comparative genomics in Lotus, and population genomics and genomics-assisted breeding in L. pedunculatus.

genomics↗

Bramble: projection of spliced genomic alignments into transcriptomic space for improved transcript quantification

Accurate transcript abundance estimation is central to many transcriptomic studies. Many current quantification methods rely on reads mapped directly to the transcriptome, but transcriptome alignment can misassign reads from unannotated transcripts to annotated isoforms, leading to biased abundance estimates. We introduce Bramble, a method that projects spliced genomic alignments into transcriptomic coordinates to produce alignments compatible with downstream transcript quantification tools. Across simulated short- and long-read RNA-seq datasets and multiple levels of reference annotation completeness, incorporating Bramble into quantification pipelines consistently improved accuracy and reduced error. These results suggest that genome-derived transcriptomic alignments can improve transcript quantification by preserving compatible alignments to annotated transcripts while filtering alignments likely originating from unannotated transcripts.

genomics↗

PRDM9-mediated meiotic hotspot specification is constrained in humans despite extensive sequence diversity

PRDM9 specifies meiotic recombination hotspots through a rapidly evolving C2H2 zinc-finger (ZNF) coding minisatellite that determines DNA-binding specificity. Although this minisatellite harbors extraordinary allelic diversity in humans, the functional consequences of most naturally occurring variants remain unknown. Here we functionally characterize 80 human PRDM9 alleles using genome-wide chromatin profiling. Despite extensive sequence diversity within the ZNF array, most alleles function indistinguishably from common A and C hotspot-specifying alleles, revealing that human PRDM9 function is more constrained than its sequence diversity predicts. In contrast, rare and infertility-associated variants occupy two functional extremes: either abundant and novel DNA binding specificity or minimal DNA binding, suggesting that both gain- and loss-of-function alleles may disrupt symmetric hotspot specification during meiosis, thus representing a plausible contributor to human infertility. Together, our findings define the functional landscape of human PRDM9 variation and provide a framework for interpreting the impact of newly discovered PRDM9 alleles.

genomics↗