Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thejustpark
    Member
    • Jul 2012
    • 28

    #1

    cuffdiff complains SAM file being not sorted, when I am sure they are right.

    Hello all,

    I am running cuffdiff with different gtf files but with the same set of sam files.
    For example, they look like this.
    cuffdiff -b hg19.fa --max-bundle-frags 4000000 -o lincRNAs lincRNAs.combined.gtf a.sam b.sam c.sam
    cuffdiff -b hg19.fa --max-bundle-frags 4000000 -o codingGenes coding.txt.gtf a.sam b.sam c.sam, where a.sam, b.sam, and c.sam are from different tissues.

    In running them, I have successfully run the latter, but I got the following error for the former:
    --------------------------------------------------------------------------------
    [08:24:24] Loading reference annotation.
    [08:24:24] Inspecting maps and determining fragment length distributions.

    Error: this SAM file doesn't appear to be correctly sorted!
    current hit is at chrX:61774, last one was at chrM:16495
    Cufflinks requires that if your file has SQ records in
    the SAM header that they appear in the same order as the chromosomes names
    in the alignments.
    If there are no SQ records in the header, or if the header is missing,
    the alignments must be sorted lexicographically by chromsome
    name and by position.
    --------------------------------------------------------------------------------

    But the thing is sam files cannot be wrong for the former running, because I am using the same set of the sam files. As it happens in loading reference annotation, I am thinking this might be related to lincRNAs.combined.gtf in the example, but actually this file is a result of cuffcompare (as reflected in the name), another package in cuff serires tools. So, I cannot think this file is incompatible with cuffdiff.

    I am wondering where I have to look into to address this issue.

    Thanks a lot for your advices in advance.
    HJ.
  • swbarnes2
    Senior Member
    • May 2008
    • 910

    #2
    The error message sounds pretty straightforward, is it incorrect about the order of your headers?

    Try using Picard to sort, if you aren't already.

    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
    40 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-22-2026, 10:48 AM
    0 responses
    29 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-15-2026, 10:52 AM
    0 responses
    41 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-14-2026, 05:39 AM
    0 responses
    45 views
    0 reactions
    Last Post SEQadmin2  
    Working...