Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • crader
    Member
    • Sep 2010
    • 12

    #1

    cuffdiff says SAM isn’t sorted, although it handled it cufflinks

    Hi all, I'm having an issue with cufflinks in that I can get through cufflinks with a de novo, but am halted here:

    cuffdiff -o diff_out -b annolrubtran.fasta -p 20 -L 0mg,36mg,125mg -u cuffcmp.combined.gtf ./tophat008paired/accepted_hits.sam.sorted ./tophat009paired/accepted_hits.sam.sorted ./tophat010paired/accepted_hits.sam.sorted
    You are using Cufflinks v1.3.0, which is the most recent release.
    [bam_header_read] EOF marker is absent.
    [bam_header_read] invalid BAM binary header (this is not a BAM file).
    File ./tophat008paired/accepted_hits.sam.sorted doesn't appear to be a valid BAM file, trying SAM...
    [bam_header_read] EOF marker is absent.
    [bam_header_read] invalid BAM binary header (this is not a BAM file).
    File ./tophat009paired/accepted_hits.sam.sorted doesn't appear to be a valid BAM file, trying SAM...
    [bam_header_read] EOF marker is absent.
    [bam_header_read] invalid BAM binary header (this is not a BAM file).
    File ./tophat010paired/accepted_hits.sam.sorted doesn't appear to be a valid BAM file, trying SAM...
    [19:24:38] Loading reference annotation and sequence.
    [19:25:40] Inspecting maps and determining fragment length distributions.

    Error: this SAM file doesn't appear to be correctly sorted!
    current hit is at Contig10010|nucleolin-:26, last one was at Contig1000|---NA---:198
    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.


    I've prviouisly converted the tophat output into a .sam before sorting:

    samtools view -h -o accepted_hits.sam accepted_hits.bam
    sort -k 3,3 -k 4,4n accepted_hits.sam > accepted_hits.sam.sorted

    This feeds into cufflinks alright, but stops as above when shuttled into cuffdiff. I also used cuffcompare to get the combined.gtf- If anyone could offer me a suggestion, I'd thoroughly appreciate it!!
  • crader
    Member
    • Sep 2010
    • 12

    #2
    Update (I've also posted on Biostar)

    It starts to give me hassles as here: http://biostar.stackexchange.com/que...into-cuffmerge when I put the .bam files in. Is there a faster work-around without changing the hitts.cpp? (I don't have permissions and am working off site).

    Comment

    • ETHANol
      Senior Member
      • Feb 2010
      • 308

      #3
      There was a thread about this the other day and the problem was with chrM.
      --------------
      Ethan

      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
      48 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 10-22-2026, 10:48 AM
      0 responses
      36 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...