Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -37,11 +37,11 @@ selected_features = [
|
|
37 |
def extract_features(sequence):
|
38 |
"""Extract only the required features and normalize them."""
|
39 |
# Compute all possible features
|
40 |
-
aac =
|
41 |
-
|
42 |
|
43 |
# Combine both feature sets
|
44 |
-
all_features = {**aac
|
45 |
|
46 |
# Extract only the selected features
|
47 |
selected_feature_values = [all_features[feature] for feature in selected_features if feature in all_features]
|
|
|
37 |
def extract_features(sequence):
|
38 |
"""Extract only the required features and normalize them."""
|
39 |
# Compute all possible features
|
40 |
+
aac = AAComposition..CalculateAADipeptideComposition(sequence) # Amino Acid Composition
|
41 |
+
|
42 |
|
43 |
# Combine both feature sets
|
44 |
+
all_features = {**aac}
|
45 |
|
46 |
# Extract only the selected features
|
47 |
selected_feature_values = [all_features[feature] for feature in selected_features if feature in all_features]
|