Open chukrello opened 7 years ago
Hi @chukrello, vphaser2 still has some very limited support from our team -- it is a part of the current viral-ngs suite and we have a pretty good understanding of how we like to use it, but at this point, we have limited expertise with the internal mechanics of it when problems arise.
Do you have a specific question about it?
Dear @dpark01, thank you very much for your answer!
My question is not quite specific, but I didn't find any similar problem on the Vphaser Google Group.
I downloaded a set of sequences from the article of one author (about 3500). After using samtools mpileup I got 3500 .bam files and ran Vphaser on each .bam. The problem is that some of the runs were successful, but others (and it's rather big number of runs) have same mistake:
[EXIT]: prep_aln_file: SC failed
Knowing that all this .bam files were generated from one source, it looks quite strange. So I wonder is it Vphaser problem or not.
It would be great if you know anything about this issue.
Kind regards, Konstantin.
It seems the relevant section of the V-Phaser-2 source is here.
A few questions:
Dear @tomkinsc,
Thank you for your reply!
1) I run vphaser in isolation 2) Actually I don't clearly understand what do you mean by "pass particular parameters" 3) I looked into the pipeline and found out that .bam was made with "samtools view -bS", and .sam file was made with "smalt map".
Hope it helps.
Hi @chukrello,
Usage: vphaser2
-i [input.bam] -- input sorted bam file
-o [output DIR] -- output directory
-e [1 or 2] -- default 1; 1: pileup + phasing; 2: pileup
-w -- default 500; alignment window size
-ig -- default 0; # of bases to ignore on both end of a read
-delta -- default 2; constrain PE distance by delta x fragsize_variation (auto measured by program)
-ps (0, 100] -- default 30; percentage of reads to sample to get stats.
-dt [0 or 1] -- default 1; 1: dinucleotide for err prob measure; 0: not
-cy [0 or 1] -- default 1; 1: read cycle for err calibr; 0: not
-mp [0 or 1] -- default 1; 1: mate-pair for err calibr; 0: not
-qual [0, 40] -- default 20; quantile of qual for err calibr
-a -- default 0.05; significance value for stat test
I'd guess the failures are a product of the options used, and/or something specific to the alignment. Did you specify the window size to be quite large, or does the .bam
file have any very short reads (<<window size
).
Hi @tomkinsc,
Thank you for your answer! Yes, it was quite obvious, don't know why I didn't get it :) I use this comand:
OMP_NUM_THREADS=2 variant_caller -a 0.01 -i id.bam -o id
So there is no specifications on window size.
Ok, I wonder if something is off about the read alignment coordinates. A few more comments:
samtools view -c -f 4 input.bam
From the vphaser2 docs:
samtools view -b -f 2 input.bam > output.bam
samtools sort input.bam > output.bam
.bti
files (index files used by Bamtools).Hi @tomkinsc!
Yes, there are quite big number of unmapped reads (~33000). Nevertheless, files who had successful Vphaser run also has same amount of unmapped reads.
I did all the comands (p.2, p.3 and p.4) and made a Vphaser run again. And I got this mistake one more time :(
Hello!
I just would like to know if technical support of Vphaser still works? If yes, where can I find it?
Sincerely, Konstantin.