Skip to content

Commit

Permalink
feat(picard_xargs): Moved java cli from xargs call
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikstranneheim committed Oct 23, 2019
1 parent 1ad3048 commit 2e500f7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 18 deletions.
14 changes: 6 additions & 8 deletions lib/MIP/Recipes/Analysis/Markduplicates.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ BEGIN {
use base qw{ Exporter };

# Set the version for version checking
our $VERSION = 1.17;
our $VERSION = 1.18;

# Functions and variables which can be optionally exported
our @EXPORT_OK = qw{ analysis_markduplicates };
Expand Down Expand Up @@ -311,14 +311,7 @@ sub analysis_markduplicates {
core_number => $parallel_processes,
filehandle => $filehandle,
file_path => $recipe_file_path,
first_command => q{java},
java_jar =>
catfile( $active_parameter_href->{picardtools_path}, q{picard.jar} ),
java_use_large_pages => $active_parameter_href->{java_use_large_pages},
memory_allocation => q{Xmx} . $JAVA_MEMORY_ALLOCATION . q{g},
picard_use_barclay_parser => 1,
recipe_info_path => $recipe_info_path,
temp_directory => $temp_directory,
xargsfilehandle => $xargsfilehandle,
xargs_file_counter => $xargs_file_counter,
}
Expand All @@ -335,10 +328,15 @@ sub analysis_markduplicates {
create_index => q{true},
filehandle => $xargsfilehandle,
infile_paths_ref => [ $infile_path{$contig} ],
java_jar =>
catfile( $active_parameter_href->{picardtools_path}, q{picard.jar} ),
java_use_large_pages => $active_parameter_href->{java_use_large_pages},
memory_allocation => q{Xmx} . $JAVA_MEMORY_ALLOCATION . q{g},
metrics_file => $metrics_file,
outfile_path => $outfile_path{$contig},
referencefile_path => $referencefile_path,
stderrfile_path => $stderrfile_path,
temp_directory => $temp_directory,
}
);
print {$xargsfilehandle} $SEMICOLON . $SPACE;
Expand Down
18 changes: 8 additions & 10 deletions lib/MIP/Recipes/Analysis/Picardtools_mergesamfiles.pm
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ BEGIN {
use base qw{ Exporter };

# Set the version for version checking
our $VERSION = 1.17;
our $VERSION = 1.18;

# Functions and variables which can be optionally exported
our @EXPORT_OK = qw{ analysis_picardtools_mergesamfiles };
Expand Down Expand Up @@ -355,14 +355,7 @@ sub analysis_picardtools_mergesamfiles {
core_number => $parallel_processes,
filehandle => $filehandle,
file_path => $recipe_file_path,
first_command => q{java},
java_jar =>
catfile( $active_parameter_href->{picardtools_path}, q{picard.jar} ),
java_use_large_pages => $active_parameter_href->{java_use_large_pages},
memory_allocation => q{Xmx} . $JAVA_MEMORY_ALLOCATION . q{g},
picard_use_barclay_parser => 1,
recipe_info_path => $recipe_info_path,
temp_directory => $temp_directory,
xargsfilehandle => $xargsfilehandle,
xargs_file_counter => $xargs_file_counter,
}
Expand All @@ -384,10 +377,15 @@ sub analysis_picardtools_mergesamfiles {
create_index => q{true},
filehandle => $xargsfilehandle,
infile_paths_ref => \@merge_infile_paths,
outfile_path => $outfile_path{$contig},
java_jar =>
catfile( $active_parameter_href->{picardtools_path}, q{picard.jar} ),
java_use_large_pages => $active_parameter_href->{java_use_large_pages},
memory_allocation => q{Xmx} . $JAVA_MEMORY_ALLOCATION . q{g},
outfile_path => $outfile_path{$contig},
referencefile_path => $referencefile_path,
stderrfile_path => $stderrfile_path,
threading => q{true},
temp_directory => $temp_directory,
threading => q{true},
}
);
say {$xargsfilehandle} $NEWLINE;
Expand Down

0 comments on commit 2e500f7

Please sign in to comment.