$$\rightleftharpoonup{xx}$$
$$\longleftharp{xx}$$,
$$\longrightharp{xx}$$,
Fungal pathogens are an emerging global health concern, with infections rising in recent years1. Many of these pathogens exhibit high antifungal resistance and are associated with significant mortality rates2. However, compared to model fungal organisms, many pathogenic fungi remain poorly characterized, highlighting the need for further research into their mechanisms of pathogenicity. Next-generation sequencing (NGS) techniques like Chromatin Immunoprecipitation Sequencing (ChIP-Seq) and RNA-Sequencing (RNA-Seq) play a critical role in uncovering the molecular mechanisms of gene expression underlying fungal pathogenicity.
The quality of insights derived from NGS data is highly dependent on the accuracy of the software used for raw data analysis. Among the key challenges to NGS data analysis is peak calling -- accurately identifying regions of enriched NGS reads -- which is particularly complex due to the wide variety of library preparation and sequencing techniques, making a universal solution impractical. The MACS algorithm3, including its more recent version, MACS3, is widely regarded as the gold standard for analyzing ChIP-seq datasets. However, MACS relies on user-defined parameters -- such as minimum peak length and maximum gap -- which may not be universally applicable and are often difficult to determine prior to analysis. Notably, the latest MACS3 release includes a cut-off analysis feature that allows users to estimate parameters before peak calling. For enhanced performance, users can also provide a list of "blacklisted" genomic regions known to introduce bias due to chromatin structure or copy number variation. While MACS remains the most commonly used and trusted peak-calling tool for ChIP-seq data, few alternative algorithms are available, particularly for cases requiring highly tailored parameter settings.
RNA-Seq is an invaluable technique for studying the gene expression responses of pathogenic fungi during in vivo growth, such as in tissue culture or mouse infection models4,5,6,7. A high sequencing depth is required for accurate differential expression analysis in these conditions, which can be cost- and resource-prohibitive8,9. Library preparation methods like poly-adenylation (poly(A))-priming Sequencing (3'RNA-Seq), which uses primers designed to anneal to the poly(A)-tails of mRNA for cDNA generation, can help reduce the sequencing depth needed for gene expression analysis10. However, this approach relies on high-quality genome annotations, particularly of 3' Untranslated Regions (UTRs), where peaks from poly(A)-priming events are typically located11. The genome annotations of many understudied fungal pathogens lack any UTR annotations, making the use of 3'RNA-Seq in these organisms difficult. In addition, the UTR length for a single gene can be dynamic across different growth conditions and cell types12,13. While a number of new analysis tools have been developed to identify and annotate UTRs, many of them are designed for mammalian datasets, whose gene organization differs greatly from that of fungi, or require data from independent sequencing experiments, such as single-cell or reverse mRNA sequencing, that can increase time and costs for a researcher looking to do transcriptome analysis12,14,15.
In this paper, we present WonderPeaks, a novel peak-calling software, designed on the principles of the first derivative, that can be used to dynamically call peaks in NGS datasets (Figure 1). WonderPeaks identifies peaks by calculating the first derivative of the coverage signal and using this value -- the slope of the peak -- to define potential peaks. The algorithm searches for instances where the first derivative exhibits a local maximum above a user-supplied or data-inferred slope threshold (indicating an increasing signal), followed by a local minimum above the same threshold (indicating a decreasing signal), thereby detecting all candidate peaks in the dataset. For ChIP-seq applications, WonderPeaks compares all candidate peaks between test and control samples to identify uniquely enriched peaks. By applying WonderPeaks to a previously published ChIP-seq dataset of a transcription factor in the fungal pathogen Candida albicans16, we demonstrated its ability to successfully identify peaks upstream of key genes highlighted in the original study, while also discussing the algorithm's current limitations in this application.
We also introduce PeakStream, a software tool that leverages WonderPeaks to identify peaks in 3'RNA-Seq datasets. 3'RNA-Seq libraries depend on accurate 3' UTR annotations, as reads generated through poly(A)-priming often extend beyond the stop codon of the coding sequences (CDS) of genes and thus are uncounted when using standard annotations focused solely on coding regions. The PeakStream analysis pipeline was designed to create new genome annotations using 3' RNA-Seq data, focusing on regions downstream of gene coding sequence (CDS) regions. PeakStream assigns these peaks to genes, generating a new genome annotation for use in downstream read counting programs. We show that the use of PeakStream can accurately identify and assign downstream poly(A)-generated peaks to the proper gene in a 3'RNA-Seq C. albicans dataset. PeakStream also annotates peaks unlikely to be associated with any current gene annotations, facilitating the discovery of possible novel transcripts. Together, PeakStream and WonderPeaks represent a powerful suite of user-friendly tools for peak detection in next-generation sequencing (NGS) datasets.

Figure 1: Overview figure of peak-calling by WonderPeaks and PeakStream. Left: Peaking calling using the first derivative. Top Right: Peak-calling on ChIP-Seq datasets using WonderPeaks. Bottom Right: Peak-calling on RNA-Seq datasets using PeakStream. Please click here to view a larger version of this figure.