Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • jdjax
    Member
    • Dec 2010
    • 23

    #16
    Originally posted by DZhang View Post
    You should check the header information of your bam file. One way to do it is to convert bam to sam using samtools, then check the top portion of the sam files. (e.g., using 'more your.sam'). Let us know what you see in the header.

    I am away from the campus network, and do not have access to the server right now. When I back on campus I will post that. Thanks for the help.
    jdjax
    Ph.d. Student
    Åarhus University

    Comment

    • jdjax
      Member
      • Dec 2010
      • 23

      #17
      So when looking at the SAM file header line : @HD VN:1.0 SO:coordinate


      I also noticed that the rest of the file does not look uniform. The first line there is '@SQ [tab] SN: value [tab] LN: value'. However the following lines are not the same: '@SQ [tab] SN: value LN:value', where there is no tab between the SN and LN value. Through out the header I see some lines that contain '@SQ [tab] SN: value [tab] LN: value' and '@SQ [tab] SN: value LN:value'.

      I thought SAM files are supposed to be uniform and have a tab between each column? If I am correct, how do I fix my SAM header?

      Thank you again for your help.
      Last edited by jdjax; 08-15-2011, 03:00 AM.
      jdjax
      Ph.d. Student
      Åarhus University

      Comment

      • ribozyme
        Junior Member
        • Oct 2008
        • 3

        #18
        Originally posted by jdjax View Post
        DZhang,

        I did not sort the sam. I am just testing these programs out so I did not use any options for tophat or cufflinks. Tophat made a file accept_hits.bam. I used that file as input for the cufflinks.

        My cufflinks command was just: cufflinks accepted_hits.bam

        I also want to more descriptive about errors I am recieveing in the hopes of figuring this problem. This is what the error stated:

        cufflinks: /usr/lib64/libz.so.1 : no version information available
        Warning: BAM header too large
        File accepted_hits does not appear to be a valid BAM file, trying SAM
        Inspecting reads and determining fragment length distribution.
        SAM error on line 2880: CIGAR op has zero length
        SAM error on line 3240: CIGAR op has zero length
        SAM error on line 3464: CIGAR op has zero length
        SAM error on line 5063: CIGAR op has zero length
        SAM error on line 30750: CIGAR op has zero length
        SAM error on line 51722: CIGAR op has zero length

        This continues with increasing line numbers until it reaches the end of the file.
        I have also checked /usr/lib64/libz.so.1 and it is in /usr/lib64

        libz.so.1 -> libz.so.1.2.3

        is what is present in on the server.

        Again thanks for your input. I appreciate any help. =)
        I am facing the same problem. Any Help Will be appreciated.

        Comment

        • DZhang
          Senior Member
          • Jun 2010
          • 177

          #19
          Here is what is said about input file format for cufflinks on its website:

          Note the use of the custom tag XS. This attribute, which must have a value of "+" or "-", indicates which strand the RNA that produced this read came from. While this tag can be applied to any alignment, including unspliced ones, it must be present for all spliced alignment records (those with a 'N' operation in the CIGAR string).

          The SAM file supplied to Cufflinks must be sorted by reference position. If you aligned your reads with TopHat, your alignments will be properly sorted already. If you used another tool, you may want to make sure they are properly sorted as follows:

          sort -k 3,3 -k 4,4n hits.sam
          I suspect two things might be the cause: properly sorting the sam/bam file or the CIGAR specification. Tophat will remove these potential problems so I would really recommend giving it a try at least as one of the trouble shooting steps.

          Comment

          • jdjax
            Member
            • Dec 2010
            • 23

            #20
            After some serious problem solving we figured out what we need to do to make Bowtie output work with cufflinks.
            When working with Bowtie you get a UNsorted SAM file, so you first have to coverted it to a BAM file, then sort the file, then convert it back to a SAM file. Then when you have a sorted SAM file cufflinks does not bring up an error.

            I have no idea why this occurs - all I care about is that is works.

            Good Luck.
            jdjax
            Ph.d. Student
            Åarhus University

            Comment

            • DZhang
              Senior Member
              • Jun 2010
              • 177

              #21
              Hi jdjax,

              Thank you for the update and working solution. Did you try "sort -k 3,3 -k 4,4n hits.sam" as suggested by the cufflink website? It it does, it will save you lots of time (and disk space) to convert sam/bam/sam.

              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, 07-13-2026, 10:26 AM
              0 responses
              24 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-09-2026, 10:04 AM
              0 responses
              34 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-08-2026, 10:08 AM
              0 responses
              21 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-07-2026, 11:05 AM
              0 responses
              34 views
              0 reactions
              Last Post SEQadmin2  
              Working...