Shuffle sequences in DNASequenceSet lapply or sapply return…

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.
http://grokbase.com/t/r/bioconductor/133n8bw1f6/bioc-how-to-operate-on-a-dnastringset-object

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *