I am trying to analyse the hydrophobicity of a sequence using BioPython's "SeqUtil".
analysed_seq = ProteinAnalysis("AKVLGSLEALEPVHYEEKNWCE")
analysed_seq.protein_scale(Scale, WindowSize, Edge)
Known parameters
WindowSizerefers to the total number of amino acids to be considered either side of the residue (anintvariable).Edgerefers to the weighting of the scale further from the centre of the window (0-1). `
Unknown parameter
- Scale
refers to which scale being used. I am interested in how to give theScale` variable a valid variable.
The Biopython docs simply point out that there are many scales to choose from and the source code doesn't seem to give any clues about scale options.
Where can I find a list of the scale are available and how to call them?
protein_scale()onlydef protein_scale(self, param_dict, window, edge=1.0):https://github.com/biopython/biopython/blob/master/Bio/SeqUtils/ProtParam.py#L211. I thinkparam_dictiskdhttps://github.com/biopython/biopython/blob/master/Bio/SeqUtils/ProtParamData.py#L6 – Chris_Rands Feb 09 '18 at 17:10param_dictarguments and the GitHub source code spells them out clearly. It also looks like you can feed a scale straight in without having to editProtParamsDatawhich satisfies me more. – James Feb 10 '18 at 16:19