Thomas 3 年之前
父節點
當前提交
9fe9a142f6
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      index.ts

+ 2 - 2
index.ts

@@ -54,7 +54,7 @@ const asyncBwaMem = (
       try {
       try {
         const code = await async_exec(
         const code = await async_exec(
         bwa, ['mem',
         bwa, ['mem',
-          '-t', String(require('os').cpus().length),
+          '-t', String(cpus().length),
           '-R', `"@RG\\tPL:Illumina\\tID:${+(new Date)}\\tSM:${runName}\\tLB:${libName}"`,
           '-R', `"@RG\\tPL:Illumina\\tID:${+(new Date)}\\tSM:${runName}\\tLB:${libName}"`,
           refPath, R1_in, R2_in,
           refPath, R1_in, R2_in,
         '|',
         '|',
@@ -91,4 +91,4 @@ const asyncBwaMem = (
     })
     })
 }
 }
 
 
-export default asyncBwaMem
+export { asyncBwaMem }