Script to calculate a set of properties from a protein sequence:
- hydrophobicity (according to a particular scale)
- mean hydrophobic dipole moment assuming it is an alpha-helix.
- total charge (at pH 7.4)
- amino acid composition
- discimination factor according to Rob Keller (IJMS, 2011)
Reproduces the same values as the HeliQuest server, but it's a script.
Copied from my own gist to make it simpler for others to re-use.
Joao Rodrigues (j.p.g.l.m.rodrigues@gmail.com)
# Read sequences from a file
python hydrophobic_moment.py -f example_data/example.fasta
# Read single sequence from command-line
python hydrophobic_moment.py -s AAASSDADASDASEAWD