Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nr23
    Member
    • Oct 2012
    • 42

    #1

    Cufflinks sorting Error

    Hi,

    I've used Cufflinks a load of times, with both sorted.bam alignments from tophat and Stampy. Even though my .bam files are sorted (samtools sort) I get this error when running cufflinks:


    Error: this SAM file doesn't appear to be correctly sorted!
    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 tried using .sam and sorting with
    $ sort -k 3,3 -k 4,4n hits.sam > hits.sam.sorted
    but the sort takes hours and doesn't seem to finish, or even produce a file.

    Here are the first few lines of my .sam file:

    @HD VN:1.0 SO:unsorted
    @PG ID:dvtgm PN:stampy VN:1.0.21_(r1683) CL:-t 12 -g [...] -h [...] -o [...]
    [...]
    @CO TM:Tue, 30 Apr 2013 10:15:08 IST WD:[...] HN:[...]
    @SQ SN:gi|AB014461.11|_X.l_mRNA_for_Zic-related-2,_complete_cds LN:2719 AS:Uni_blash_heads SP:X.laevis
    @SQ SN:gi|L09728.12|XELDLL4_X.l_putative_transcription_factor_DLL4_mRNA,_complete_cds LN:1087 AS:Uni_blash_heads SP:X.laevis
    @SQ SN:gi|L09730.13|XELDLL2_X.l_putative_transcription_factor_DLL2_mRNA,_3'_end LN:1485 AS:Uni_blash_heads SP:X.laevis
    @SQ SN:gi|L11263.14|XEL1A11RTP_X.l_71.0_kDa_protein_(retrotransposon_1a11_related)_mRNA,_complete_cds LN:4410 AS:Uni_blash_heads SP:X.laevis
    @SQ SN:gi|AB021705.15|_X.l_mRNA_for_XMAP4,_complete_cds LN:3920 AS:Uni_blash_heads SP:X.laevis
    @SQ SN:gi|AB022087.16|_X.l_mRNA_for_cytochrome_P450,_complete_cds,_clone_MC1 LN:2618 AS:Uni_blash_heads SP:X.laevis
    @SQ SN:gi|AB022088.17|_X.l_mRNA_for_cytochrome_P450,_complete_cds,_MC2 LN:2905 AS:Uni_blash_heads SP:X.laevis



    Really baffled by this - it's never been a problem in the past...

    Many thanks,

    N
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    This may not be directly related but have you switched to the newest cufflinks (v.2.1.1) recently?

    There appear to be some odd problem with newest version (I am getting seg faults). Going back to the last release (v.2.0.2) works.

    Comment

    • nr23
      Member
      • Oct 2012
      • 42

      #3
      Hi,

      Yes I did today. However, I'm aligning to a Unigene reference with 30k odd sequences, so I have headers that are too large for v.1. - I'll give v.2.0.2 a go.

      Thanks,

      N

      Comment

      • nr23
        Member
        • Oct 2012
        • 42

        #4
        Hi,

        I re-ran the manual sort $ sort -k 3,3 -k 4,4n hits.sam > hits.sam.sorted on my sam files and cufflinks runs ok. It takes ~ 4 hours per condition (~80M 90bp pe reads) - which seems ridiculously long.

        However, when I run the output ('assemblies' contains location of 'transcripts.gtf' to compare) from cufflinks into cuffmerge:

        cuffmerge assemblies.txt

        I get the same error:

        [10:25:19] Inspecting reads and determining fragment length distribution.

        Error: this SAM file doesn't appear to be correctly sorted!
        current hit is at gi|11066191|gb|AF196575.15187|_Xenopus_laevis_class_IV_POU-homeodomain_protein_(Brn3a)_mRNA,_partial_cds:7, last one was at gi|110645744|gb|BC118825.127439|_Xenopus_tropicalis_mitochondrial_ribosomal_protein_L22,_mRNA_(cDNA_clone_MGC:146493_IMAGE:7793940),_complete_cds:493
        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.

        [FAILED]
        Error: could not execute cufflinks


        Why is cuffmerge running cufflinks?

        Any thoughts?

        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-15-2026, 10:52 AM
        0 responses
        26 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-14-2026, 05:39 AM
        0 responses
        32 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-13-2026, 09:56 AM
        0 responses
        28 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-09-2026, 11:14 AM
        0 responses
        28 views
        0 reactions
        Last Post SEQadmin2  
        Working...