Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ikarus97
    Junior Member
    • Apr 2010
    • 6

    #1

    Does Picard tool support multi-fasta file?

    Hi,

    I'm trying to check alignment accuracy of bam files generated by tophat using Picard tools.
    But the resulting mismatch rates ('PF_MISMATCH_RATE') were unreasonably high.
    When trying to figure out why, I found some strange things.

    Here is the entries in the sample bam file:
    Code:
    @HD     VN:1.0  SO:coordinate
    @SQ     SN:chr1 LN:249250621
    @PG     ID:TopHat       VN:1.4.0
    1925_202_1426   0       chr1    1102502 255     23M     *       0       0       GCCATCTTACTGGGCAGCATTGG ___abbb_[NRb``[[`Y[_^&& NM:i:0  NH:i:1
    49_971_1359     0       chr1    1102503 255     23M     *       0       0       CCATCTTACTGGGCAGCATTGGA QQIFIQ?@NW`VP@E[EGUVVEE NM:i:0  NH:i:1
    76_239_469      0       chr1    1102503 255     22M     *       0       0       CCATCTTACTGGGCAGCATTGG  WWVTUXRS[^^`[CGL<N8;KK  NM:i:0  NH:i:1
    All 3 reads were single-ended, and originated from chr1.fa (and aligned to chr1 perfectly).

    First I tried 'CollectAlignmentSummaryMetrics' module just using reference sequence for chr1, and got mismatch rate of 0.
    Code:
    java -jar ~/picard-tools-1.67/CollectAlignmentSummaryMetrics.jar INPUT=hh.sam R=chr1.fa OUTPUT=tmp
    But when I tried the same command with multi-fasta file containing every chromosomes, I got the mismatch rate of 0.77!

    Is there anybody who can explain me what is wrong?
    My first hunch is that this tool might not support multi-fasta format as reference. But then, how can I get the mismatch rate of a bam file?
  • ikarus97
    Junior Member
    • Apr 2010
    • 6

    #2
    I've got my answer: the reference sequences in fasta file should be in the same order as in the bam header.

    Comment

    • jh313
      Junior Member
      • Apr 2013
      • 2

      #3
      Hey ikarus97, I was getting a similar issue. How did you fix the order of the reference sequences in the fasta file?

      Comment

      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
      27 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...