]> git.donarmstrong.com Git - mothur.git/blob - readdistcommand.h
4f38d034f1f14e320da5495ac79a04d4deff16b3
[mothur.git] / readdistcommand.h
1 #ifndef READDISTCOMMAND_H
2 #define READDISTCOMMAND_H
3 /*
4  *  readdistcommand.h
5  *  Mothur
6  *
7  *  Created by Sarah Westcott on 1/20/09.
8  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
9  *
10  */
11
12 #include <iostream>
13 #include <fstream>
14 #include "command.hpp"
15 #include "readmatrix.hpp"
16
17 /* The read.dist command is used to read a distance matrix file.  
18 The read.dist command parameter options are phylipfile, columnfile, namefile, cutoff and precision. 
19 The read.dist command should be in the following format: read.dist(phylipfile=yourDistFile, 
20 namefile=yourNameFile, cutoff=yourCutoff, precision=yourPrecision). The phylipfile or columnfile are required and if you use a columnfile the namefile is required.  
21 If you do not provide a cutoff value 10.00 is assumed. If you do not provide a precision value then 100 is assumed.  */
22
23 class NameAssignment;
24 class GlobalData;
25
26
27 class ReadDistCommand : public Command {
28 public:
29         ReadDistCommand();
30         ~ReadDistCommand();
31         int execute();
32         
33 private:
34         GlobalData* globaldata;
35         double cutoff;
36         int precision;
37         ReadMatrix* read;
38         string filename, format, method;
39         NameAssignment* nameMap;
40 };
41
42 #endif