You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -51,31 +49,11 @@ else if (posChargedAAs.contains(String.valueOf(aa))) {
51
49
}
52
50
return0;
53
51
}
54
-
55
-
/**
56
-
* Returns the array of charges of each amino acid in a protein. At pH=7, two are negative charged: aspartic acid (Asp, D) and glutamic acid (Glu, E) (acidic side chains),
57
-
* and three are positive charged: lysine (Lys, K), arginine (Arg, R) and histidine (His, H) (basic side chains).
58
-
*
59
-
* @param aa The one-letter amino acid code
60
-
*
61
-
* @return the array of charges of amino acids in the protein (1 if amino acid is positively charged,
Copy file name to clipboardExpand all lines: biojava-aa-prop/src/main/java/org/biojava/nbio/aaproperties/PeptideProperties.java
+33Lines changed: 33 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -555,4 +555,37 @@ public static final Map<Character, Double> getAACompositionChar(String sequence)
555
555
}
556
556
returnaaChar2Composition;
557
557
}
558
+
559
+
/**
560
+
* Returns the array of charges of each amino acid in a protein. At pH=7, two are negative charged: aspartic acid (Asp, D) and glutamic acid (Glu, E) (acidic side chains),
561
+
* and three are positive charged: lysine (Lys, K), arginine (Arg, R) and histidine (His, H) (basic side chains).
562
+
*
563
+
* @param sequence
564
+
* a protein sequence consisting of non-ambiguous characters only
565
+
* @return the array of charges of amino acids in the protein (1 if amino acid is positively charged, -1 if negatively charged, 0 if not charged)
0 commit comments