ITK  4.9.0
Insight Segmentation and Registration Toolkit
itkBioGenome.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkBioGenome_h
19 #define itkBioGenome_h
20 
21 
22 #if defined( _WIN32 )
23 #include "itkWindows.h"
24 #endif
25 #include "itkMacro.h"
26 #include "ITKBioCellExport.h"
27 
28 #include <map>
29 #include <string>
30 #include <cmath>
31 
32 namespace itk
33 {
34 namespace bio
35 {
45 class ITKBioCell_EXPORT Genome
46 {
47 public:
48  typedef std::string GeneIdType;
49  typedef std::map< GeneIdType, double > MapType;
50 
51 public:
52  Genome();
53  virtual ~Genome();
54 
55  void Copy(const Genome & genome);
56 
57  void InsertGene(const GeneIdType & geneId);
58 
59  void KnockOutGene(const GeneIdType & geneId);
60 
61  double GetExpressionLevel(const GeneIdType & geneId);
62 
63  void SetExpressionLevel(const GeneIdType & geneId, double level);
64 
67  static double Sigmoide(double threshold, double slant, double value)
68  {
69  return std::atan( ( value - threshold ) / slant ) / 3.1416 + 0.5001;
70  }
71 
72 private:
74 };
75 } // end namespace bio
76 } // end namespace itk
77 
78 #endif
static double Sigmoide(double threshold, double slant, double value)
Definition: itkBioGenome.h:67
std::map< GeneIdType, double > MapType
Definition: itkBioGenome.h:49
This class implements the abstraction of a biological genome.
Definition: itkBioGenome.h:45
std::string GeneIdType
Definition: itkBioGenome.h:48