SHOGUN  v2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
IntronList.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 2009 Jonas Behr
8  * Copyright (C) 2009 Fraunhofer Institute FIRST and Max-Planck-Society
9  */
10 
11 #ifndef __INTRON_LIST__
12 #define __INTRON_LIST__
13 
14 #include <shogun/lib/common.h>
15 #include <shogun/base/SGObject.h>
16 
17 namespace shogun
18 {
20 class CIntronList : public CSGObject
21 {
22  public:
23 
26  CIntronList();
27 
28  virtual ~CIntronList();
29 
35  void init_list(int32_t* all_pos, int32_t len);
36 
44  void read_introns(int32_t* start_pos, int32_t* end_pos, int32_t* quality, int32_t len);
45 
52  void get_intron_support(int32_t* values, int32_t from_pos, int32_t to_pos);
53 
57  inline virtual const char* get_name() const { return "IntronList"; }
58  protected:
60  int32_t m_length;
61 
63  int32_t* m_all_pos;
64 
69  int32_t** m_intron_list;
70 
74  int32_t** m_quality_list;
75 };
76 }
77 #endif

SHOGUN Machine Learning Toolbox - Documentation