Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkBioGenome.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkBioGenome.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-10-20 21:28:21 $
00007   Version:   $Revision: 1.4 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 #ifndef __itkBioGenome_h
00018 #define __itkBioGenome_h
00019 
00020 #if defined(_MSC_VER)
00021 #pragma warning ( disable : 4786 )
00022 #endif
00023 
00024 #if defined(_WIN32)
00025 #include "itkWindows.h"
00026 #endif
00027 
00028 #include <map>
00029 #include <string>
00030 #include "vcl_cmath.h"
00031 
00032 namespace itk {
00033 
00034 namespace bio {
00035 
00043 class Genome  
00044 {
00045 public:
00046   typedef   std::string                       GeneIdType;
00047   typedef   std::map< GeneIdType, double >    MapType;
00048 
00049 public:
00050   Genome();
00051   virtual ~Genome();
00052 
00053   void Copy( const Genome & genome );
00054 
00055   void InsertGene( const GeneIdType & geneId );
00056   void KnockOutGene( const GeneIdType & geneId );
00057 
00058   double GetExpressionLevel( const GeneIdType & geneId );
00059   void   SetExpressionLevel( const GeneIdType & geneId, double level );
00060 
00063   static double Sigmoide( double threshold, double slant, double value )
00064     {
00065     return vcl_atan(( value - threshold ) / slant   ) / 3.1416 + 0.5001;
00066     }
00067 
00068 private:
00069   MapType         m_Map;
00070    
00071 };
00072 
00073 
00074 } // end namespace bio
00075 
00076 } // end namespace itk
00077 
00078 #endif
00079 

Generated at Mon Jul 12 2010 17:53:56 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000