Hello, I am having trouble when doing variant calling with samtools. I am getting only the header an no variants. If I would instead use Freebayes, I do get a lot of variables, and with Gatk, I get just a few. What can the problem be? Do I have to use different formats of bam input files, or different reference genome formats?
Are you developing a tool for galaxy? Your question looks like a more general bioinformatics question and not galaxy related. On a bio-it forum you would get a better and much faster answer.
Nevertheless, as far as my knowledge goes your command is not correct. You are missing a reference (-f) for mpileup. (I was blind or something )
Also try to use bcftools mpileup because samtools mpileup is deprecated.
Thank you for your response! I am using a -f β$Re1β for a hg38 reference genome. I have seen that page, but it does not give me a hint on why is my command leading to no variants being found
There are some differences between freebayes and samtools in default settings like minimum quality, minimum depth etc. You would need to compare it and play around with it to get the desired result. Also dont necessarily expect the same output, it are two different tools.
I personally only have used freebayes and canβt help you much more with it. Maybe someone else can give an better answer but this forum is pretty galaxy specific so you may get an better answer somewhere else.