Biorithm  1.1
 All Classes Functions Variables Typedefs Friends
read.h
00001 /**************************************************************************
00002  * Copyright (c) 2002-2011 T. M. Murali                                   *
00003  *                                                                        *
00004  * This file is part of Biorithm.                                         *
00005  *                                                                        *
00006  * Biorithm is free software: you can redistribute it and/or modify       *
00007  * it under the terms of the GNU General Public License as published by   *
00008  * the Free Software Foundation, either version 3 of the License, or      *
00009  * (at your option) any later version.                                    *
00010  *                                                                        *
00011  * Biorithm is distributed in the hope that it will be useful,            *
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of         *
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
00014  * GNU General Public License for more details.                           *
00015  *                                                                        *
00016  * You should have received a copy of the GNU General Public License      *
00017  * along with Biorithm.  If not, see <http://www.gnu.org/licenses/>.      *
00018  *                                                                        *
00019  **************************************************************************/
00020 
00021 #ifndef _READ_H
00022 #define _READ_H
00023 
00024 #include <algorithm>
00025 
00026 using namespace std;
00027 
00028 //#include "cog.h"
00029 #include "format.h"
00030 #include "interval.h"
00031 #include "params.h"
00032 #include "point.h"
00033 
00034 
00035 void readAffyData(const string& inputFile, const string& genesFile,
00036                   int numPointsToRead,
00037                   MyPointSet& points,
00038                   vector< MyDimInfo >& dimInfo,
00039                   unsigned int& numDims, 
00040                            const MyAffyFileFormat &format
00041                   // i need this argument for calling _setUpFormat().
00042                            //                  const MyClusterParams *params = NULL
00043                   );
00044 
00045 void readAffyData(//const 
00046                            MyClusterParams &params,
00047                   MyPointSet& points,
00048                   vector< MyDimInfo >& dimInfo,
00049                   unsigned int& numDims,
00050                            // when params can have multiple input files, i need
00051                            // some variable to say which one to read!
00052                            unsigned int whichPointSet
00053                            );
00054 
00055 void readData(const MyClusterParams& params, MyPointSet& points,
00056               vector< MyDimInfo >& dimInfo,
00057               unsigned int& numDims,
00058                     // when params can have multiple input files, i need
00059                     // some variable to say which one to read!
00060                     unsigned int whichPointSet
00061                     );
00062 void readWidths(const string &widthFile, int numDims, vector< MyNT >& widths);
00063 
00064 void readWidthRanges(const string &widthFile, unsigned int numDims,
00065                      vector< map< MyNT, MyWidthRange > >& widths);
00066 
00067 void createIntervals(const MyPointSet &points, MyNT maxLower, MyNT minUpper,
00068                                  vector< vector< MyInterval > >& intervals);
00069 void readIntervals(const string &intervalFile, unsigned int numDims,
00070                    MyNT maxPValue, int maxCount,
00071                    vector< vector< MyInterval > >& intervals,//);
00072                    vector< MyNT >& widths);
00073 void readClasses(const string& classFile, MyClassesType& classes,
00074                  MyClassNamesType& classNames);
00075 
00076 
00077 
00078 #endif // _READ_H 
 All Classes Functions Variables Typedefs Friends