Skip to content

Commit

Permalink
feat(cadd): cd into temp dir
Browse files Browse the repository at this point in the history
  • Loading branch information
jemten committed Oct 28, 2020
1 parent 1cbd012 commit 867ad30
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
## [9.0.4]
- Increased memory allocation for samtools_subsample_mt
- Check that vep plugin paths exists prior to executing mip
- Cd into cadd temp directory before executing cadd in order to escape snakemake lock errors

## [9.0.3]
- Changed path and name of slurm job ids file to facilitate analysis monitoring
Expand Down
14 changes: 12 additions & 2 deletions lib/MIP/Recipes/Analysis/Cadd.pm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ BEGIN {
use base qw{ Exporter };

# Set the version for version checking
our $VERSION = 1.08;
our $VERSION = 1.09;

# Functions and variables which can be optionally exported
our @EXPORT_OK = qw{ analysis_cadd analysis_cadd_panel };
Expand Down Expand Up @@ -123,7 +123,7 @@ sub analysis_cadd {

use MIP::Get::File qw{ get_io_files };
use MIP::Get::Parameter qw{ get_recipe_attributes get_recipe_resources };
use MIP::Program::Gnu::Bash qw{ gnu_export gnu_unset };
use MIP::Program::Gnu::Bash qw{ gnu_cd gnu_export gnu_unset };
use MIP::Program::Gnu::Coreutils qw{ gnu_mkdir };
use MIP::Parse::File qw{ parse_io_outfiles };
use MIP::Program::Bcftools qw{ bcftools_annotate bcftools_concat bcftools_view };
Expand Down Expand Up @@ -326,6 +326,16 @@ sub analysis_cadd {
);
print {$xargsfilehandle} $SEMICOLON . $SPACE;

## Attempt to escape snakemake lock
gnu_cd(
{
filehandle => $xargsfilehandle,
directory_path => $temp_outdir_path{$contig},
stderrfile_path_append => $stderrfile_path,
}
);
print {$xargsfilehandle} $SEMICOLON . $SPACE;

cadd(
{
filehandle => $xargsfilehandle,
Expand Down

0 comments on commit 867ad30

Please sign in to comment.