File Info

Filename
.command.sh
Full Path
s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/b2/03d3104388ece22325e6caf90166fe/.command.sh
Size
683 bytes
Attempt
#!/bin/bash -Ceuo pipefail
bcftools norm \
    -a -m -both \
    -f Homo_sapiens_assembly38.fasta \
    Sig_18_Blood.tumor_genotyped.vcf.gz \
    -Oz -o tumor_norm.vcf.gz

bcftools index -t tumor_norm.vcf.gz

transfer_caller_ad.py \
    --vcf Sig_18_Blood.prefiltered.vcf.gz \
    --tumor-vcf tumor_norm.vcf.gz \
    --output Sig_18_Blood.readcount_annotated.vcf.gz

tabix -p vcf Sig_18_Blood.readcount_annotated.vcf.gz

cat <<-END_VERSIONS > versions.yml
"NFCORE_SAREK:SAREK:BAM_CHIP_DETECTION:TRANSFER_CALLER_AD":
    bcftools: $(bcftools --version 2>&1 | head -n1 | sed 's/^.*bcftools //; s/ .*//')
    cyvcf2: $(python -c "import cyvcf2; print(cyvcf2.__version__)")
END_VERSIONS