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

+ 2 - 2
index.ts

@@ -202,11 +202,11 @@ const scheduleAsyncBwaMem = async (
   refPath   : string,
   runName   : string,
   libName   : string,
-  allOutputDir : string,
+  allOutputDir : string[],
   onData    : Function
 ) => {
   const q: queueAsPromised<Task> = fastq.promise(asyncBwaMemWorker, 1)
-  await Promise.all(allReads.map((reads,i) => q.push({refPath, reads, runName, libName, outputDir:allOutputDir[i], onData})))
+  await Promise.all(allReads.map((reads,i) => q.push({refPath, reads, runName, libName, outputDir: allOutputDir[i], onData})))
 }
 
 export { asyncBwaMem, writeSequence, makeReference, scheduleAsyncBwaMem }

+ 1 - 1
test.js

@@ -11,5 +11,5 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
 Object.defineProperty(exports, "__esModule", { value: true });
 const _1 = require(".");
 (() => __awaiter(void 0, void 0, void 0, function* () {
-    yield (0, _1.scheduleAsyncBwaMem)([['/Turbine-pool/LAL-T_RNAseq/fastq_fastp/231_LEB/R1.fq.gz', '/Turbine-pool/LAL-T_RNAseq/fastq_fastp/231_LEB/R2.fq.gz']], '/home/thomas/NGS/ref/ncbi/RNA/human_NM.fa', 'TEST', 'TEST', 'test/', console.log);
+    yield (0, _1.scheduleAsyncBwaMem)([['/Turbine-pool/LAL-T_RNAseq/fastq_fastp/231_LEB/R1.fq.gz', '/Turbine-pool/LAL-T_RNAseq/fastq_fastp/231_LEB/R2.fq.gz']], '/home/thomas/NGS/ref/ncbi/RNA/human_NM.fa', 'TEST', 'TEST', ['test/'], console.log);
 }))();

+ 1 - 1
test.ts

@@ -3,6 +3,6 @@ import { scheduleAsyncBwaMem } from ".";
 (async()=>{
     await scheduleAsyncBwaMem(
         [['/Turbine-pool/LAL-T_RNAseq/fastq_fastp/231_LEB/R1.fq.gz','/Turbine-pool/LAL-T_RNAseq/fastq_fastp/231_LEB/R2.fq.gz']],
-        '/home/thomas/NGS/ref/ncbi/RNA/human_NM.fa', 'TEST', 'TEST', 'test/', console.log
+        '/home/thomas/NGS/ref/ncbi/RNA/human_NM.fa', 'TEST', 'TEST', ['test/'], console.log
     )
 })()