nucleotide
Version:
Deal with nucleotides and molecular formula
8 lines (7 loc) • 420 B
JavaScript
export function addThreeTerm(mfs, threeTerm, i, options) {
if (options.w) mfs.push(`HO${threeTerm}$w${i}`); // neutral ok
if (options.x) mfs.push(`H-1${threeTerm}$x${i}`); // neutral ok
if (options.y) mfs.push(`O-2P-1${threeTerm}$y${i}`); // neutral ok
if (options.z) mfs.push(`O-3H-2P-1${threeTerm}$z${i}`); // neutral ok
if (options.zch2) mfs.push(`O-3H-4C-1P-1${threeTerm}$z${i}-CH2`); // TODO to confirm
}