]> git.donarmstrong.com Git - mothur.git/blobdiff - parsefastaqcommand.cpp
changes for 1.16.0
[mothur.git] / parsefastaqcommand.cpp
index 1e6643162b5962eadaf1cd36cc0ead26700240ec..f0a7abcc3692b8e290863a71c93bcc1831e87fca 100644 (file)
@@ -120,7 +120,7 @@ ParseFastaQCommand::ParseFastaQCommand(string option){
 
 void ParseFastaQCommand::help(){
        try {
-               m->mothurOut("The fastq.info command reads a fastaQ file and creates a fasta and quality file.\n");
+               m->mothurOut("The fastq.info command reads a fastq file and creates a fasta and quality file.\n");
                m->mothurOut("The fastq.info command parameter is fastq, and it is required.\n");
                m->mothurOut("The fastq.info command should be in the following format: fastq.info(fastaq=yourFastaQFile).\n");
                m->mothurOut("Example fastq.info(fastaq=test.fastaq).\n");
@@ -175,7 +175,7 @@ int ParseFastaQCommand::execute(){
                        if (qual == "") {  m->mothurOut("[ERROR]: missing quality for " + name2); m->mothurOutEndLine(); m->control_pressed = true; break; }
                        
                        //sanity check sequence length and number of quality scores match
-                       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 (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 (qual.length() != sequence.length()) { m->mothurOut("[ERROR]: lengths do not match. read " + toString(sequence.length()) + " characters for fasta and " + toString(qual.length()) + " characters for quality scores."); m->mothurOutEndLine(); m->control_pressed = true; break; }
                        
                        //convert quality scores