]> git.donarmstrong.com Git - mothur.git/blobdiff - parsefastaqcommand.cpp
Merge remote-tracking branch 'mothur/master'
[mothur.git] / parsefastaqcommand.cpp
index 9509a20af2528392c2df8590aea61fef6a7665b4..e6d7ce6d1aa30da836bb88f2833bd666ae11bd85 100644 (file)
@@ -33,8 +33,10 @@ string ParseFastaQCommand::getHelpString(){
        try {
                string helpString = "";
                helpString += "The fastq.info command reads a fastq file and creates a fasta and quality file.\n";
-               helpString += "The fastq.info command parameter is fastq, and it is required.\n";
+               helpString += "The fastq.info command parameters are fastq, fasta and qfile; fastq is required.\n";
                helpString += "The fastq.info command should be in the following format: fastq.info(fastaq=yourFastaQFile).\n";
+        helpString += "The fasta parameter allows you to indicate whether you want a fasta file generated. Default=T.\n";
+        helpString += "The qfile parameter allows you to indicate whether you want a quality file generated. Default=T.\n";
                helpString += "Example fastq.info(fastaq=test.fastaq).\n";
                helpString += "Note: No spaces between parameter labels (i.e. fastq), '=' and yourFastQFile.\n";
                return helpString;
@@ -166,7 +168,7 @@ int ParseFastaQCommand::execute(){
                        
                        //sanity check sequence length and number of quality scores match
                        if (name2 != "") { if (name != name2) { m->mothurOut("[ERROR]: names do not match. read " + name + " for fasta and " + name2 + " for quality."); m->mothurOutEndLine(); m->control_pressed = true; break; } }
-                       if (quality.length() != sequence.length()) { m->mothurOut("[ERROR]: lengths do not match. read " + toString(sequence.length()) + " characters for fasta and " + toString(quality.length()) + " characters for quality scores."); m->mothurOutEndLine(); m->control_pressed = true; break; }
+                       if (quality.length() != sequence.length()) { m->mothurOut("[ERROR]: Lengths do not match for sequence " + name + ". Read " + toString(sequence.length()) + " characters for fasta and " + toString(quality.length()) + " characters for quality scores."); m->mothurOutEndLine(); m->control_pressed = true; break; }
                        
                        //print sequence info to files
                        if (fasta) { outFasta << ">" << name << endl << sequence << endl; }