Darwin Help

Back to Index

BToInt

Function BToInt - Nucleic Acid One Letter Code To Integer

Calling Sequence  BToInt(nuc)
Parameters
NameTypeDescription

nuc stringone letter code for nucleic acid
Return Type  0..6
Synopsis This function converts the following one letter codes for nucleic acids A, C, G, T, U, X to the integers 1..6 respectively. If nuc is not one of these symbols, then 0 is returned.
Examples
> BToInt('A');
1
> BToInt('R');
0
See also AAAToInt,   aminoacids,   AminoToInt,   AToCInt,   AToCodon,   AToInt,   BaseToInt,   BBBToInt,   CIntToA,   CIntToAAA,   CIntToAmino,   CIntToCodon,   CIntToInt,   CodonCode,   CodonToA,   CodonToCInt,   CodonToInt,   CodonToInt,   GeneticCode,   IntToA,   IntToAAA,   IntToAmino,   IntToB,   IntToBase,   IntToBBB,   IntToCInt,   IntToCodon