Thomas 3 rokov pred
rodič
commit
b6f4a2ca9c
3 zmenil súbory, kde vykonal 13 pridanie a 7 odobranie
  1. 1 0
      .gitignore
  2. 8 5
      index.js
  3. 4 2
      index.ts

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+node_modules

+ 8 - 5
index.js

@@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
     });
 };
 Object.defineProperty(exports, "__esModule", { value: true });
+exports.getBlastRepr = void 0;
 const child_process_1 = require("child_process");
 const async_exec = (prog, args, onData, onErr) => {
     return new Promise((resolve, reject) => {
@@ -133,8 +134,10 @@ const getBlastRepr = (args) => __awaiter(void 0, void 0, void 0, function* () {
         return 1;
     }
 });
-(() => __awaiter(void 0, void 0, void 0, function* () {
-    const sequence = 'ATCTTCACCACGAACTGCTGCTTGCTCGCTTGCTCCTCAGTCCTAGCTTCATCAAACACTGGTTCCTGGAATCCTGTCTGCTGCTGTCTTCCTAGATTCACTGAATCTTCACCACGAACTGCTGCTTGCTCGCTTGCTCCTCAGTCCTAGCTTCATCAA';
-    const dbs = ['/home/thomas/NGS/ref/RNA/human_rna.fna'];
-    console.log(yield getBlastRepr({ sequence, dbs }));
-}))();
+exports.getBlastRepr = getBlastRepr;
+/*(async()=>{
+    const sequence = 'ATCTTCACCACGAACTGCTGCTTGCTCGCTTGCTCCTCAGTCCTAGCTTCATCAAACACTGGTTCCTGGAATCCTGTCTGCTGCTGTCTTCCTAGATTCACTGAATCTTCACCACGAACTGCTGCTTGCTCGCTTGCTCCTCAGTCCTAGCTTCATCAA'
+    const dbs = ['/home/thomas/NGS/ref/RNA/human_rna.fna']
+    console.log(await getBlastRepr({sequence, dbs}));
+    
+})()*/ 

+ 4 - 2
index.ts

@@ -137,9 +137,11 @@ const getBlastRepr = async (args: any) => {
     }
 }
 
-(async()=>{
+export { getBlastRepr }
+
+/*(async()=>{
     const sequence = 'ATCTTCACCACGAACTGCTGCTTGCTCGCTTGCTCCTCAGTCCTAGCTTCATCAAACACTGGTTCCTGGAATCCTGTCTGCTGCTGTCTTCCTAGATTCACTGAATCTTCACCACGAACTGCTGCTTGCTCGCTTGCTCCTCAGTCCTAGCTTCATCAA'
     const dbs = ['/home/thomas/NGS/ref/RNA/human_rna.fna']
     console.log(await getBlastRepr({sequence, dbs}));
     
-})()
+})()*/