Python sequence logo from manually calculated bits and proportions?
0
0
Entering edit mode
2.0 years ago
Noel • 0

Hi there!

I've written a Python script which produces a dataframe for a motif which is 15 amino acids long (one column per position), which contains a row for every possible amino acid and the proportion that it's found there. I've also manually calculated the bits based on Shannon entropy. How do I make a sequence logo using this data?

I can't do it with the source sequences because there is a weighting algorithm applied to the proportions - they aren't true proportions, but have been adjusted based on some experimental results surrounding sequence binding affinity with the protein that binds the motif.

Does someone know how to do this?

pandas motif dataframe matplotlib • 730 views
ADD COMMENT
0
Entering edit mode

See my answer here about logomaker. It allows you to provide a matrix of the nucleotides at each position.

ADD REPLY

Login before adding your answer.

Traffic: 1793 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6