1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
#ifndef PRECLUSTERCOMMAND_H
#define PRECLUSTERCOMMAND_H
/*
* preclustercommand.h
* Mothur
*
* Created by westcott on 12/21/09.
* Copyright 2009 Schloss Lab. All rights reserved.
*
*/
#include "command.hpp"
#include "sequence.hpp"
#include "sequenceparser.h"
#include "sequencecountparser.h"
#include "alignment.hpp"
#include "gotohoverlap.hpp"
#include "needlemanoverlap.hpp"
#include "noalign.hpp"
#include "filters.h"
#include "getseqscommand.h"
//************************************************************/
class PreClusterCommand : public Command {
public:
PreClusterCommand(string);
~PreClusterCommand(){}
vector<string> setParameters();
string getCommandName() { return "pre.cluster"; }
string getCommandCategory() { return "Sequence Processing"; }
string getHelpString();
string getOutputPattern(string);
string getCitation() { return "Schloss PD, Gevers D, Westcott SL (2011). Reducing the effects of PCR amplification and sequencing artifacts on 16S rRNA-based studies. PLoS ONE. 6:e27310.\nhttp://www.mothur.org/wiki/Pre.cluster"; }
string getDescription() { return "implements a pseudo-single linkage algorithm with the goal of removing sequences that are likely due to pyrosequencing errors"; }
int execute();
void help() { m->mothurOut(getHelpString()); }
private:
int diffs, length, processors;
float match, misMatch, gapOpen, gapExtend, alpha, delta, error_rate, indel_prob, max_indels;
vector<float> error_dist;
bool abort, bygroup;
string fastafile, namefile, groupfile, countfile, pc_method, align_method, align, clump;
vector<string> outputNames;
void createProcessesGroups(map<string, vector<string> >&, vector<string>, string, string);
unordered_set<string> mergeGroupCounts(string, string);
void printFasta(string newFastaFileName, unordered_set<string> accnosFile);
};
/**************************************************************************************************/
#endif
|