align using file.ht2
1
0
Entering edit mode
19 months ago
m90 ▴ 30

I downloaded in my terminal indexed file of UCSC hg19 and when I uncompressed it, I found two files genome.5.ht2 and genome.8.ht2. Every time I want to align my samples at indexed file this error show up

[e::bwa_idx_load_from_disk] fail to locate the index files command exited with non-zero status 1


So, my question is: Which one of two files I should use and how use file.ht2 in alignment?

ht2 hisat2 • 971 views
0
Entering edit mode
19 months ago
Wakala ▴ 10

You should put the index in a separate folder and when you use hisat2 you should enter the index folder not the index file, just like this:

hisat2 -p 10 -x dir/genome -1 fq -2 fq

0
Entering edit mode

it didnt work still have the same problem because uncompressed folder has two files that i dont know which one of them i should assign in my path

0
Entering edit mode

(ERR): "/home/ngs/workdir/hg19" does not exist Exiting now ...

0
Entering edit mode

You can try /home/ngs/workdir/hg19/genome. Also, when you use a software, read it document is a good idea, just use command 'hisat -h', and it will solve most of your confusion.

0
Entering edit mode

<ht2-idx> Index filename prefix (minus trailing .X.ht2).

0
Entering edit mode

0
Entering edit mode

This is wha I downloaded before when I used hisat2 in sequence alignment.