I am newbie to linux and NGS. Whle trying to build an index with hisat2 for my project, im getting following error:
"Error: could not open 2.fa
Total time for call to driver() for forward index: 00:00:00
Error: Encountered internal HISAT2 exception (#1)
Command: hisat2-build --wrapper basic-0"
the command and output of the terminal is as follows:
./hisat2-build /data/memona/reference/1.fa,2.fa,3.fa,4.fa,5.fa,6.fa,7.fa,8.fa,9.fa,10.fa,11.fa,12.fa,13.fa hisat_index
Settings:
Output files: "hisat_index.*.ht2"
Line rate: 6 (line is 64 bytes)
Lines per side: 1 (side is 64 bytes)
Offset rate: 4 (one in 16)
FTable chars: 10
Strings: unpacked
Local offset rate: 3 (one in 8)
Local fTable chars: 6
Local sequence length: 57344
Local sequence overlap between two consecutive indexes: 1024
Endianness: little
Actual local endianness: little
Sanity checking: disabled
Assertions: disabled
Random seed: 0
Sizeofs: void*:8, int:4, long:8, size_t:8
Input files DNA, FASTA:
/data/memona/reference/1.fa
2.fa
3.fa
4.fa
5.fa
6.fa
7.fa
8.fa
9.fa
10.fa
11.fa
12.fa
13.fa
Error: could not open 2.fa
Total time for call to driver() for forward index: 00:00:00
Error: Encountered internal HISAT2 exception (#1)
Command: hisat2-build --wrapper basic-0 /data/memona/reference/1.fa,2.fa,3.fa,4.fa,5.fa,6.fa,7.fa,8.fa,9.fa,10.fa,11.fa,12.fa,13.fa hisat_index
the hisat2-build file have all the permissions
-rwxrwxrwx 1 memona memona 2807 Mar 12 2016 hisat2-build
need kind help to resolve the issue
thank you so much for the kind guidance. it really worked to give me the 8 index output files. but name of the output files are :
2.fa.1.ht2, 2.fa.2.ht2, v, 2.fa.3.ht2, 2.fa.4.ht2, 2.fa.5.ht2, 2.fa.6.ht2, 2.fa.7.ht2, 2.fa.8.ht2
rather to the name specified in command "hisat_index"...
is that index is OK ...???
I indeed made a mistake as I did not red the Hisat2 doc before answering. Hisat2 expects a comma-separated list of file, and my previous answer was a space-separated list of files. That is why the previous command produced many references.
Parameters expansion with curly brackets produces a space-separated list.
Will result in:
To make it comma-separated one can use translate command:
Which leads to:
Would you try the following:
If anyone see a more elegant way to do it, feel free to correct me.
thank you sooo much it for your kind guidance and precious time. It has worked out in index output files. but now i am facing problem in alignment with HISAT2. i am using following command
and getting this error.:
-p 64 is not a file but number of threads im using. further i want all the output files in hisatresult directory as is spesified in command line.. kindly help me to resolve the issue..
If an answer was helpful you should upvote it, if the answer resolved your question you should mark it as accepted.