powered by
This function modifies the raw k-mer frequency before fitting, adjusting either the left or right part based on the peak position.
kmer_count_modify_raw(start, end, left_right, histx)
A modified data frame with adjusted raw k-mer frequencies.
An integer indicating the starting position (does not include the peak position).
An integer indicating the ending position (does not include the peak position).
An integer indicating whether to modify the left part (0) or the right part (1).
A data frame representing the raw k-mer histogram.
histx <- data.frame(V1 = 1:10, V2 = c(100, 200, 300, 400, 500, 400, 300, 200, 100, 50)) histx_new <- kmer_count_modify_raw(3, 7, 0, histx)
Run the code above in your browser using DataLab