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 63 64 65 66 67 68 69 70
|
#ifndef CHIMERASLAYERCOMMAND_H
#define CHIMERASLAYERCOMMAND_H
/*
* chimeraslayercommand.h
* Mothur
*
* Created by westcott on 3/31/10.
* Copyright 2010 Schloss Lab. All rights reserved.
*
*/
#include "mothur.h"
#include "command.hpp"
#include "mothurchimera.h"
#include "chimeraslayer.h"
#include "sequenceparser.h"
#include "sequencecountparser.h"
/***********************************************************/
class ChimeraSlayerCommand : public Command {
public:
ChimeraSlayerCommand(string);
~ChimeraSlayerCommand() = default;
vector<string> setParameters();
string getCommandName() { return "chimera.slayer"; }
string getCommandCategory() { return "Sequence Processing"; }
string getHelpString();
string getOutputPattern(string);
string getCitation() { return "Haas BJ, Gevers D, Earl A, Feldgarden M, Ward DV, Giannokous G, Ciulla D, Tabbaa D, Highlander SK, Sodergren E, Methe B, Desantis TZ, Petrosino JF, Knight R, Birren BW (2011). Chimeric 16S rRNA sequence formation and detection in Sanger and 454-pyrosequenced PCR amplicons. Genome Res 21:494.\nhttp://www.mothur.org/wiki/Chimera.slayer"; }
string getDescription() { return "detect chimeric sequences"; }
int execute();
void help() { m->mothurOut(getHelpString()); }
private:
vector<int> processIDS; //processid
vector<linePair> lines;
int driver(string, string, string, string, map<string, int>&);
int divideInHalf(Sequence, string&, string&);
map<string, int> sortFastaFile(string fasta, string dups, string newFile);
string getCountFile(string&);
int deconvoluteResults(string, string, string);
int setUpForSelfReference(map<string, string>&, map<string, map<string, int> >&);
int driverGroups(string, string, string, map<string, map<string, int> >&, map<string, string>&, string);
bool abort, realign, trim, trimera, hasCount, dups, removeChimeras;
string fastafile, templatefile, countfile;
int window, iters, increment, numwanted, ksize, match, mismatch, parents, minSimilarity, minCoverage, minBS, minSNP, templateSeqsLength;
long long numSeqs;
float divR;
map<string, int> priority;
map<string, string> group2NameFile;
vector<string> outputNames;
};
/***********************************************************/
#endif
|