Categories
status

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

By microbe

Like to cook for microorganisms and human. Play football, tennis, and baseball.

Leave a Reply

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