Skip to content

Commit d26e861

Browse files
committed
proxy for convertDNAtoProteinSequence
1 parent c050011 commit d26e861

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

biojava-genome/src/main/java/org/biojava/nbio/genome/util/ProteinMappingTools.java

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)