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 22, 2024
1 parent 4cb6c27 commit c46ce70
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 c46ce70

Please sign in to comment.