Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Lv Ray
    Member
    • Jun 2014
    • 42

    #1

    about the pipe from bowtie2 to samtools view

    Hi, dears.
    Last night I ran the code:
    nohup bowtie2 -x Ref_index -U ER172.fastq --local -D 20 -R 3 -N 1 -L 21 -i S,1,0.75 -p 15 | samtools view -bS -t Ref.fa.fai - > ER172.bam
    Unfortunately,I got:
    [sam_read1] reference ' 1482179 (26.27%) aligned 0 times' is recognized as '*'.Parse error at line 5645986: invalid CIGAR character

    I tried to view the line 5645986 from fastq, but I failed to find the reason. Maybe I need to view it from .sam file, but I used the pipe with no .sam file.
    Can you help me ?
  • sphil
    Senior Member
    • Apr 2010
    • 192

    #2
    from bowtie manual:
    Alignment summmary

    When Bowtie 2 finishes running, it prints messages summarizing what happened. These messages are printed to the "standard error" ("stderr") filehandle. For datasets consisting of unpaired reads, the summary might look like this:

    20000 reads; of these:
    20000 (100.00%) were unpaired; of these:
    1247 (6.24%) aligned 0 times
    18739 (93.69%) aligned exactly 1 time
    14 (0.07%) aligned >1 times
    93.77% overall alignment rate

    For datasets consisting of pairs, the summary might look like this:

    10000 reads; of these:
    10000 (100.00%) were paired; of these:
    650 (6.50%) aligned concordantly 0 times
    8823 (88.23%) aligned concordantly exactly 1 time
    527 (5.27%) aligned concordantly >1 times
    ----
    650 pairs aligned concordantly 0 times; of these:
    34 (5.23%) aligned discordantly 1 time
    ----
    616 pairs aligned 0 times concordantly or discordantly; of these:
    1232 mates make up the pairs; of these:
    660 (53.57%) aligned 0 times
    571 (46.35%) aligned exactly 1 time
    1 (0.08%) aligned >1 times
    96.70% overall alignment rate

    The indentation indicates how subtotals relate to totals.

    ---

    I guess you are capturing this because of the nohup command....

    Comment

    • Lv Ray
      Member
      • Jun 2014
      • 42

      #3
      Thanks,sphil.
      how about the error :.Parse error at line 5645986: invalid CIGAR character

      Comment

      • dpryan
        Devon Ryan
        • Jul 2011
        • 3478

        #4
        The error is caused by redirecting stderr to samtools. Don't do that.

        Comment

        • Lv Ray
          Member
          • Jun 2014
          • 42

          #5
          Thank you!
          maybe it's best to me that I will not use the pipe.

          Comment

          Latest Articles

          Collapse

          • SEQadmin2
            Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
            by SEQadmin2



            Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

            Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
            ...
            10-14-2026, 09:55 AM
          • SEQadmin2
            New Genomics Technologies Take Aim at Long-Standing Limits
            by SEQadmin2


            Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

            We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
            ...
            09-28-2026, 10:25 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 10-22-2026, 11:13 AM
          0 responses
          46 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-22-2026, 10:48 AM
          0 responses
          34 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-15-2026, 10:52 AM
          0 responses
          46 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-14-2026, 05:39 AM
          0 responses
          46 views
          0 reactions
          Last Post SEQadmin2  
          Working...