Skip to content

Commit

Permalink
feat(stranger): rename family_id parameter to case_id
Browse files Browse the repository at this point in the history
  • Loading branch information
jemten committed Feb 12, 2021
1 parent 0299a3e commit 730c318
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions lib/MIP/Program/Stranger.pm
Expand Up @@ -35,7 +35,7 @@ sub stranger {

## Function : Perl wrapper for stranger annotation of repeat expansions.
## Returns : @commands
## Arguments: $family_id => Family id
## Arguments: $case_id => Case id
## : $filehandle => Filehandle to write to
## : $infile_path => Infile
## : $log_level => Log level
Expand All @@ -48,7 +48,7 @@ sub stranger {
my ($arg_href) = @_;

## Flatten argument(s)
my $family_id;
my $case_id;
my $filehandle;
my $infile_path;
my $repeats_file_path;
Expand All @@ -61,8 +61,8 @@ sub stranger {
my $log_level;

my $tmpl = {
family_id => {
store => \$family_id,
case_id => {
store => \$case_id,
strict_type => 1,
},
filehandle => {
Expand Down Expand Up @@ -103,9 +103,9 @@ sub stranger {

my @commands = qw{ stranger };

if ($family_id) {
if ($case_id) {

push @commands, q{--family_id} . $SPACE . $family_id;
push @commands, q{--family_id} . $SPACE . $case_id;
}

push @commands, q{--loglevel} . $SPACE . $log_level;
Expand Down
2 changes: 1 addition & 1 deletion lib/MIP/Recipes/Analysis/Expansionhunter.pm
Expand Up @@ -352,7 +352,7 @@ sub analysis_expansionhunter {
$outfile_path_prefix . $UNDERSCORE . q{vt_svdbmerge_ann} . $outfile_suffix;
stranger(
{
family_id => $case_id,
case_id => $case_id,
filehandle => $filehandle,
infile_path => $svdb_outfile_path,
repeats_file_path => $variant_catalog_file_path,
Expand Down
2 changes: 1 addition & 1 deletion t/stranger.t
Expand Up @@ -91,7 +91,7 @@ my %required_argument = (
);

my %specific_argument = (
family_id => {
case_id => {
input => q{case_id},
expected_output => q{--family_id} . $SPACE . q{case_id},
},
Expand Down

0 comments on commit 730c318

Please sign in to comment.