consensus | R Documentation |
Given a pileup, a consensus sequence is determined at each position on the reference. The consensus is returned as a character vector with possible entries A, C, G, T, d, i.
consensus(pu)
pu |
a VSeqTools_pileup object returned by BAM_pileup |
A character vector with entries A,C,G,T,d,i and length equal to positions on reference.
Warning: if the VSeqTools_pileup object is formed from a BAM file with gaps, the consensus will skip missed positions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.