Generating peptide weblogo using pure Python. Supports for differnet color schema and different fonts will be added in the future.
- matplotlib
- scipy
- seaborn
- numpy
python pweblogo.py --peptide peptide.txt --out test.png
Input (peptide.txt):
FIWACYQRKW
QFIWACYQRK
DHQWQQFIWA
IWACYQRKWR
QQFIWACYQR
HQWQQFIWAC
WQQFIWACYQ
QWQQFIWACY
WACYQRKWRM
Output (test.png):
-
WebLogo: A Sequence Logo Generator (https://www.ncbi.nlm.nih.gov/pmc/articles/PMC419797/)
-
StackOverflow (https://stackoverflow.com/questions/42615527/sequence-logos-in-matplotlib-aligning-xticks)