theplu::yat::omic Namespace Reference

Classes and functions related to genomics and proteomics. More...


Classes

class  Codon
struct  AminoAcidEqual
 Functor comparing id two Codons translate to the same amino acid. More...
class  DNA
class  GenomicPosition

Functions

unsigned short chr2int (const std::string &str)
 transform a string to unsigned short chromosome number


Detailed Description

Classes and functions related to genomics and proteomics.


Function Documentation

unsigned short theplu::yat::omic::chr2int ( const std::string &  str  ) 

transform a string to unsigned short chromosome number

If str starts with 'chr' that prefix is stripped away before translating the string to chromosome number. Function translates "X" to 23, "Y" to 24, and "M" or "MT" to 25. For other inputs utility::convert is used to transform the input to an unsigned short.

Returns:
chromosome number
Since:
New in yat 0.7


Generated on Mon Nov 7 02:25:52 2011 for yat by  doxygen 1.5.9