Skip to content

Commit

Permalink
Test the number of missing variants in the accessioning in relation t…
Browse files Browse the repository at this point in the history
…o the number of report SVs after removing duplicates.
  • Loading branch information
tcezard committed Oct 21, 2024
1 parent 654217b commit 365f03d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eva_submission/nextflow/accession_and_load.nf
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,9 @@ process accession_vcf {
# If accessioning fails due to missing variants, but the only missing variants are structural variants,
# then we should treat this as a success from the perspective of the automation.
# TODO revert once accessioning pipeline properly registers structural variants
[[ \$(grep -o 'Skipped processing structural variant' ${params.logs_dir}/${log_filename}.log | wc -l) \
# First grep finds the "Structural variant" reported by the accessioning process, remove the duplicates and count
# Second grep count the reported number of missing variants in the Accessioning report
[[ \$(grep 'Skipped processing structural variant' ${params.logs_dir}/${log_filename}.log | cut -d ' ' -f 10- | sort -u| wc -l) \
== \$(grep -oP '\\d+(?= unaccessioned variants need to be checked)' ${params.logs_dir}/${log_filename}.log) ]]
echo "done" > ${accessioned_filename}.tmp
"""
Expand Down

0 comments on commit 365f03d

Please sign in to comment.