]> git.donarmstrong.com Git - mothur.git/blobdiff - parsefastaqcommand.cpp
working on sra and get.mimarkspackage commands. added file parameter to cluster...
[mothur.git] / parsefastaqcommand.cpp
index a509ae9ef38d985c8837fa6589bc125cca9fe4a1..2f6f5bbb4f99fbdf712cf5830e7e80e066d977d7 100644 (file)
@@ -502,6 +502,26 @@ int ParseFastaQCommand::findGroup(fastqRead2 thisRead, int& barcode, int& primer
             if(!success)                               {       trashCode += 'r';       }
         }
         
+        if (trashCode.length() == 0) { //is this sequence in the ignore group
+            string thisGroup = "";
+            
+            if(barcodes.size() != 0){
+                thisGroup = barcodeNameVector[barcode];
+                if (numPrimers != 0) {
+                    if (primerNameVector[primer] != "") {
+                        if(thisGroup != "") {
+                            thisGroup += "." + primerNameVector[primer];
+                        }else {
+                            thisGroup = primerNameVector[primer];
+                        }
+                    }
+                }
+            }
+            
+            int pos = thisGroup.find("ignore");
+            if (pos != string::npos) {  trashCode += "i"; }
+        }
+
         
         return trashCode.length();
     }