Hello everyone,

I am interested in a sequence ranging from 111614 to 111868 in a fasta sequence (scaffold sequence)

I am trying to use samtools faidx to tkae this sequence but it doesn't work and keep returning me :

[fai_fetch] Warning - Reference 111-555 not found in FASTA file, returning empty sequence

After seeing some other users with the same problems, i tried to change the header name for it to contain no space (like ">scaffoldX") but it still doesn't work

Here is the exact command I type (my fasta file only contain the sequence of my scaffold) :

samtools faidx scaffold.fasta 111614-111868

Thanks a lot for your help.
Shouldn't it be "samtools faidx scaffold.fasta scaffoldX:111614-111868"?