gatk error: reference file does not exist
1
1
Entering edit mode
26 days ago
parinv ▴ 50

hello, I am trying to run gatk cnv caller tutorial and I am facing an error with respect to reference fasta file. I have installed gatk using conda. The code I am trying to run is:

gatk PreprocessIntervals \
    -R ~/tutorial/GRCh38/resources_broad_hg38_v0_Homo_sapiens_assembly38.fasta
    --padding 0 \
    -L ~/tutorial/tutorial_11684/gcnv-chr20XY-contig.list \
    -imr OVERLAPPING_ONLY \
    -O ~/output/chr20XY.interval_list

and the error i am getting is:

A USER ERROR has occurred: The specified fasta file (file:///home/username/tutorial/GRCh38/resources_broad_hg38_v0_Homo_sapiens_assembly38.fasta) does not exist.

Please give some suggestions if there is any error in the code.

preprocessinterval linux gatk • 305 views
ADD COMMENT
1
Entering edit mode

well, the error is quite clear. the path to the file /home/username/tutorial/GRCh38/resources_broad_hg38_v0_Homo_sapiens_assembly38.fasta is wrong. you can check this using

ls /home/username/tutorial/GRCh38/resources_broad_hg38_v0_Homo_sapiens_assembly38.fasta

Please give some suggestions

use the correct path.

ADD REPLY
0
Entering edit mode

i checked and it is working fine without any error. I tried changing the permissions of the file and found error:

A USER ERROR has occurred: Couldn't read file file:///home/username/tutorial/GRCh38/resources_broad_hg38_v0_Homo_sapiens_assembly38.fasta. Error was: File exists but is not readable: file:///home/username/tutorial/GRCh38/resources_broad_hg38_v0_Homo_sapiens_assembly38.fasta.fai

ADD REPLY
1
Entering edit mode
11 days ago
Jeremy ▴ 160

Have you checked to see if the file is readable? You can use

ls -lh

If it isn't readable, you can make it so using chmod. For example, you could use

chmod a+r <your_file>
ADD COMMENT
1
Entering edit mode

thank you. This helped in solving the error.

ADD REPLY

Login before adding your answer.

Traffic: 1317 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