Unconfigured Ad

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

    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
        Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
        by SEQadmin2



        Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
        ...
        07-09-2026, 11:10 AM
      • SEQadmin2
        Cancer Drug Resistance: The Lingering Barrier to Rising Survival
        by SEQadmin2



        Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

        There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
        07-08-2026, 05:17 AM
      • GATTACAT
        Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
        by GATTACAT
        Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
        07-01-2026, 11:43 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, Yesterday, 10:26 AM
      0 responses
      15 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-09-2026, 10:04 AM
      0 responses
      29 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-08-2026, 10:08 AM
      0 responses
      16 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-07-2026, 11:05 AM
      0 responses
      33 views
      0 reactions
      Last Post SEQadmin2  
      Working...