Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • petrie
    replied
    jcgrenier - that looks like it will solve my problem (either the hardclip_bases workaround or the revert_softclipped_bases if it's been updated). Thanks so much!

    Leave a comment:


  • jcgrenier
    replied
    Hi petrie,

    For the moment, I'm kind of exploiting a bug in GATK to help me to solve this problem. If you go on their forum there :

    http://gatkforums.broadinstitute.org...-option#latest

    you will see why it does that. Anyways, here's the option that I used to kind of revert the softclipped bases. The problem was coming from the fact that the starting position of a softclipped read is in the sam file line not the one from the beginning of the read, but the first non-clipped base.

    java -Djava.io.tmpdir=$SCRATCH -Xmx10g -jar ~/GenomeAnalysisTK-2.4-9-g532efad/GenomeAnalysisTK.jar -T ClipReads -l INFO -I $SCRATCH/$f.bam -o $f.hardclip.bam -R ~/References/hg19/ref.fasta -CR HARDCLIP_BASES -os $f.hardclip.stats

    Cheers.

    Leave a comment:


  • jcgrenier
    replied
    Hi petrie,

    For the moment, I'm kind of exploiting a bug in GATK to help me to solve this problem. If you go on their forum there :

    http://gatkforums.broadinstitute.org...-option#latest

    you will see why it does that. Anyways, here's the option that I used to kind of revert the softclipped bases. The problem was coming from the fact that the starting position of a softclipped read is in the sam file line not the one from the beginning of the read, but the first non-clipped base.

    java -Djava.io.tmpdir=$SCRATCH -Xmx10g -jar ~/GenomeAnalysisTK-2.4-9-g532efad/GenomeAnalysisTK.jar -T ClipReads -l INFO -I $SCRATCH/$f.bam -o $f.hardclip.bam -R ~/References/hg19/ref.fasta -CR HARDCLIP_BASES -os $f.hardclip.stats

    Cheers.

    Leave a comment:


  • petrie
    replied
    jcgrenier - could you tell me how you corrected for soft clipping? I have a lot of mysterious soft clipping in my bwa sw alignment, and I'd love to get rid of it. Just asking on the off chance that you had the same problem as me…Thanks!

    See also: http://seqanswers.com/forums/showthr...119#post121119

    Leave a comment:


  • jcgrenier
    replied
    Hi,

    I had the same exact problem with my sample. I thought at the beginning that it was due to the soft clipping in my reads, but when I correct for that, I still have the same result. I have also played with the mapping and base qualities, still not able to recover the same depth for both programs.

    Then, I tried the option -A in mpileup and pouff! Magic, I got the same numbers. I suppose that it's little bit risky to take those reads, but at least now I know what was doing mpileup.

    Cheers

    Leave a comment:


  • bair
    replied
    Originally posted by swbarnes2 View Post
    One quick thing to try; remake bcf, using -B in the samtools mpileup stage.

    Sometimes, the BAQ calculations will count good variant reads as misalignments, and it will give them poor quality, which might explain your low coverage.
    Thanks.

    I remade bcf with -B, no change. DP=8.

    Worked on the raw bam file without GATK realign/recalibration, samtools gave the same DP with/without -B option.

    Leave a comment:


  • swbarnes2
    replied
    One quick thing to try; remake bcf, using -B in the samtools mpileup stage.

    Sometimes, the BAQ calculations will count good variant reads as misalignments, and it will give them poor quality, which might explain your low coverage.

    Leave a comment:


  • bair
    started a topic samtools mpileup

    samtools mpileup

    Hello All,

    I have a bam file generated by MiSeq + GATK (Realignment/recalibration), I use samtools (v0.1.18) / GATK for variant calling. For a site, I find a big difference about the depth between these two methods.

    bcftools view sample.bcf | awk '$1=="chr7" && $2==150648198'
    chr7 150648198 . A G,X 0 . DP=8;I16=1,0,0,1,24,576,25,625,60,3600,60,3600,25,625,25,625;VDB=0.0000 PLP:SP 19,0,18,22,21,40:2:0

    Here DP=8 before quality control and only two reads passed quality control, thus samtools does not call variant for this site.

    GATK with default setting calls this site as SNP with DP=516, and IGV shows there are 233A + 283G at this site with good quality (mapQ~37, baseQ~30.

    This site is a true SNP confirmed by Sanger sequencing, so any explanation will be appreciated.

    Many thanks!

Latest Articles

Collapse

  • kinpict.com
    Reply to 16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
    by kinpict.com
    The part about this topic feels surprisingly grounded, and the details on the page is the bit that made me slow down. I’d keep <a href="https://kinpict.com/">ai family photo generator</a> bookmarked for later.
    Today, 06:37 PM
  • SEQadmin2
    16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
    by SEQadmin2





    NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
    10-30-2026, 06:46 AM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by SEQadmin2, 11-12-2026, 07:59 AM
0 responses
28 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 11-05-2026, 09:25 AM
0 responses
35 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 11-03-2026, 11:54 AM
2 responses
56 views
0 reactions
Last Post kinpict.com  
Started by SEQadmin2, 10-28-2026, 09:57 AM
0 responses
175 views
0 reactions
Last Post SEQadmin2  
Working...