Description Usage Arguments Value Methods (by class) See Also Examples
Generate a Heatmap of patterns in DNA sequence
1 2 3 4 5 6 7 8 9 |
seq |
A DNAString of equal length |
pattern |
A nucleotide pattern or PWM |
... |
additional arguments used by methods This function creates a Heatmap from a set of DNA sequences. The resulting heatmap will be binary, with 1 representing a match and 0 otherwise. Patterns can be specified as a character vectore, eg. "CTCCC", or as a PWM. These arguments are passed to Biostrings functions, 'vmatchPattern' and 'matchPWM'. Character arguments can contain standard ambiguity codes. PWMs must be 4 by n matricies with columns names ACGT. "min.score" is specified either as an absolute value, or more commonly as a percentage e.g. "80 on the difference between the minimum and maximum scores, not between zero and the maximum score, since it is based on the log odds ratio. As of Bioconductor 3.5, this behaviour is different to the 'matchPWM' function in Biostrings. PatternHeatmaps often look much better after smoothing. |
coords |
Co-ordinates for the heatmap, defaults to c(0, width(windows)) |
min.score |
Minimum score for PWM match |
label |
Label for the heatmap |
A heatmap
seq = DNAStringSet,pattern = character
: Heatmap of sequence patterns from sequence and character
seq = DNAStringSet,pattern = matrix
: Heatmap of sequence patterns from sequence and matrix
smoothHeatmap
1 2 3 | data(HeatmapExamples)
PatternHeatmap(string_set, "TA", coords=c(-100, 100), label="TA")
PatternHeatmap(string_set, tata_pwm, coords=c(-100, 100), min.score="80%", label="TATA PWM")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.