From 25881c393d604f2eb5fecdda7f4212346a5e1187 Mon Sep 17 00:00:00 2001 From: jemten Date: Tue, 20 Feb 2024 09:38:45 +0100 Subject: [PATCH 1/5] adds automatic ped_check fail --- CHANGELOG.md | 1 + definitions/rd_dna_panel_parameters.yaml | 2 +- definitions/rd_dna_parameters.yaml | 2 +- definitions/rd_rna_parameters.yaml | 2 +- documentation/README.md | 2 +- lib/MIP/Cli/Mip/Analyse/Rd_dna.pm | 2 +- lib/MIP/Cli/Mip/Analyse/Rd_dna_panel.pm | 2 +- lib/MIP/Cli/Mip/Analyse/Rd_rna.pm | 2 +- lib/MIP/Qcc_regexp.pm | 4 + lib/MIP/Recipes/Analysis/Peddy.pm | 14 ++- lib/MIP/Recipes/Install/Mip_scripts.pm | 2 +- t/data/references/qc_regexp_-v1.28-.yaml | 110 +++++++++++++++++++++++ t/mip_core.t | 2 +- t/mip_qccollect.test | 2 +- templates/qc_regexp_-v1.28-.yaml | 110 +++++++++++++++++++++++ 15 files changed, 248 insertions(+), 11 deletions(-) create mode 100644 t/data/references/qc_regexp_-v1.28-.yaml create mode 100644 templates/qc_regexp_-v1.28-.yaml diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c8e3d63c..9392a3ce8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## [develop] - Adds optional trimming of reads with Fastp for the DNA workflow, turned on by default +- Adds automatic fail in analaysisrunstatus for cases where the peddy detects errors in he pedigree ### Tools diff --git a/definitions/rd_dna_panel_parameters.yaml b/definitions/rd_dna_panel_parameters.yaml index a6a68718e..21598dd26 100755 --- a/definitions/rd_dna_panel_parameters.yaml +++ b/definitions/rd_dna_panel_parameters.yaml @@ -1198,7 +1198,7 @@ qccollect_regexp_file: associated_recipe: - qccollect_ar data_type: SCALAR - default: qc_regexp_-v1.27-.yaml + default: qc_regexp_-v1.28-.yaml exists_check: file is_reference: 1 reference: reference_dir diff --git a/definitions/rd_dna_parameters.yaml b/definitions/rd_dna_parameters.yaml index 7b08d55a0..c182716ca 100755 --- a/definitions/rd_dna_parameters.yaml +++ b/definitions/rd_dna_parameters.yaml @@ -2373,7 +2373,7 @@ qccollect_regexp_file: associated_recipe: - qccollect_ar data_type: SCALAR - default: qc_regexp_-v1.27-.yaml + default: qc_regexp_-v1.28-.yaml exists_check: file is_reference: 1 reference: reference_dir diff --git a/definitions/rd_rna_parameters.yaml b/definitions/rd_rna_parameters.yaml index 61239b52d..7e3c8a524 100755 --- a/definitions/rd_rna_parameters.yaml +++ b/definitions/rd_rna_parameters.yaml @@ -1110,7 +1110,7 @@ qccollect_regexp_file: associated_recipe: - qccollect_ar data_type: SCALAR - default: qc_regexp_-v1.27-.yaml + default: qc_regexp_-v1.28-.yaml exists_check: file is_reference: 1 reference: reference_dir diff --git a/documentation/README.md b/documentation/README.md index 6babc51f9..98ede727d 100644 --- a/documentation/README.md +++ b/documentation/README.md @@ -235,4 +235,4 @@ MIP will place any generated data files in the output data directory specified b [Perl]:https://www.perl.org/ [Rank model file]: https://github.com/Clinical-Genomics/MIP/blob/master/templates/rank_model_-v1.34-.ini [SV rank model file]: https://github.com/Clinical-Genomics/MIP/blob/master/templates/svrank_model_-v1.9-.ini -[Qc regexp file]: https://github.com/Clinical-Genomics/MIP/blob/master/templates/qc_regexp_-v1.26-.yaml +[Qc regexp file]: https://github.com/Clinical-Genomics/MIP/blob/master/templates/qc_regexp_-v1.28-.yaml diff --git a/lib/MIP/Cli/Mip/Analyse/Rd_dna.pm b/lib/MIP/Cli/Mip/Analyse/Rd_dna.pm index 9c35f9769..7d0a17c06 100644 --- a/lib/MIP/Cli/Mip/Analyse/Rd_dna.pm +++ b/lib/MIP/Cli/Mip/Analyse/Rd_dna.pm @@ -2110,7 +2110,7 @@ q{Default: hgvs, symbol, numbers, sift, polyphen, humdiv, domains, protein, ccds option( q{qccollect_regexp_file} => ( - cmd_tags => [q{Default: qc_regexp_-v1.25-.yaml}], + cmd_tags => [q{Default: qc_regexp_-v1.28-.yaml}], documentation => q{Regular expression file containing the regular expression to be used for each program}, is => q{rw}, diff --git a/lib/MIP/Cli/Mip/Analyse/Rd_dna_panel.pm b/lib/MIP/Cli/Mip/Analyse/Rd_dna_panel.pm index d0a38a4cc..d547c6574 100644 --- a/lib/MIP/Cli/Mip/Analyse/Rd_dna_panel.pm +++ b/lib/MIP/Cli/Mip/Analyse/Rd_dna_panel.pm @@ -1197,7 +1197,7 @@ q{Default: hgvs, symbol, numbers, sift, polyphen, humdiv, domains, protein, ccds option( q{qccollect_regexp_file} => ( - cmd_tags => [q{Default: qc_regexp_-v1.25-.yaml}], + cmd_tags => [q{Default: qc_regexp_-v1.28-.yaml}], documentation => q{Regular expression file containing the regular expression to be used for each program}, is => q{rw}, diff --git a/lib/MIP/Cli/Mip/Analyse/Rd_rna.pm b/lib/MIP/Cli/Mip/Analyse/Rd_rna.pm index 10aa523bf..0fc588e81 100644 --- a/lib/MIP/Cli/Mip/Analyse/Rd_rna.pm +++ b/lib/MIP/Cli/Mip/Analyse/Rd_rna.pm @@ -817,7 +817,7 @@ q{Default: BaseQualityRankSumTest, ChromosomeCounts, Coverage, DepthPerAlleleByS option( q{qccollect_regexp_file} => ( - cmd_tags => [q{Default: qc_regexp_-v1.25-.yaml}], + cmd_tags => [q{Default: qc_regexp_-v1.28-.yaml}], documentation => q{Regular expression file containing the regular expression to be used for each program}, is => q{rw}, diff --git a/lib/MIP/Qcc_regexp.pm b/lib/MIP/Qcc_regexp.pm index 492428d54..aaca138e6 100644 --- a/lib/MIP/Qcc_regexp.pm +++ b/lib/MIP/Qcc_regexp.pm @@ -212,6 +212,10 @@ q?perl -nae 'my @sexCheckFactor; if ($. > 1) {my @temp = split(/\s+/,$_);push(@s # Get entire sample relation check file $regexp{relation_check}{sample_relation_check} = q?perl -nae 'print $_;' ?; + # Return True if peddy has detected realtionship error + $regexp{ped_check}{peddy_kinship} = +q?perl -F, -ne 'BEGIN {my @ped_checks;} next if $. == 1; push @ped_checks, $F[12]; END{ if ( grep $_ eq q{True}, @ped_checks ) { print q{FAIL}; } else { print q{PASS};} }' ?; + # Return fraction duplicates $regexp{markduplicates}{fraction_duplicates} = q?perl -nae 'if($_=~/Fraction Duplicates\: (\S+)/) {print $1;}' ?; diff --git a/lib/MIP/Recipes/Analysis/Peddy.pm b/lib/MIP/Recipes/Analysis/Peddy.pm index e78eff00f..bdf9a572c 100644 --- a/lib/MIP/Recipes/Analysis/Peddy.pm +++ b/lib/MIP/Recipes/Analysis/Peddy.pm @@ -124,7 +124,7 @@ sub analysis_peddy { use MIP::Program::Bcftools qw{ bcftools_view_and_index_vcf }; use MIP::Program::Peddy qw{ peddy }; use MIP::Recipe qw{ parse_recipe_prerequisites }; - use MIP::Sample_info qw{ set_file_path_to_store set_recipe_metafile_in_sample_info }; + use MIP::Sample_info qw{ set_file_path_to_store set_recipe_metafile_in_sample_info set_recipe_outfile_in_sample_info }; use MIP::Script::Setup_script qw{ setup_script }; ### PREPROCESSING: @@ -250,6 +250,18 @@ sub analysis_peddy { } ); + if ( $outfile_tag eq q{ped_check} ) { + + ## Duplicate ped_check tag one level out in sample_info. To be used for automatic kinship test + set_recipe_outfile_in_sample_info( + { + path => $outfile_path, + recipe_name => $outfile_tag, + sample_info_href => $sample_info_href, + } + ); + } + set_file_path_to_store( { format => q{meta}, diff --git a/lib/MIP/Recipes/Install/Mip_scripts.pm b/lib/MIP/Recipes/Install/Mip_scripts.pm index 3b38f663f..4e8d95a03 100644 --- a/lib/MIP/Recipes/Install/Mip_scripts.pm +++ b/lib/MIP/Recipes/Install/Mip_scripts.pm @@ -89,7 +89,7 @@ sub install_mip_scripts { mip_rd_rna_config.yaml program_test_cmds.yaml qc_eval_metric_-v1.4-.yaml - qc_regexp_-v1.26-.yaml + qc_regexp_-v1.28-.yaml rank_model_-v1.34-.ini svrank_model_-v1.9-.ini } diff --git a/t/data/references/qc_regexp_-v1.28-.yaml b/t/data/references/qc_regexp_-v1.28-.yaml new file mode 100644 index 000000000..419b8102a --- /dev/null +++ b/t/data/references/qc_regexp_-v1.28-.yaml @@ -0,0 +1,110 @@ +--- +bamstats: + percentage_mapped_reads: "perl -nae 'if($_=~/percentage mapped reads:\\s+(\\S+)/) {print $1;last}' " + raw_total_sequences: "perl -nae 'if($_=~/raw total sequences:\\s+(\\S+)/) {print $1;last}' " + reads_mapped: "perl -nae 'if($_=~/reads mapped:\\s+(\\S+)/) {print $1;last}' " +chanjo_sexcheck: + gender: "perl -nae 'if( ($F[0]!~/^#/) && ($F[2] =~/\\S+/) ) {print $F[2];}' " +collecthsmetrics: + data: "perl -nae' if ( ($. ==8) && ($_ =~/(\\S+)/) ) {print $_;last;}' " + header: "perl -nae' if ($_ =~/^BAIT_SET/ ) {print $_;last;}' " +collectmultiplemetrics: + first_of_pair: "perl -nae' if ($_ =~/^FIRST_OF_PAIR/ ) {print $_;last;}' " + header: "perl -nae' if ($_ =~/^CATEGORY/ ) {print $_;last;}' " + pair: "perl -nae' if ($_ =~/^PAIR/ ) {print $_;last;}' " + second_of_pair: "perl -nae' if ($_ =~/^SECOND_OF_PAIR/ ) {print $_;last;}' " +collectmultiplemetricsinsertsize: + data: "perl -nae' if ( ($. ==8) && ($_ =~/(\\S+)/) ) {print $_;last;}' " + header: "perl -nae' if ($_ =~/^MEDIAN_INSERT_SIZE/ ) {print $_;last;}' " +collectrnaseqmetrics: + data: "perl -nae' if ( ($. ==8) && ($_ =~/(\\S+)/) ) {print $_;last;}' " + header: "perl -nae' if ($_ =~/^PF_BASES/ ) {print $_;last;}' " +fastqc_ar: + basic_statistics: "perl -nae' if ($_=~/>>Basic Statistics\\s+(\\S+)/) {print $1;last;}' " + encoding: "perl -nae' if ($_=~/Encoding\\s+(\\S+\\s\\S+\\s\\S+\\s\\S+|\\S+\\s\\S+)/) { my $encoding = $1;$encoding=~s/\\s/\\_/g; print $encoding;last;}' " + gc: "perl -nae' if ($_=~/%GC\\s(\\d+)/) {print $1;last;}' " + kmer_content: "perl -nae' if ($_=~/>>Kmer Content\\s+(\\S+)/) {print $1;last;}' " + overrepresented_sequences: "perl -nae' if ($_=~/>>Overrepresented sequences\\s+(\\S+)/) {print $1;last;}' " + per_base_gc_content: "perl -nae' if ($_=~/>>Per base GC content\\s+(\\S+)/) {print $1;last;}' " + per_base_n_content: "perl -nae' if ($_=~/>>Per base N content\\s+(\\S+)/) {print $1;last;}' " + per_base_sequence_content: "perl -nae' if ($_=~/>>Per base sequence content\\s+(\\S+)/) {print $1;last;}' " + per_base_sequence_quality: "perl -nae' if ($_=~/>>Per base sequence quality\\s+(\\S+)/) {print $1;last;}' " + per_sequence_gc_content: "perl -nae' if ($_=~/>>Per sequence GC content\\s+(\\S+)/) {print $1;last;}' " + per_sequence_quality_scores: "perl -nae' if ($_=~/>>Per sequence quality scores\\s+(\\S+)/) {print $1;last;}' " + sequence_duplication: "perl -nae' if ($_=~/#Total Duplicate Percentage\\s+(\\d+.\\d)/) {print $1;last;}' " + sequence_duplication_levels: "perl -nae' if ($_=~/>>Sequence Duplication Levels\\s+(\\S+)/) {print $1;last;}' " + sequence_length: "perl -nae' if ($_=~/Sequence length\\s(\\d+)/) {print $1;last;}' " + total_number_of_reads: "perl -nae' if ($_=~/Total Sequences\\s(\\d+)/) {print $1;last;}' " +inbreeding_factor: + sample_inbreeding_factor: "perl -nae 'my @inbreedingFactor; if ($. > 1) {my @temp = split(/\\s/,$_);push(@inbreedingFactor, $F[0].\":\".$F[5]); print $inbreedingFactor[0], \"\\t\"; }' " +markduplicates: + fraction_duplicates: "perl -nae 'if($_=~/Fraction Duplicates\\: (\\S+)/) {print $1;}' " +ped_check: + peddy_kinship: "perl -F, -ne 'BEGIN {my @ped_checks;} next if $. == 1; push @ped_checks, $F[12]; END{ if ( grep $_ eq q{True}, @ped_checks ) { print q{FAIL}; } else { print q{PASS};} }' " +pedigree_check: + sample_order: "perl -nae 'if ($_=~/^#CHROM/) {chomp $_; my @line = split(/\\t/,$_); for (my $sample=9;$sample 1) {my @temp = split(/\\s+/,$_);push(@sexCheckFactor,$temp[2].\":\".$temp[4]); print $sexCheckFactor[0], \"\\t\"; }' " +relation_check: + sample_relation_check: "perl -nae 'print $_;' " +star_log: + percentage_uniquely_mapped_reads: "perl -nae 'if(m/Uniquely\\smapped\\sreads\\s%\\s\\|\\t(\\d+\\.\\d+) /xms) {print $1; last;}' " +sv_varianteffectpredictor: + assembly: "perl -nae 'if($_=~/##VEP=/ && $_=~/assembly=(\\S+)/) {print $1;last;}' " + cache: "perl -nae 'if($_=~/##VEP=\\w+\\s+cache=(\\S+)/) {print $1;last;}' " + gencode: "perl -nae 'if($_=~/##VEP=/ && $_=~/gencode=\\S+\\s+(\\d+)/) {print $1;last;}' " + gene_build: "perl -nae 'if($_=~/##VEP=/ && $_=~/genebuild=(\\S+)/) {print $1;last;}' " + hgmd_public: "perl -nae 'if($_=~/##VEP=/ && $_=~/HGMD-PUBLIC=(\\S+)/) {print $1;last;}' " + polyphen: "perl -nae 'if($_=~/##VEP=/ && $_=~/polyphen=(\\S+)/) {print $1;last;}' " + reg_build: "perl -nae 'if($_=~/##VEP=/ && $_=~/regbuild=(\\S+)/) {print $1;last;}' " + sift: "perl -nae 'if($_=~/##VEP=/ && $_=~/sift=sift(\\S+)/) {print $1;last;}' " + version: "perl -nae 'if($_=~/##VEP=\"(\\w+)\"/) {print $1;last;}' " +sv_vcfparser: + version: "perl -nae 'if($_=~/##Software=>Basic Statistics\\s+(\\S+)/) {print $1;last;}' " + encoding: "perl -nae' if ($_=~/Encoding\\s+(\\S+\\s\\S+\\s\\S+\\s\\S+|\\S+\\s\\S+)/) { my $encoding = $1;$encoding=~s/\\s/\\_/g; print $encoding;last;}' " + gc: "perl -nae' if ($_=~/%GC\\s(\\d+)/) {print $1;last;}' " + kmer_content: "perl -nae' if ($_=~/>>Kmer Content\\s+(\\S+)/) {print $1;last;}' " + overrepresented_sequences: "perl -nae' if ($_=~/>>Overrepresented sequences\\s+(\\S+)/) {print $1;last;}' " + per_base_gc_content: "perl -nae' if ($_=~/>>Per base GC content\\s+(\\S+)/) {print $1;last;}' " + per_base_n_content: "perl -nae' if ($_=~/>>Per base N content\\s+(\\S+)/) {print $1;last;}' " + per_base_sequence_content: "perl -nae' if ($_=~/>>Per base sequence content\\s+(\\S+)/) {print $1;last;}' " + per_base_sequence_quality: "perl -nae' if ($_=~/>>Per base sequence quality\\s+(\\S+)/) {print $1;last;}' " + per_sequence_gc_content: "perl -nae' if ($_=~/>>Per sequence GC content\\s+(\\S+)/) {print $1;last;}' " + per_sequence_quality_scores: "perl -nae' if ($_=~/>>Per sequence quality scores\\s+(\\S+)/) {print $1;last;}' " + sequence_duplication: "perl -nae' if ($_=~/#Total Duplicate Percentage\\s+(\\d+.\\d)/) {print $1;last;}' " + sequence_duplication_levels: "perl -nae' if ($_=~/>>Sequence Duplication Levels\\s+(\\S+)/) {print $1;last;}' " + sequence_length: "perl -nae' if ($_=~/Sequence length\\s(\\d+)/) {print $1;last;}' " + total_number_of_reads: "perl -nae' if ($_=~/Total Sequences\\s(\\d+)/) {print $1;last;}' " +inbreeding_factor: + sample_inbreeding_factor: "perl -nae 'my @inbreedingFactor; if ($. > 1) {my @temp = split(/\\s/,$_);push(@inbreedingFactor, $F[0].\":\".$F[5]); print $inbreedingFactor[0], \"\\t\"; }' " +markduplicates: + fraction_duplicates: "perl -nae 'if($_=~/Fraction Duplicates\\: (\\S+)/) {print $1;}' " +ped_check: + peddy_kinship: "perl -F, -ne 'BEGIN {my @ped_checks;} next if $. == 1; push @ped_checks, $F[12]; END{ if ( grep $_ eq q{True}, @ped_checks ) { print q{FAIL}; } else { print q{PASS};} }' " +pedigree_check: + sample_order: "perl -nae 'if ($_=~/^#CHROM/) {chomp $_; my @line = split(/\\t/,$_); for (my $sample=9;$sample 1) {my @temp = split(/\\s+/,$_);push(@sexCheckFactor,$temp[2].\":\".$temp[4]); print $sexCheckFactor[0], \"\\t\"; }' " +relation_check: + sample_relation_check: "perl -nae 'print $_;' " +star_log: + percentage_uniquely_mapped_reads: "perl -nae 'if(m/Uniquely\\smapped\\sreads\\s%\\s\\|\\t(\\d+\\.\\d+) /xms) {print $1; last;}' " +sv_varianteffectpredictor: + assembly: "perl -nae 'if($_=~/##VEP=/ && $_=~/assembly=(\\S+)/) {print $1;last;}' " + cache: "perl -nae 'if($_=~/##VEP=\\w+\\s+cache=(\\S+)/) {print $1;last;}' " + gencode: "perl -nae 'if($_=~/##VEP=/ && $_=~/gencode=\\S+\\s+(\\d+)/) {print $1;last;}' " + gene_build: "perl -nae 'if($_=~/##VEP=/ && $_=~/genebuild=(\\S+)/) {print $1;last;}' " + hgmd_public: "perl -nae 'if($_=~/##VEP=/ && $_=~/HGMD-PUBLIC=(\\S+)/) {print $1;last;}' " + polyphen: "perl -nae 'if($_=~/##VEP=/ && $_=~/polyphen=(\\S+)/) {print $1;last;}' " + reg_build: "perl -nae 'if($_=~/##VEP=/ && $_=~/regbuild=(\\S+)/) {print $1;last;}' " + sift: "perl -nae 'if($_=~/##VEP=/ && $_=~/sift=sift(\\S+)/) {print $1;last;}' " + version: "perl -nae 'if($_=~/##VEP=\"(\\w+)\"/) {print $1;last;}' " +sv_vcfparser: + version: "perl -nae 'if($_=~/##Software= Date: Tue, 20 Feb 2024 15:24:16 +0100 Subject: [PATCH 2/5] adds sex_check --- CHANGELOG.md | 3 ++- lib/MIP/Qcc_regexp.pm | 6 +++++- lib/MIP/Recipes/Analysis/Peddy.pm | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9392a3ce8..df2dbebaa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,8 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## [develop] - Adds optional trimming of reads with Fastp for the DNA workflow, turned on by default -- Adds automatic fail in analaysisrunstatus for cases where the peddy detects errors in he pedigree +- Adds automatic fail in analaysisrunstatus for cases where the peddy detects errors in the pedigree +- Adds automatic fail in analaysisrunstatus for cases where the peddy detects a discrepancy between the given and calculated gender ### Tools diff --git a/lib/MIP/Qcc_regexp.pm b/lib/MIP/Qcc_regexp.pm index aaca138e6..05d696c21 100644 --- a/lib/MIP/Qcc_regexp.pm +++ b/lib/MIP/Qcc_regexp.pm @@ -212,10 +212,14 @@ q?perl -nae 'my @sexCheckFactor; if ($. > 1) {my @temp = split(/\s+/,$_);push(@s # Get entire sample relation check file $regexp{relation_check}{sample_relation_check} = q?perl -nae 'print $_;' ?; - # Return True if peddy has detected realtionship error + # Return FAIL if peddy has detected realtionship error $regexp{ped_check}{peddy_kinship} = q?perl -F, -ne 'BEGIN {my @ped_checks;} next if $. == 1; push @ped_checks, $F[12]; END{ if ( grep $_ eq q{True}, @ped_checks ) { print q{FAIL}; } else { print q{PASS};} }' ?; + # Return FAIL if peddy has detected an error in the given gender + $regexp{sex_check}{peddy_sexcheck} = +q?perl -F, -lne 'BEGIN {my @sex_checks;} next if $. == 1; push @sex_checks, $F[7]; END{ if ( grep $_ eq q{True}, @sex_checks ) { print q{FAIL}; } else { print q{PASS};} }'?; + # Return fraction duplicates $regexp{markduplicates}{fraction_duplicates} = q?perl -nae 'if($_=~/Fraction Duplicates\: (\S+)/) {print $1;}' ?; diff --git a/lib/MIP/Recipes/Analysis/Peddy.pm b/lib/MIP/Recipes/Analysis/Peddy.pm index bdf9a572c..4809b4a49 100644 --- a/lib/MIP/Recipes/Analysis/Peddy.pm +++ b/lib/MIP/Recipes/Analysis/Peddy.pm @@ -250,7 +250,7 @@ sub analysis_peddy { } ); - if ( $outfile_tag eq q{ped_check} ) { + if ( $outfile_tag eq q{ped_check} || q{sex_check} ) { ## Duplicate ped_check tag one level out in sample_info. To be used for automatic kinship test set_recipe_outfile_in_sample_info( From eadb9653f695a564e5214e8147e58c7a5f429810 Mon Sep 17 00:00:00 2001 From: jemten Date: Tue, 20 Feb 2024 15:54:36 +0100 Subject: [PATCH 3/5] update regexp_file --- t/data/references/qc_regexp_-v1.28-.yaml | 2 ++ templates/qc_regexp_-v1.28-.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/t/data/references/qc_regexp_-v1.28-.yaml b/t/data/references/qc_regexp_-v1.28-.yaml index 419b8102a..8e928541a 100644 --- a/t/data/references/qc_regexp_-v1.28-.yaml +++ b/t/data/references/qc_regexp_-v1.28-.yaml @@ -47,6 +47,8 @@ plink_sexcheck: sample_sexcheck: "perl -nae 'my @sexCheckFactor; if ($. > 1) {my @temp = split(/\\s+/,$_);push(@sexCheckFactor,$temp[2].\":\".$temp[4]); print $sexCheckFactor[0], \"\\t\"; }' " relation_check: sample_relation_check: "perl -nae 'print $_;' " +sex_check: + peddy_sexcheck: "perl -F, -lne 'BEGIN {my @sex_checks;} next if $. == 1; push @sex_checks, $F[7]; END{ if ( grep $_ eq q{True}, @sex_checks ) { print q{FAIL}; } else { print q{PASS};} }'" star_log: percentage_uniquely_mapped_reads: "perl -nae 'if(m/Uniquely\\smapped\\sreads\\s%\\s\\|\\t(\\d+\\.\\d+) /xms) {print $1; last;}' " sv_varianteffectpredictor: diff --git a/templates/qc_regexp_-v1.28-.yaml b/templates/qc_regexp_-v1.28-.yaml index 419b8102a..8e928541a 100644 --- a/templates/qc_regexp_-v1.28-.yaml +++ b/templates/qc_regexp_-v1.28-.yaml @@ -47,6 +47,8 @@ plink_sexcheck: sample_sexcheck: "perl -nae 'my @sexCheckFactor; if ($. > 1) {my @temp = split(/\\s+/,$_);push(@sexCheckFactor,$temp[2].\":\".$temp[4]); print $sexCheckFactor[0], \"\\t\"; }' " relation_check: sample_relation_check: "perl -nae 'print $_;' " +sex_check: + peddy_sexcheck: "perl -F, -lne 'BEGIN {my @sex_checks;} next if $. == 1; push @sex_checks, $F[7]; END{ if ( grep $_ eq q{True}, @sex_checks ) { print q{FAIL}; } else { print q{PASS};} }'" star_log: percentage_uniquely_mapped_reads: "perl -nae 'if(m/Uniquely\\smapped\\sreads\\s%\\s\\|\\t(\\d+\\.\\d+) /xms) {print $1; last;}' " sv_varianteffectpredictor: From 797baf1d9f3a793e927efc3694b36f0f44bb6024 Mon Sep 17 00:00:00 2001 From: jemten Date: Tue, 20 Feb 2024 16:36:08 +0100 Subject: [PATCH 4/5] reverting vep update --- templates/mip_install_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/mip_install_config.yaml b/templates/mip_install_config.yaml index 555b14915..84f811c9a 100644 --- a/templates/mip_install_config.yaml +++ b/templates/mip_install_config.yaml @@ -260,7 +260,7 @@ container: vep: executable: vep: - uri: docker.io/ensemblorg/ensembl-vep:release_110.1 + uri: docker.io/ensemblorg/ensembl-vep:release_107.0 vcf2cytosure: executable: vcf2cytosure: From dc66fad3fad21f06e7968886e372490f60f2475c Mon Sep 17 00:00:00 2001 From: Anders Jemt Date: Wed, 21 Feb 2024 09:22:58 +0100 Subject: [PATCH 5/5] Update lib/MIP/Qcc_regexp.pm Co-authored-by: Peter Pruisscher <57712924+peterpru@users.noreply.github.com> --- lib/MIP/Qcc_regexp.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MIP/Qcc_regexp.pm b/lib/MIP/Qcc_regexp.pm index 05d696c21..d43f08676 100644 --- a/lib/MIP/Qcc_regexp.pm +++ b/lib/MIP/Qcc_regexp.pm @@ -212,7 +212,7 @@ q?perl -nae 'my @sexCheckFactor; if ($. > 1) {my @temp = split(/\s+/,$_);push(@s # Get entire sample relation check file $regexp{relation_check}{sample_relation_check} = q?perl -nae 'print $_;' ?; - # Return FAIL if peddy has detected realtionship error + # Return FAIL if peddy has detected relationship error $regexp{ped_check}{peddy_kinship} = q?perl -F, -ne 'BEGIN {my @ped_checks;} next if $. == 1; push @ped_checks, $F[12]; END{ if ( grep $_ eq q{True}, @ped_checks ) { print q{FAIL}; } else { print q{PASS};} }' ?;