ncalc: calculate Nstatistics (e.g. N50) for given sequence...

Description Usage Arguments Value Examples

View source: R/SequenceCharacteristics.R

Description

Given a set of contigs, the N50 is defined as the sequence length of the shortest contig at 50 (https://en.wikipedia.org/wiki/N50,_L50,_and_related_statistics)

Usage

1
ncalc(len.vector, n)

Arguments

len.vector

is a vector of sequence lengths

n

is a numeric of the value to use

Value

numeric of the corresponding N value

Examples

1
2
# to calculate e.g. N50
ncalc(seq(1,10), 0.5)

sagrudd/nanopoRe documentation built on June 7, 2020, 10:20 p.m.