HKU-BAL / Clair3

Clair3 - Symphonizing pileup and full-alignment for high-performance long-read variant calling
238 stars 27 forks source link

No vcf output from clair3 run #333

Closed lynnjo closed 1 month ago

lynnjo commented 1 month ago

I have setup clair3 to run via docker and while the output from the command shows processing happening, no output file is written. The BAM file I'm using was created by aligning illumina short reads against a reference fasta file.

Here is my script to run clair3 via docker:

INPUT_DIR=/workdir/lcj34/phg_v2/clair3/p39top39BamFastas
OUTPUT_DIR=/workdir/lcj34/phg_v2/clair3/p39top39_clair3Output
THREADS="10"

docker1 run \
        -v ${INPUT_DIR}/:/input/ \
        -v ${OUTPUT_DIR}/:/output/ \
        hkubal/clair3:latest \
        /opt/bin/run_clair3.sh \
        --ref_fn=/input/P39.fa \
        --bam_fn=/input/P39toP39MergedBams.sorted.bam \
        --ctg_name="chr9" \
        --output=${OUTPUT_DIR} \
        --platform="ilmn" \
        --model_path="/opt/models/ilmn" \
        --threads=${THREADS}

I"ve attached the output file from the run. I don't see any errors and it appears to be processing the data. At the end it says "Finished calling, output file: ..." What would prevent the vcf file from being created ? I ran this twice with the same result.

clair3p39top39_output.txt

lynnjo commented 1 month ago

Looking more at your documentation, the Option 3. Bioconda says "For using Clair3 with Illumina data, install clair3-illumina" which is "conda install bioconda::clair3-illumina". I used Docker above. Is there something I need to add to the docker command above besides setting the platform and model_path to allow it to process a BAM created from illumina short-reads?

zhengzhenxian commented 1 month ago

@lynnjo

In your command, the ${OUTPUT_DIR} is mounted in /output in your docker image, pls try to use the --output=/output instead of --output=${OUTPUT_DIR}.

lynnjo commented 1 month ago

Thank you - that was it!