Shuffle sequences in DNASequenceSet lapply or sapply return…

Maisons-Alfort Shuffle sequences in DNASequenceSet. lapply() or sapply() return list.
endoapply() returns the same data class, DNASequenceSet.
It is way slower, though.

shuffled.seqs <- endoapply(seqs, sample)

For faster shuffling, look at the link.

Leave a Reply

Your email address will not be published.