kmer_count_modify {findGSEP}R Documentation

Modify K-mer Frequency Before Fitting

Description

This function modifies the k-mer frequency before fitting, adjusting either the left or right part based on the peak position.

Usage

kmer_count_modify(start, end, left_right, histx)

Arguments

start

An integer indicating the starting position (does not include the peak position).

end

An integer indicating the ending position (does not include the peak position).

left_right

An integer indicating whether to modify the left part (0) or the right part (1).

histx

A data frame representing the k-mer histogram.

Value

A modified data frame with adjusted k-mer frequencies.

Examples

histx <- data.frame(V1 = 1:10, V2 = c(100, 200, 300, 400, 500, 400, 300, 200, 100, 50))
histx_new <- kmer_count_modify(3, 7, 0, histx)

[Package findGSEP version 1.2.0 Index]