Thomas 3 years ago
parent
commit
e3e7133c6e
2 changed files with 3 additions and 0 deletions
  1. 1 0
      dist/index.js
  2. 2 0
      index.ts

+ 1 - 0
dist/index.js

@@ -91,6 +91,7 @@ var makeReference = function (sequenceName, sequence, filePath, lineN) {
                                 r = new RegExp(".{1," + lineN + "}", "g");
                                 regex_sam_restriction = /[>0-9A-Za-z!#$%&+\./:;?@^_|~-]|[\n\t]/g;
                                 nSeqName = invReplace(regex_sam_restriction, sequenceName);
+                                console.log(nSeqName);
                                 return [4 /*yield*/, fs_1.default.promises.writeFile(filePath, '>' + nSeqName + '\n' + ((_a = sequence.match(r)) === null || _a === void 0 ? void 0 : _a.join('\n')))];
                             case 1:
                                 _b.sent();

+ 2 - 0
index.ts

@@ -22,6 +22,8 @@ const makeReference = async (sequenceName:string, sequence:string, filePath: str
       const r = new RegExp(".{1," + lineN + "}","g");
       const regex_sam_restriction: RegExp = /[>0-9A-Za-z!#$%&+\./:;?@^_|~-]|[\n\t]/g;
       const nSeqName = invReplace(regex_sam_restriction, sequenceName)
+      console.log(nSeqName);
+      
       await fs.promises.writeFile(filePath, '>' + nSeqName + '\n' + sequence.match(r)?.join('\n'))
       await async_exec('bwa', ['index',filePath], () => console.log)
       resolve(true)