User:Michael S. Serfas/Sandbox

From OpenWetWare

(Difference between revisions)
Jump to: navigation, search
m (whoops)
m (...)
Line 101: Line 101:
         for (i in altcode) {
         for (i in altcode) {
             elem = document.getElementById(i);
             elem = document.getElementById(i);
-
             if (elem && elem.checked) {
+
             if (elem) {
-
                for (j in degen[altcode[i][0].slice(2,3)]) {
+
                if (elem.checked) {
-
                    tcodon[altcode[i][0].slice(0,2)+degen[altcode[i][0].slice(2,3)][j]] = altcode[i][1];
+
                    for (j in degen[altcode[i][0].slice(2,3)]) {
 +
                        tcodon[altcode[i][0].slice(0,2)+degen[altcode[i][0].slice(2,3)][j]] = altcode[i][1];
 +
                    }
                 }
                 }
             }
             }

Revision as of 20:02, 24 July 2013

Sequence type: DNA    RNA    

the above sequence: gi from EFetch (requires a very simple JSONP server at

Personal tools