get_seq_chunks_by_threshold: Divide sequences into chunks

Description Usage Arguments Details Value Author(s)

View source: R/utility.R

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/virDisco documentation built on May 3, 2019, 7:05 p.m.