nonzeroexit commited on
Commit
5610e48
·
verified ·
1 Parent(s): dc9275e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 = propy.AAComposition.CalculateAAC(sequence) # Amino Acid Composition
41
- dipeptide_comp = propy.AAComposition.CalculateAADipeptideComposition(sequence) # Dipeptide Composition
42
 
43
  # Combine both feature sets
44
- all_features = {**aac, **dipeptide_comp}
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]