Thank you so much for your feedback.
The main issue I do have is that I am not sure if this tool is the correct one to solve my problem, or if there is any other better approach.
As I said, I have the human fna and fna.fai files. There is a variant there that I know where is it, and I do have the primers and the start/end information for the specific amplicon. What I want/need to do , is to extract the fasta sequence for that amplicon using the information I do have.
I'm not sure if this is more clear now (I hope!)
Thank you again
samtools faidxsimply fetches sequences using coordinates. It can't find sequences in a file that match a certain sequence. You will need to first align the data and get the coordinates you need before fetching them.If I am mistaken then perhaps provide some additional detail about what you have.