MCPcopy Create free account
hub / github.com/OpenGene/fastp / shallDetectAdapter

Method shallDetectAdapter

src/options.cpp:448–460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446}
447
448bool Options::shallDetectAdapter(bool isR2) {
449 if(!adapter.enabled)
450 return false;
451
452 if(isR2) {
453 return isPaired() && adapter.detectAdapterForPE && adapter.sequenceR2 == "auto";
454 } else {
455 if(isPaired())
456 return adapter.detectAdapterForPE && adapter.sequence == "auto";
457 else
458 return adapter.sequence == "auto";
459 }
460}
461
462void Options::initIndexFiltering(string blacklistFile1, string blacklistFile2, int threshold) {
463 if(blacklistFile1.empty() && blacklistFile2.empty())

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected