|
|
@@ -79,11 +79,14 @@ const denovoAssemblage = (reads, rnames, spadesPath, log) => {
|
|
|
yield rmList([rsltDir]);
|
|
|
console.log('Trying meta');
|
|
|
yield async_exec(spadesPath, ['-t', threads, '--meta', correction, ...args, '-o', rsltDir], log, log);
|
|
|
- console.log('jhhhhhhhh');
|
|
|
if (!isDone(rsltDir)) {
|
|
|
yield rmList([rsltDir, ...tmpSubReads]);
|
|
|
reject('No convergence');
|
|
|
}
|
|
|
+ else {
|
|
|
+ yield rmList(tmpSubReads);
|
|
|
+ resolve(rsltDir);
|
|
|
+ }
|
|
|
}
|
|
|
else if (!isDone(rsltDir) && !isPairedEnd) {
|
|
|
yield rmList([rsltDir, ...tmpSubReads]);
|