1 #ifndef CHIMERACOMMAND_H
2 #define CHIMERACOMMAND_H
8 * Created by Sarah Westcott on 6/29/09.
9 * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
14 #include "command.hpp"
15 #include "filterseqscommand.h"
16 #include "sequence.hpp"
17 #include "sparsematrix.hpp"
20 typedef list<PCell>::iterator MatData;
21 typedef map<int, float> SeqMap; //maps sequence to all distance for that seqeunce
23 /***********************************************************/
25 class ChimeraSeqsCommand : public Command {
27 ChimeraSeqsCommand(string);
28 ~ChimeraSeqsCommand();
33 //Dist* distCalculator;
44 string method, fastafile;
45 bool filter, correction;
46 int processors, midpoint;
47 FilterSeqsCommand* filterSeqs;
48 vector<Sequence> seqs;
49 vector<Preference> pref;
51 int findAverageMidPoint();
53 void generatePreferences(SparseMatrix*, SparseMatrix*);
54 int createSparseMatrix(int, int, SparseMatrix*, vector<Sequence>);
59 /***********************************************************/