yat  0.8.3pre
Classes | Functions
theplu::yat::omic Namespace Reference

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

Classes

class  Codon
struct  AminoAcidEqual
 Functor comparing if two Codons translate to the same amino acid. More...
class  DNA
class  GenomicPosition
class  GFF
class  GFF2
class  GFF3

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 Thu Dec 20 2012 03:12:59 for yat by  doxygen 1.8.0-20120409