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 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
|
#ifndef CHIMERAUCHIMECOMMAND_H
#define CHIMERAUCHIMECOMMAND_H
/*
* chimerauchimecommand.h
* Mothur
*
* Created by westcott on 5/13/11.
* Copyright 2011 Schloss Lab. All rights reserved.
*
*/
#include "command.hpp"
#include "sequenceparser.h"
#include "counttable.h"
#include "sequencecountparser.h"
/***********************************************************/
struct uchimeVariables {
bool dups, useAbskew, chimealns, useMinH, useMindiv, useXn, useDn, useXa, useChunks, useMinchunk, useIdsmoothwindow, useMinsmoothid, useMaxp, skipgaps, skipgaps2, useMinlen, useMaxlen, ucl, useQueryfract, hasCount;
string abskew, minh, mindiv, xn, dn, xa, chunks, minchunk, idsmoothwindow, minsmoothid, maxp, minlen, maxlen, queryfract, strand;
uchimeVariables() = default;
void setBooleans(bool dps, bool Abskew, bool calns, bool MinH, bool Mindiv, bool Xn, bool Dn, bool Xa, bool Chunks, bool Minchunk, bool Idsmoothwindow, bool Minsmoothid, bool Maxp, bool skipgap, bool skipgap2, bool Minlen, bool Maxlen, bool uc, bool Queryfract, bool hc) {
useAbskew = Abskew;
chimealns = calns;
useMinH = MinH;
useMindiv = Mindiv;
useXn = Xn;
useDn = Dn;
useXa = Xa;
useChunks = Chunks;
useMinchunk = Minchunk;
useIdsmoothwindow = Idsmoothwindow;
useMinsmoothid = Minsmoothid;
useMaxp = Maxp;
skipgaps = skipgap;
skipgaps2 = skipgap2;
useMinlen = Minlen;
useMaxlen = Maxlen;
ucl = uc;
useQueryfract = Queryfract;
hasCount = hc;
dups = dps;
}
void setVariables(string abske, string min, string mindi, string x, string d, string xa2, string chunk, string minchun, string idsmoothwindo, string minsmoothi, string max, string minle, string maxle, string queryfrac, string stra) {
abskew = abske;
minh = min;
mindiv = mindi;
strand = stra;
xn = x;
dn = d;
xa = xa2;
chunks = chunk;
minchunk = minchun;
idsmoothwindow = idsmoothwindo;
minsmoothid = minsmoothi;
maxp = max;
minlen = minle;
maxlen = maxle;
queryfract = queryfrac;
}
};
/***********************************************************/
class ChimeraUchimeCommand : public Command {
public:
ChimeraUchimeCommand(string);
~ChimeraUchimeCommand() = default;
vector<string> setParameters();
string getCommandName() { return "chimera.uchime"; }
string getCommandCategory() { return "Sequence Processing"; }
string getHelpString();
string getCommonQuestions();
string getOutputPattern(string);
string getCitation() { return "uchime by Robert C. Edgar\nhttp://drive5.com/usearch/manual/uchime_algo.html\nThis code was donated to the public domain.\nEdgar,R.C., Haas,B.J., Clemente,J.C., Quince,C. and Knight,R. (2011), UCHIME improves sensitivity and speed of chimera detection. Bioinformatics 27:2194.\nhttp://www.mothur.org/wiki/Chimera.uchime\n"; }
string getDescription() { return "detect chimeric sequences"; }
int execute();
void help() { m->mothurOut(getHelpString()); }
private:
bool abort, useAbskew, chimealns, useMinH, useMindiv, useXn, useDn, useXa, useChunks, useMinchunk, useIdsmoothwindow, useMinsmoothid, useMaxp, skipgaps, skipgaps2, useMinlen, useMaxlen, ucl, useQueryfract, hasCount, dups, removeChimeras;
string fastafile, templatefile, countfile, abskew, minh, mindiv, xn, dn, xa, chunks, minchunk, idsmoothwindow, minsmoothid, maxp, minlen, maxlen, queryfract, uchimeLocation, strand;
int processors;
vector<string> outputNames;
uchimeVariables* vars;
string getCountFile(string&);
int readFasta(string, map<string, string>&);
int deconvoluteResults(string, string, string);
int createProcessesGroups(map<string, vector<string> >&, string, string, string, string, vector<string>, map<string, vector<string> >&);
};
/**************************************************************************************************/
#endif
|