Skip to content

Commit 4a65ac3

Browse files
authored
Merge pull request #781 from jemten/feature/vcf2cytosure_sex
fix(vcf2cytosure_sex): accounts for unknown sex
2 parents 4e7251b + e8a583d commit 4a65ac3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/MIP/Recipes/Analysis/Vcf2cytosure.pm

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ BEGIN {
2121
use base qw{ Exporter };
2222

2323
# Set the version for version checking
24-
our $VERSION = 1.04;
24+
our $VERSION = 1.05;
2525

2626
# Functions and variables which can be optionally exported
2727
our @EXPORT_OK = qw{ analysis_vcf2cytosure };
@@ -385,14 +385,18 @@ q{## Converting sample's SV VCF file into cytosure, using Vcf2cytosure}
385385
my $cgh_outfile_path = catfile( $temp_directory,
386386
$sample_id . $infile_tag . q{SV} . $DOT . q{cgh} );
387387

388+
my $sample_sex = $sample_info_href->{sample}{$sample_id}{sex};
389+
390+
$sample_sex = undef if $sample_sex eq q{unknown};
391+
388392
vcf2cytosure_convert(
389393
{
390394
coverage_file => $file_path_prefix{$sample_id}{out}
391395
. $cov_outfile_suffix,
392396
FILEHANDLE => $FILEHANDLE,
393397
maxbnd => $active_parameter_href->{vcf2cytosure_maxbnd},
394398
outfile_path => $cgh_outfile_path,
395-
sex => $sample_info_href->{sample}{$sample_id}{sex},
399+
sex => $sample_sex,
396400
variant_size => $active_parameter_href->{vcf2cytosure_var_size},
397401
vcf_infile_path => catfile( $temp_directory, $sample_vcf_file ),
398402
}

0 commit comments

Comments
 (0)