Deepvariant and input CRAM files
0
0
Entering edit mode
9 months ago

Good day,

Could anyone please advise how to start DeepVarian if I have CRAM instead of BAM files ?

Deepvariant CRAM • 711 views
ADD COMMENT
0
Entering edit mode

What happened when you tried to use a CRAM? Did DeepVariant throw an error?

ADD REPLY
0
Entering edit mode

Hello, I'm using syntax from official DeepVariant github page, so there should not be the error, that's why I thought it because of my cram file:

$ PWD=/project_folder
$ INPUT_DIR="${PWD}/cram_folder"
$ mkdir -p ${INPUT_DIR}
$ OUTPUT_DIR="${PWD}/result_folder"
$ mkdir -p "${OUTPUT_DIR}"
$ sudo docker run \
> -v "${INPUT_DIR}":"/input" \
> -v "${OUTPUT_DIR}":"/output" \
> google/deepvariant:"${BIN_VERSION}" \
> /opt/deepvariant/bin/run_deepvariant \
> --model_type=WGS \
> ref=/home/folder_with_ref/some_ref.fa \
> reads=/input/file.cram \
> --output_vcf=/output/output.vcf.gz \
> --output_gvcf=/output/output.g.vcf.gz \
> --num_shards=5
docker: invalid reference format.
See 'docker run --help'.
ADD REPLY
0
Entering edit mode

Error in your case is saying:

docker: invalid reference format

See if any of the suggestions here help:

https://www.positioniseverything.net/docker-invalid-reference-format/

ADD REPLY
0
Entering edit mode

https://github.com/google/deepvariant says right in first line that

DeepVariant is a deep learning-based variant caller that takes aligned reads (in BAM or CRAM format), produces pileup image tensors from them, classifies each tensor using a convolutional neural network, and finally reports the results in a standard VCF or gVCF file.

Your CRAM file will need to be sorted and indexed. It will likely need to exist on disk (can't be streamed according to this page).

ADD REPLY
0
Entering edit mode

hello, my cram file sorted and indexed, but still not working ((

ADD REPLY

Login before adding your answer.

Traffic: 1680 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6