Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • 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

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


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


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

        • seqadmin
          Essential Discoveries and Tools in Epitranscriptomics
          by seqadmin




          The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
          04-22-2024, 07:01 AM
        • 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

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, Today, 11:49 AM
        0 responses
        13 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, Yesterday, 08:47 AM
        0 responses
        16 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-11-2024, 12:08 PM
        0 responses
        61 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-10-2024, 10:19 PM
        0 responses
        60 views
        0 likes
        Last Post seqadmin  
        Working...
        X