How to use seqLogo to visualize motif
This article mainly explains "how to use seqLogo visual motif", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "how to use seqLogo visual motif" bar!
SeqLogo is an R package on bioconductor designed for motif visualization of DNA sequences at the following URL
Https://www.bioconductor.org/packages/release/bioc/html/seqLogo.html
Because of the singleness of the function, its usage is also very simple. You only need to enter the PPM matrix corresponding to motif. Let's take a look at it through a practical example.
The image above shows a PFM matrix of motif, and the corresponding sequence logo can be obtained through the following steps.
1. Read PFM matrix
Save the PFM matrix in a file, pfm.txt, as follows
Note that the sequence of bases in the PFM matrix is ACGT, and the order of bases can not be changed arbitrarily. Read through R language, the code is as follows
Data