|
|
@@ -79,18 +79,19 @@ const asyncBwaMem = (
|
|
|
}
|
|
|
|
|
|
const threads = String(cpus().length)
|
|
|
+
|
|
|
+
|
|
|
|
|
|
let samblasterCmd: Array<string> = []
|
|
|
+ // https://github.com/GregoryFaust/samblaster
|
|
|
+ samblasterCmd = ['|', samblaster,
|
|
|
+ '--addMateTags',
|
|
|
+ '-a', // Accept duplicate marks already in input file
|
|
|
+ '-e', // Exclude reads marked as duplicates from discordant, splitter, and/or unmapped
|
|
|
+ ]
|
|
|
+
|
|
|
if (options?.output_discordant || options?.output_splitted) {
|
|
|
console.log('Using samblaster');
|
|
|
-
|
|
|
- // https://github.com/GregoryFaust/samblaster
|
|
|
- samblasterCmd = ['|', samblaster,
|
|
|
- '--addMateTags',
|
|
|
- '-a', // Accept duplicate marks already in input file
|
|
|
- '-e', // Exclude reads marked as duplicates from discordant, splitter, and/or unmapped
|
|
|
- ]
|
|
|
-
|
|
|
if(options?.output_discordant) {
|
|
|
if(!isPairedEnd) {
|
|
|
console.log('Discordant reads can be found only in paired reads, skipping')
|