I tried to annotate chromosome with prefix "chr" in a fasta file like:
sed 's/^>/>chr/' human_g1k_v37.fasta > human_g1k_v37.annotate.fasta
However, after that, I failed to view header of the new fasta file:
samtools view -H human_g1k_v37.annotate.fasta >>> [main_samview] fail to read the header from "human_g1k_v37.annotate.fasta".
What might potentially cause the error and if there's any alternative way to annotate a fasta file? Thanks.