Skip to content

Commit

Permalink
Report missing extracted toassembly files in wrapper.
Browse files Browse the repository at this point in the history
  • Loading branch information
mourisl committed Oct 14, 2019
1 parent cc53ae6 commit b296a27
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions BamExtractor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,9 @@ void FinishWork( std::vector<struct _unmappedCandidate> work,
pthread_mutex_destroy( info.lockOutput ) ;
pthread_mutex_destroy( info.lockFreeThreads ) ;
pthread_cond_destroy( info.condFreeThreads ) ;
delete info.lockOutput ;
delete info.lockFreeThreads ;
delete info.condFreeThreads ;
ReleaseCustomData( threadArgs, threadCnt ) ;
delete[] threadArgs ;
}
Expand Down
6 changes: 5 additions & 1 deletion run-trust4
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,15 @@ if ( @bamFiles > 0 )
push @secondMateFiles, $prefix."_toassemble_2.fq" ;
$mainArgs .= " -1 ".$prefix."_toassemble_1.fq -2 ".$prefix."_toassemble_2.fq" ;
}
else
elsif ( -e $prefix."_toassemble.fq" )
{
push @singleFiles, "${prefix}_toassemble.fq" ;
$mainArgs .= " -u ${prefix}_toassemble.fq" ;
}
else
{
die "Could not find files like ${prefix}_toassemble*.fq\n" ;
}
}

# Run the assembly
Expand Down

0 comments on commit b296a27

Please sign in to comment.