Entering edit mode
5.3 years ago
manubiomed20
▴
10
USED BWA VERSION 0.7 FOR INDEX.
soon after I used the command samtools faidex
and got the following message:
Could not build fai index.
I noticed a fasta.sa
file that in no other indexing before this one was generated and fa.fai
was not generated.
How can I solve this problem?
Hello,
please take some more time to present your post better. Using the format bar and choose the right post tags are some of the easy action. This time I've done it for you.
Could you please post the exact command you were using? Also the output of
head your.fa
would be useful for us.Thanks.
fin swimmer
Is this the whole error message or just a part of it?
I used this command:
and then I used the command:
I got these files:
Do not add an answer unless you're answering the top level post. Please delete this comment and add it as a reply at the appropriate location.
I used this command :
I got this :
and then I used this command :
I got this :
and then I used this command
andI got this
contents don't make sense. Those are not commands you used but error messages.It looks like your genome indexes were built correctly. So what alignment commands did you use?Edit: See below.Please don't post new questions using
SUBMIT ANSWER
.If you need to create a new
.fai
index for the genome file you could directly dosamtools faidx yourfile.fa
. If it complains that the file needs to be zipped then use @finswimmer's answer below tobgzip
.the command is
Looking at your original posting carefully it looks like the directory you are trying to work in is marked as
read-only
sobwa
is not able to write the index files in that directory.So you should use an area/directory where you have write permissions. Use
-p
option to specify that location.Please use the formatting bar (especially the
code
option) to present your post better. You can use backticks for inline code (`text` becomestext
), or select a chunk of text and use the highlighted button to format it as a code block. I've done it for you this time.