]> git.donarmstrong.com Git - mothur.git/blobdiff - sffinfocommand.h
fixed bug with blastdb.cpp
[mothur.git] / sffinfocommand.h
index d8eb853dae6892711a9004ae9ad670032f47228e..abfaa4b8a088713278a9384c08909f9eaaad70d2 100644 (file)
@@ -64,21 +64,25 @@ class SffInfoCommand : public Command {
 public:
        SffInfoCommand(string);
        SffInfoCommand();
-       ~SffInfoCommand();
-       vector<string> getRequiredParameters();
-       vector<string> getValidParameters();
-       vector<string> getRequiredFiles();
-       map<string, vector<string> > getOutputFiles() { return outputTypes; }
-       int execute();
-       void help();
+       ~SffInfoCommand(){}
+       
+       vector<string> setParameters();
+       string getCommandName()                 { return "sffinfo";                                     }
+       string getCommandCategory()             { return "Sequence Processing";         }
+       string getHelpString(); 
+       string getCitation() { return "http://www.mothur.org/wiki/Sffinfo"; }
+       
+       int execute(); 
+       void help() { m->mothurOut(getHelpString()); }  
        
 private:
-       string sffFilename, outputDir, accnosName;
+       string sffFilename, sfftxtFilename, outputDir, accnosName;
        vector<string> filenames, outputNames, accnosFileNames;
        bool abort, fasta, qual, trim, flow, sfftxt, hasAccnos;
+       int mycount;
        set<string> seqNames;
-       map<string, vector<string> > outputTypes;
        
+       //extract sff file functions
        int extractSffInfo(string, string);
        int readCommonHeader(ifstream&, CommonHeader&);
        int readHeader(ifstream&, Header&);
@@ -92,7 +96,13 @@ private:
        int printFastaSeqData(ofstream&, seqRead&, Header&);
        int printQualSeqData(ofstream&, seqRead&, Header&);
        int readAccnosFile(string);
-               
+       int parseSffTxt();
+       
+       //parsesfftxt file functions
+       int parseHeaderLineToInt(ifstream&);
+       vector<unsigned short> parseHeaderLineToFloatVector(ifstream&, int);
+       vector<unsigned int> parseHeaderLineToIntVector(ifstream&, int);
+       string parseHeaderLineToString(ifstream&);
 };
 
 /**********************************************************/