Rename extendedFuture_app.py to app.py
Browse files
extendedFuture_app.py → app.py
RENAMED
|
@@ -27,7 +27,7 @@ aa_boman = model_package.get('aa_boman', {})
|
|
| 27 |
aa_flexibility = model_package.get('aa_flexibility', {})
|
| 28 |
aa_polarizability = model_package.get('aa_polarizability', {})
|
| 29 |
aa_aliphatic = model_package.get('aa_aliphatic', {})
|
| 30 |
-
aa_deltaG = model_package.get('aa_deltaG', {})
|
| 31 |
|
| 32 |
# --- Target cells ---
|
| 33 |
TARGET_CELLS = ["Gram+", "Fungus", "Mammalian Cell", "Cancer", "Gram-"]
|
|
@@ -48,7 +48,7 @@ def extract_features_app(seq: str) -> pd.DataFrame:
|
|
| 48 |
dipeptides_seq = [seq[i:i+2] for i in range(len(seq)-1)]
|
| 49 |
|
| 50 |
if len(seq) < 2:
|
| 51 |
-
physchem_features = [0]*
|
| 52 |
else:
|
| 53 |
mw = np.mean([h(dp, aa_mass) for dp in dipeptides_seq])
|
| 54 |
charge = np.mean([h(dp, aa_charge) for dp in dipeptides_seq])
|
|
@@ -61,10 +61,10 @@ def extract_features_app(seq: str) -> pd.DataFrame:
|
|
| 61 |
boman = np.mean([h(dp, aa_boman) for dp in dipeptides_seq])
|
| 62 |
flexibility = np.mean([h(dp, aa_flexibility) for dp in dipeptides_seq])
|
| 63 |
polarizability = np.mean([h(dp, aa_polarizability) for dp in dipeptides_seq])
|
| 64 |
-
deltag = np.mean([h(dp, aa_deltaG) for dp in dipeptides_seq])
|
| 65 |
|
| 66 |
physchem_features = [mw, charge, hydro, aromatic, pI, instability,
|
| 67 |
-
hydro_moment, aliphatic, boman, flexibility, polarizability
|
| 68 |
|
| 69 |
features = dipep_features + physchem_features
|
| 70 |
|
|
|
|
| 27 |
aa_flexibility = model_package.get('aa_flexibility', {})
|
| 28 |
aa_polarizability = model_package.get('aa_polarizability', {})
|
| 29 |
aa_aliphatic = model_package.get('aa_aliphatic', {})
|
| 30 |
+
#aa_deltaG = model_package.get('aa_deltaG', {})
|
| 31 |
|
| 32 |
# --- Target cells ---
|
| 33 |
TARGET_CELLS = ["Gram+", "Fungus", "Mammalian Cell", "Cancer", "Gram-"]
|
|
|
|
| 48 |
dipeptides_seq = [seq[i:i+2] for i in range(len(seq)-1)]
|
| 49 |
|
| 50 |
if len(seq) < 2:
|
| 51 |
+
physchem_features = [0]*11
|
| 52 |
else:
|
| 53 |
mw = np.mean([h(dp, aa_mass) for dp in dipeptides_seq])
|
| 54 |
charge = np.mean([h(dp, aa_charge) for dp in dipeptides_seq])
|
|
|
|
| 61 |
boman = np.mean([h(dp, aa_boman) for dp in dipeptides_seq])
|
| 62 |
flexibility = np.mean([h(dp, aa_flexibility) for dp in dipeptides_seq])
|
| 63 |
polarizability = np.mean([h(dp, aa_polarizability) for dp in dipeptides_seq])
|
| 64 |
+
#deltag = np.mean([h(dp, aa_deltaG) for dp in dipeptides_seq])
|
| 65 |
|
| 66 |
physchem_features = [mw, charge, hydro, aromatic, pI, instability,
|
| 67 |
+
hydro_moment, aliphatic, boman, flexibility, polarizability]
|
| 68 |
|
| 69 |
features = dipep_features + physchem_features
|
| 70 |
|