nls_peak: Uses nlsLM to fit 2p peak model

View source: R/nls_peak.R

nls_peakR Documentation

Uses nlsLM to fit 2p peak model

Description

Uses nlsLM to fit 2p peak model

Usage

nls_peak(x, y, k, p, top, estKmercov, estLength, max_iterations)

Arguments

x

An integer vector of the x-coordinates of the histogram (after filtering out low coverage errors and high coverage kmers).

y

A numeric vector of the y-coordinates of the histogram (after filtering out low coverage errors and high coverage kmers).

k

An integer corresponding to the kmer length.

p

An integer corresponding to the ploidy.

top

An integer corresponding to the topology.

estKmercov

A numeric corresponding to the estimated average kmer coverage of the polyploid genome.

estLength

A numeric corresponding to the estimated polyploid genome length.

max_iterations

An integer corresponding to the maximum number iterations to use for nlsLM.

Value

An nlsLM model object with some additional components.


PauloMoraMartinez/Genomescope2.0_ documentation built on April 5, 2022, 12:02 a.m.