get_seq_chunks_by_threshold: Divide sequences into chunks

Description Usage Arguments Details Value Author(s)

Description

The function divides a DNAStringSet into a list of smaller objects given a threshold.

Usage

1
get_seq_chunks_by_threshold(seqs, threshold)

Arguments

seqs

DNAStringSet object with sequences

threshold

maximal summed width of sequences in a chunk

Details

Sometimes programs can not handle to long sequences. The functions allows to build up chunks without cutting sequences. If the threshold is exceeded by adding a sequence, the exceeding sequence will be put in the next chunk.

Value

list() of chunks with the width less the threshold

Author(s)

Jochen Kruppa


jkruppa/viralDetectTools documentation built on May 30, 2019, 3:41 p.m.