1 #ifndef PARSELISTCOMMAND_H
2 #define PARSELISTCOMMAND_H
7 * Created by Sarah Westcott on 1/2/09.
8 * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
12 #include <Carbon/Carbon.h>
16 #include "command.hpp"
17 #include "rabundvector.hpp"
18 #include "listvector.hpp"
19 #include "inputdata.h"
21 #include "readmatrix.hpp"
24 /* The parselist() command:
25 The parselist command is similar to the shared command.
26 It parses a list file and separates it into groups. It outputs a .list file for each group.
27 The parselist command parameter options are listfile and groupfile.
28 The parselist command should be in the following format: parselist(listfile=yourListFile, groupfile=yourGroupFile).
29 The listfile parameter and groupfile paramater are required. */
33 class ParseListCommand : public Command {
41 GlobalData* globaldata;
45 map<string, ofstream*> filehandles;
46 map<string, ListVector*> groupOfLists;
48 map<string, string> listGroups; //maps group name to sequences from that group in a specific OTU
49 map<string, string>::iterator it;
50 map<string, ListVector*>::iterator it2;
51 map<string, ofstream*>::iterator it3;