API: KmerFrequencySpectra

Types

KmerAnalysis.SpectraPeakType

A simple struct describing the location and significance (or persistence) of a peak detected in kmer frequency spectra data.

It has the following fields:

  1. peak: The k-mer frequency at which the peak is at its highest.
  2. left: The k-mer frequency constituting the left bound of the peak.
  3. right: The k-mer frequency constituting the right bound of the peak.
  4. persistence: The persistence of the peak in persistent homology analysis - essentially a significance value for the peak. Higher value = more significant.

Public / Safe methods

KmerAnalysis.spectraFunction
spectra(freqs::Vector{MerCount{M}}, min_count::Integer) where {M<:AbstractMer}

Build a 1 dimensional kmer frequency spectra, from a vector of kmer counts, excluding any kmer counts that don't meet min_count.

spectra(xfreqs::Vector{MerCount{M}}, yfreqs::Vector{MerCount{M}}, min_count::Integer = 0) where {M<:AbstractMer}

Build

spectra(x::Pair{I,C}, min_count::Integer = 0) where {I,C<:AbstractKmerCounter}

Build a 1 dimensional kmer frequency spectra, using a pair of (input data => kmer counter) as the input argument x. The spectra function uses the kmer counter to get the counts from the input data, before computing the spectra.

Any kmer counts that don't meet min_count are excluded.

KmerAnalysis.find_spectra_peaksFunction
find_spectra_peaks(s::KmerFrequencySpectra{1})

Automatically detect all the peaks present in the signal of a 1D k-mer frequency spectra, using a persistent homology method.

Returns a vector of SpectraPeak.

Internal / Unsafe methods

Missing docstring.

Missing docstring for build_persistent_homology. Check Documenter's build log for details.