To answer the original post, simply running
% freebayes -p 1 -f reference.fasta alignments.bam
is sufficient to generate haploid SNP, indel, and complex allele calls using freebayes. The method is described in arXiv:1207.3907, "Haplotype-based variant detection from short-read sequencing."
If anyone has issues with this method, please report them to me (via email) or to the freebayes mailing list.
Happy variant detecting.
Unconfigured Ad
Collapse
X
-
I'm the author of freebayes.Originally posted by garwuf View PostI gave quite an extensive try to Freebayes recently, and wouldn't recommend it in its current state. I have tried it on several bacterial datasets (of 4 - 6 Mb size), which were previously evaluated with Gigabayes, Samtools and GATK, and found that Freebayes reports nonexisting snps while missing well-defined ones. In fact, not a single snp was correctly predicted, no matter which parameters have been used.
Then, after reading the above post of d17, I decided to try Freebayes on smaller reference. I have generated two artificial sets of reads to a 128 kb template with 10 variant sites of different complexity. One set provided 50x , another one 400x coverage, and the alignment was performed with bwa. On this alignments, Freebayes has generated sane vcf output: no false positives, several snps were detected correctly. Still, the efficiency was quite low: for 50x dataset, it never reported more than 3 variants out of 10, and for 400x dataset it was 4-5 depending on settings. For comparison, Samtools 1.18 detected all 10 variants even on 50x dataset.
To my mind, Freebayes may have some problem with handling cashed sequence data, that's why it works with kb-sized but fails on Mb-sized references. On the other hand, it's still being developed. Maybe eventually these bugs will be fixed.
Did you submit bug reports about these issues? We have been using freebayes for haploid detection without issue.
When you say that freebayes was reporting many false SNPs, was this before or after you filtered the output on the QUAL field? It is our expectation that users filter the output data, and the output will include many SNPs with very low reported quality so as to allow filtering at any desired level.
The test setup you are describing is very similar to one we use during development, but your results are dramatically different.
Also, I am not aware of any existing issues with larger genomes, as we typically work with human samples, but again, I will be able to resolve anything with a bug report.
It's likely that if other users reported the same issues they have been resolved in the time since you tested.
Leave a comment:
-
@Kasycas and @jgibbons1.
Its highly possible you wrote/found a script to map your SNPs on to genes (or find out synonymous and non-syn mutations.
I use snpEFF program for that. All you need is your VCF file and gene annotations in GFF format.
Shamefully agree, i wrote a (inferior)script to do it myself before finding this one.
Gowthaman
Leave a comment:
-
You may try this recent program SNVer.
It models the number of haploids in its model so it is applicable to haplid genomes too.
Originally posted by d17 View PostDoes anyone have any thoughts on calling SNPs from short read data (e.g. Illumina) in haploid genomes? It seems that many SNP calling programs are set up to deal only with diploid genomes (e.g. GATK's UnifiedGenotyper).
I found the program FreeBayes from the Marth Lab which allows you to specify the ploidy. This looks like a good candidate and I will definitely try it. It appears to be unpublished.
Does anyone have any experience with calling SNPs in haploid genomes using FreeBayes or another program?
Thanks!
Leave a comment:
-
Like another poster has mentioned I prefer using samtools on haploid genomes. False positive variants are always possible depending on the initial sequencing data you're using and specific features of your genome.
Leave a comment:
-
HI vv85,
Thanks a lot , that was the reason .
But do you know really if samtools pileup and GATK are really applicable in haploid genomes or i will get false positive variants?
Thanks alot
Leave a comment:
-
the - before the > might be the problemOriginally posted by Medo View PostHi,
I wanna ask about the samtools mpileup and Gatk commands for haploid genome in bacteria.
I tried them many times but it always hangs with me.
knowing that I did my allignment using Bowtie 2 which allows allignments with gaps.
for instance , this is my mpileup command :
samtools mpileup -uf NC_008596.1.fasta mt1sortfilter.bam ->snp/pileup/mt1.pileup
I don't know what's wrong, but it freeze and give nothing for hours
thanks
Leave a comment:
-
mpileup and Gtak command for haploid genomes
Hi,
I wanna ask about the samtools mpileup and Gatk commands for haploid genome in bacteria.
I tried them many times but it always hangs with me.
knowing that I did my allignment using Bowtie 2 which allows allignments with gaps.
for instance , this is my mpileup command :
samtools mpileup -uf NC_008596.1.fasta mt1sortfilter.bam ->snp/pileup/mt1.pileup
I don't know what's wrong, but it freeze and give nothing for hours
thanks
Leave a comment:
-
Hi garwuf,
I wanna ask you about the samtools mpileup command for haploid genome in bacteria. I tried it many times but it always hangs with me.
knowing that I did my allignment using Bowtie 2 which allows allignments with gaps.
this is my commands:
samtools mpileup -uf NC_008596.1.fasta mt1sortfilter.bam ->snp/pileup/mt1.pileup
I don't know what's wrong, but it freeze and give nothing for hours
thanks
Originally posted by garwuf View PostI gave quite an extensive try to Freebayes recently, and wouldn't recommend it in its current state. I have tried it on several bacterial datasets (of 4 - 6 Mb size), which were previously evaluated with Gigabayes, Samtools and GATK, and found that Freebayes reports nonexisting snps while missing well-defined ones. In fact, not a single snp was correctly predicted, no matter which parameters have been used.
Then, after reading the above post of d17, I decided to try Freebayes on smaller reference. I have generated two artificial sets of reads to a 128 kb template with 10 variant sites of different complexity. One set provided 50x , another one 400x coverage, and the alignment was performed with bwa. On this alignments, Freebayes has generated sane vcf output: no false positives, several snps were detected correctly. Still, the efficiency was quite low: for 50x dataset, it never reported more than 3 variants out of 10, and for 400x dataset it was 4-5 depending on settings. For comparison, Samtools 1.18 detected all 10 variants even on 50x dataset.
To my mind, Freebayes may have some problem with handling cashed sequence data, that's why it works with kb-sized but fails on Mb-sized references. On the other hand, it's still being developed. Maybe eventually these bugs will be fixed.
Leave a comment:
-
Yep, got that alright. Position just isn't enough because you then need to see the gene's it's affecting. I guess it means writing a script.
Thanks for your response anyway, it's always better that nothing!!
Kas
Leave a comment:
-
Hmmm...ok. I haven't figured out how to see if a SNP is synonymous or non synonymous but all of the other information is in the SNP output after you run the "cns2snp" command.
Here's an example output of the 1st five columns:
chromosome, position, reference base, consensus base, Phred-like consensus quality
GENE; SITE; REF_BASE; SNP_BASE; QUALITY_SCORE
lcl|AL123456.2_gene_1725 268 T C 255
lcl|AL123456.2_gene_1731 219 C T 255
lcl|AL123456.2_gene_1731 447 T C 255
lcl|AL123456.2_gene_1731 485 C T 255
lcl|AL123456.2_gene_1732 69 A G 255
Do you get the same output? If you find software to characterize the SNP itself I would love to know about it too!
Leave a comment:
-
@jgibbons1
Both actually, it would be nice to have interpretable output where you can see how relevant a particular SNP is. Therefore, I was trying to get information such as; what gene it's from, what position within the gene has the SNP, the resulting amino acid change if any and if it's syn/nonsynonomous.
I'm finding it hard to believe a tool for this purpose doesn't exist!
Thanks for the reply.
Leave a comment:
-
Hi Kasycas,
What exactly do you mean by annotation - synonymous or non synonymous? SNP location in the genome?
John
Leave a comment:
-
Hi jgibbons1, I've been using MAQ as well but the snp output is useless without annotation. Have you come across a good way to annotate the output that MAQ produces?
Thanks!
Leave a comment:
-
I've been using Maq (http://maq.sourceforge.net/maq-man.shtml) for SNP detection in my haploid system. No complaints whatsoever.
Leave a comment:
Latest Articles
Collapse
-
by SEQadmin2
CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).
Despite this, “CRISPR helped turn genome editing from a specialized technique into...-
Channel: Articles
07-31-2026, 11:01 AM -
ad_right_rmr
Collapse
News
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SEQadmin2, 08-24-2026, 10:32 AM
|
0 responses
25 views
0 reactions
|
Last Post
by SEQadmin2
08-24-2026, 10:32 AM
|
||
|
Started by SEQadmin2, 08-20-2026, 11:17 AM
|
0 responses
39 views
0 reactions
|
Last Post
by SEQadmin2
08-20-2026, 11:17 AM
|
||
|
Started by SEQadmin2, 08-18-2026, 10:05 AM
|
0 responses
40 views
0 reactions
|
Last Post
by SEQadmin2
08-18-2026, 10:05 AM
|
||
|
Started by SEQadmin2, 08-13-2026, 12:22 PM
|
0 responses
48 views
0 reactions
|
Last Post
by SEQadmin2
08-13-2026, 12:22 PM
|
Leave a comment: