Example #1
0
def get_features_physchem(seq):
    """Return dictionary of all features associated with physiochemical properties."""
    SeqOb = SequenceParameters(seq)
    return {'fraction_acidic': fraction_acidic(seq), 'fraction_basic': fraction_basic(seq),
            'fraction_aliphatic': fraction_aliphatic(seq), 'fraction_aromatic': fraction_aromatic(seq),
            'fraction_polar': fraction_polar(seq), 'fraction_disorder': fraction_disorder(seq), 'fraction_chainexp': fraction_chainexp(seq),
            'hydropathy': SeqOb.get_uversky_hydropathy(), 'isopoint': predict_isoelectric_point(seq),
            'loglen': log2(len(seq)), 'PPII_propensity': SeqOb.get_PPII_propensity()}
Example #2
0
def feat_physchem(seq):
    SeqOb = SequenceParameters(seq)
    return {
        'frac_acidic': frac_acidic(seq),
        'frac_basic': frac_basic(seq),
        'frac_aliphatic': frac_aliphatic(seq),
        'frac_chainexp': frac_chainexp(seq),
        'frac_polar': frac_polar(seq),
        'frac_aromatic': frac_aromatic(seq),
        'frac_disorder': frac_disorder(seq),
        'loglen': log2(len(seq)),
        'hydropathy': SeqOb.get_uversky_hydropathy(),
        'iso_point': ProteinAnalysis(seq).isoelectric_point(),
        'PPII_prop': SeqOb.get_PPII_propensity()
    }