Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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!!

  • #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


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

      Comment

      Latest Articles

      Collapse

      • seqadmin
        Current Approaches to Protein Sequencing
        by seqadmin


        Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
        04-04-2024, 04:25 PM
      • seqadmin
        Strategies for Sequencing Challenging Samples
        by seqadmin


        Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
        03-22-2024, 06:39 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 04-11-2024, 12:08 PM
      0 responses
      30 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 10:19 PM
      0 responses
      32 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 09:21 AM
      0 responses
      28 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-04-2024, 09:00 AM
      0 responses
      52 views
      0 likes
      Last Post seqadmin  
      Working...
      X