[ERRO] read faidx: open file.fasta.seqkit.fai: permission denied
1
0
Entering edit mode
21 months ago

Hello, I'm trying to extract a specific nucleotide region from a fasta sequence of a chomosome. I created a fai index using:

$ seqkit faidx file.fasta

Then I run:

$ seqkit subseq -r 1268437:1269323 file.fasta

And this is the error:

[ERRO] read faidx: open file.fasta.seqkit.fai: permission denied

Do you have an idea how to resolve it?

Thank you in advance

index seqkit subseq fai • 1.2k views
ADD COMMENT
0
Entering edit mode

There were no errors when you did the faidx indexing? Do you see file file.fasta.seqkit.fai created in this directory? Does it have read permissions by the account you are using?

ADD REPLY
0
Entering edit mode

When I run

$ seqkit faidx file.fasta

The output is:

[INFO] create FASTA index for file.fasta

In the same directory I see a file fasta.fai with reading permissions, but I don't have a file.fasta.seqkit.fai

ADD REPLY
0
Entering edit mode

Are you performing this operation within your home directory? (~)

ADD REPLY
0
Entering edit mode

No, I'm performing it in the directory in which I have the files

ADD REPLY
1
Entering edit mode
21 months ago
GenoMax 148k

Looks like you can simply use faidx to extract the subsequence you need per usage page here.

$ seqkit faidx file.fasta name_you_want_to_extract:1268437-1269323 
ADD COMMENT
0
Entering edit mode

Thank you, it worked!

ADD REPLY

Login before adding your answer.

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