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
          Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
          by SEQadmin2



          CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

          Despite this, “CRISPR helped turn genome editing from a specialized technique into
          ...
          Today, 11:01 AM
        • SEQadmin2
          Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
          by SEQadmin2


          Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

          The systematic characterization of the human proteome has
          ...
          07-20-2026, 11:48 AM
        • 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

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, Today, 02:55 AM
        0 responses
        7 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-24-2026, 12:17 PM
        0 responses
        12 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-23-2026, 11:41 AM
        0 responses
        12 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-20-2026, 11:10 AM
        0 responses
        24 views
        0 reactions
        Last Post SEQadmin2  
        Working...