Description Usage Arguments Value Author(s) Examples
This function computes the consensus sequence from a matrix of nucleotide counts, or the control slot of a deepSNV object.
1 2 3 4 5 6 7 | consensusSequence(x, ...)
## S4 method for signature 'matrix'
consensusSequence(x, vector=FALSE, haploid=TRUE, het.cut = .333)
## S4 method for signature 'deepSNV'
consensusSequence(x, vector=FALSE, haploid=TRUE, het.cut = .333)
|
x |
An object. Either an |
vector |
Boolean where TRUE indicates that a character vector should be returned. |
haploid |
Should the consensus be called for a haploid control? Otherwise, also all bases larger than het.cut are rerported. Default haploid = TRUE. |
het.cut |
Heterozygous cutoff. If haploid = FALSE, report all nucleotides with relative frequency larger than het.cut. Default = 0.333. |
... |
Additional arguments passed to methods. |
A DNAString
with the consensus sequence, or if vector = TRUE, a character vector.
Moritz Gerstung
1 2 3 | data(HIVmix)
seq = consensusSequence(HIVmix)
consensusSequence(HIVmix, vector=TRUE)[1:10]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.