|
|
@@ -67,7 +67,7 @@ const denovoAssemblage = (reads, rnames, spadesPath) => {
|
|
|
const parsedPath = path_1.default.parse(R);
|
|
|
const greper = parsedPath.ext === '.gz' ? 'zgrep' : 'grep';
|
|
|
isfq.push(R.match(/\.fq/) ? true : false);
|
|
|
- const tmp = path_1.default.join(os_1.default.tmpdir(), (+new Date) + '_' + parsedPath.name + (isfq ? '.fq' : '.fa'));
|
|
|
+ const tmp = path_1.default.join(os_1.default.tmpdir(), (+new Date) + '_' + parsedPath.name + (isfq[isfq.length] ? '.fq' : '.fa'));
|
|
|
tmpSubReads.push(tmp);
|
|
|
yield async_exec(greper, [rnamesSel, R, '-A3', '--no-group-separator', '>', tmp], console.log, console.log);
|
|
|
}
|