| 65 | } |
| 66 | |
| 67 | void PairEndProcessor::initOutput() { |
| 68 | if(!mOptions->unpaired1.empty()) |
| 69 | mUnpairedLeftWriter = new WriterThread(mOptions, mOptions->unpaired1); |
| 70 | |
| 71 | if(!mOptions->unpaired2.empty() && mOptions->unpaired2 != mOptions->unpaired1) |
| 72 | mUnpairedRightWriter = new WriterThread(mOptions, mOptions->unpaired2); |
| 73 | |
| 74 | if(mOptions->merge.enabled) { |
| 75 | if(!mOptions->merge.out.empty()) |
| 76 | mMergedWriter = new WriterThread(mOptions, mOptions->merge.out); |
| 77 | } |
| 78 | |
| 79 | if(!mOptions->failedOut.empty()) |
| 80 | mFailedWriter = new WriterThread(mOptions, mOptions->failedOut); |
| 81 | |
| 82 | if(!mOptions->overlappedOut.empty()) |
| 83 | mOverlappedWriter = new WriterThread(mOptions, mOptions->overlappedOut); |
| 84 | |
| 85 | if(mOptions->out1.empty() && !mOptions->outputToSTDOUT) |
| 86 | return; |
| 87 | |
| 88 | mLeftWriter = new WriterThread(mOptions, mOptions->out1, mOptions->outputToSTDOUT); |
| 89 | if(!mOptions->out2.empty()) |
| 90 | mRightWriter = new WriterThread(mOptions, mOptions->out2); |
| 91 | } |
| 92 | |
| 93 | void PairEndProcessor::closeOutput() { |
| 94 | if(mLeftWriter) { |
nothing calls this directly
no outgoing calls
no test coverage detected