Skip to content

Commit

Permalink
Validate VCF First Before Preprocessing
Browse files Browse the repository at this point in the history
  • Loading branch information
jylee-bcm committed Nov 20, 2024
1 parent 2f99496 commit c3b4bcf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,19 @@ showUsage()
showVersion()
validateInputParams()

process VALIDATE_VCF {
container 'quay.io/biocontainers/vcftools:0.1.16--pl5321hdcf5f25_11'

input:
path vcf

output:
path "$vcf", emit: vcf

"""
vcf-validator $vcf
"""
}

// Process to handle the VCF file
process NORMALIZE_VCF {
Expand Down Expand Up @@ -654,7 +667,8 @@ workflow PHRANK_SCORING {
}

workflow {
NORMALIZE_VCF(params.input_vcf)
VALIDATE_VCF(params.input_vcf)
NORMALIZE_VCF(VALIDATE_VCF.out.vcf)
BUILD_REFERENCE_INDEX()

VCF_PRE_PROCESS(
Expand Down
Empty file added test.txt
Empty file.

0 comments on commit c3b4bcf

Please sign in to comment.