Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static String nucleotidesNoDashs(char[] nucleotides) {
- String codon = new String(nucleotides);
- for (char n : nucleotides) {
- int nucleotideIndex = getNucleotideIndex(n);
- if (nucleotideIndex < 0) {
- codon.replace("-", "");
- }
- else {
- }
- }
- return codon;
- }
- public static String[] getCodonList(char[] nucleotides, String codon) {
- int codonCount = codon.length();
- String[] codonList = new String[codonCount];
- for (int i = 0; i < (codonCount) / 3; i++) {
- codonList[i] = codon.substring(0, 3);
- }
- return codonList;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement