X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=filterseqscommand.cpp;h=68450fb15a7b140803aab2d54d8c5bc84e7ce688;hb=7e354c9abb09ea3cf5b500a16cc7f6dd79ccb6f5;hp=ad491aa1252ccb28553b12daf0f353533428d531;hpb=92dde9a6d6c638fcbbd5dbaa5c79167564f90e49;p=mothur.git diff --git a/filterseqscommand.cpp b/filterseqscommand.cpp index ad491aa..68450fb 100644 --- a/filterseqscommand.cpp +++ b/filterseqscommand.cpp @@ -56,6 +56,13 @@ FilterSeqsCommand::FilterSeqsCommand(string option){ numSeqs = 0; + if (abort == false) { + + if (soft != 0) { F.setSoft(soft); } + if (trump != '*') { F.setTrump(trump); } + + } + } } @@ -90,70 +97,6 @@ void FilterSeqsCommand::help(){ /**************************************************************************************/ -void FilterSeqsCommand::doHard() { - - ifstream fileHandle; - openInputFile(hard, fileHandle); - - fileHandle >> filter; - - fileHandle.close(); - -} - -/**************************************************************************************/ - -void FilterSeqsCommand::doTrump(Sequence seq) { - - string curAligned = seq.getAligned(); - - for(int j = 0; j < alignmentLength; j++) { - if(curAligned[j] == trump){ - filter[j] = '0'; - } - } - -} - -/**************************************************************************************/ - -void FilterSeqsCommand::doVertical() { - - for(int i=0;i