The fai is an index for the sequences contained in a fasta file.This kind of index helps the programs to quickly retrieve a (sub)sequences for a given region.
It seems that your tool automatically generated it as it didn't exist.
Each line in this file contains:
the name of the sequence
the length of the sequence
the offset of the first base in the file
the number of bases in each fasta line
the number of bytes in each fasta line
so, if you want to get the base at index "beg" for the sequence defined in "val", the program will seek the following offset (code from samtool):
val.offset + beg / val.line_blen * val.line_len + beg % val.line_blen
Is it possible that you have an extra space after 'chr1' in your fasta file?
no it is not possible i check it but there is still the same problem
Please try the verion in the latest release (2.13). If you were using a version from the dev. repository, this may fix your issue.