File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
biojava-genome/src/main/java/org/biojava/nbio/genome/util Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,19 @@ public class ProteinMappingTools {
1313 *
1414 * @return the protein sequence
1515 */
16- public ProteinSequence convertDNAtoProteinSequence (String dnaSequence ) throws CompoundNotFoundException {
16+ public static ProteinSequence convertDNAtoProteinSequence (String dnaSequence ) throws CompoundNotFoundException {
1717 DNASequence dna = new DNASequence (dnaSequence );
18- RNASequence mRNA = dna .getRNASequence ();
18+ return convertDNAtoProteinSequence (dna );
19+ }
20+
21+ /** Converts the DNA sequence to protein sequence.
22+ *
23+ * @param dnaSequence the DNA sequence
24+ *
25+ * @return the protein sequence
26+ */
27+ public static ProteinSequence convertDNAtoProteinSequence (DNASequence dnaSequence ) throws CompoundNotFoundException {
28+ RNASequence mRNA = dnaSequence .getRNASequence ();
1929 return mRNA .getProteinSequence ();
2030 }
2131}
You can’t perform that action at this time.
0 commit comments