Prepare DRAGEN QC metrics files to be included in a VCF case
When creating Emedgene cases that start from VCF, you can create a browsable DRAGEN QC report from the DRAGEN metrics files. Due to security restrictions, CSV files are not directly ingested, but they can be included when packaged in a TAR file.
Navigate to local directory containing metrics files for a specific sample.
Define sample name as a variable
samplename="NA12878"
.Combine the
find
andtar
commands to package the files into a tar.gz file with the following extension*.metrics.tar.gz
. Command to find files matching the required patterns:
find . \( -name "*.csv" -o -name "*.tsv" -o -name "*.counts" -o -name "*.counts.gz" -o -name "*.counts.gc-corrected" -o -name "*.counts.gc-corrected.gz" -o -name "*.ploidy.vcf" -o -name "*.repeats.vcf" -o -name "*.ploidy.vcf.gz" -o -name "*.repeats.vcf.gz" \) | xargs tar -czf "${samplename}.metrics.tar.gz"
Upload the metrics.tar.gz file to the storage location used for creating cases.
Add metrics.tar.gz to case creation API JSON payload using the corresponding storage ID. Ensure that if the extension is not contained in the filename (e.g. files from BaseSpace) that
"sample_type": "dragen-metrics"
is set within the JSON payload.
DRAGEN report link is then available once your case has been delivered.
Last updated
Was this helpful?