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

+ 1 - 1
dist/index.js

@@ -91,7 +91,7 @@ var writeSequence = 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);
-                                return [4 /*yield*/, fs_1.default.promises.writeFile(filePath, '>' + nSeqName + '\n' + ((_a = sequence.match(r)) === null || _a === void 0 ? void 0 : _a.join('\n')))];
+                                return [4 /*yield*/, fs_1.default.promises.writeFile(filePath, '>' + nSeqName + '\n' + ((_a = sequence.match(r)) === null || _a === void 0 ? void 0 : _a.join('\n').toUpperCase()))];
                             case 1:
                                 _b.sent();
                                 resolve(true);

+ 1 - 1
index.ts

@@ -22,7 +22,7 @@ const writeSequence = 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)
-      await fs.promises.writeFile(filePath, '>' + nSeqName + '\n' + sequence.match(r)?.join('\n'))
+      await fs.promises.writeFile(filePath, '>' + nSeqName + '\n' + sequence.match(r)?.join('\n').toUpperCase())
       resolve(true)
     } catch (error) {
       console.log(error)