This is a test version of Biostars. For the public version, visit https://www.biostars.org.
bcftools mipileup error: format error, unexpected A at line 1

I had a problem using bcftools. After using the command line(below): there is some error in my results. The error message stated: "Note: none of --samples-file, --ploidy or --ploidy-file given, assuming all sites are diploid

[E::fai_build_core] Format error, unexpected "A" at line 4 

Failed to read from standard input: unknown file type"

 bcftools mpileup -f A.fasta out.bam | bcftools call -mv -Ob -o out.bcf

there is problem in my index file? i using bwa tool to make index file.

bwa index A.fasta

enter image description here

This is my index file (A.fasta)

Thank you in advance for your help.

bcftools

i using bwa tool to make index file.

bcftools wants an index created with samtools faidx (describe the number of chromosomes and the lengths of the fasta lines) , not bwa index (index for mapping with bwa)

My FASTA file was not downloaded from a database. My fasta file was created by converting a txt file to FASTA format. How can I resolve these problems?

My fasta file was created by converting a txt file to FASTA format.

what does that mean ?

How can I resolve these problems?

see the second link

You can usually fix it with the dos2unix command

0 answers

No answers yet.

Log in to answer this question.