Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Nino
    Member
    • Mar 2013
    • 27

    Star with cufflinks

    Hey Guys,

    I was wondering if anyone knows how to integrate cufflinks with star. Up until now I have star just for the alignments with chimeric searches, now I need to use cufflinks since searches for novel transcripts. I was told the two programs are used hand in hand. If anyone has any insight on this please let me know. Tried to search information regarding this but was unsuccessful.

    Thanks,
    Nino
  • alexdobin
    Senior Member
    • Feb 2009
    • 161

    #2
    Hi Nino,

    For non-strand-specific data, you need to use STAR option --outSAMstrandField intronMotif which will add the XS attribute to all canonically spliced alignments using their introns' motifs - that's exactly what Cufflinks needs.

    For strand-specific data, you do not need any extra parameters for STAR runs, but you need to use --library-type option for Cufflinks. For example, for the "standard" dUTP protocol you need to use --library-type fr-firststrand in Cufflinks.

    Do not use the option --outSAMattributes All, as Cufflinks (as well as many other tools) have compatibility problems with the latest SAM format specifications.

    For poly-A+ selected RNAs, all other default parameters generally work well in our ENCODE experience.
    As always I would highly recommend using annotations for mapping.
    Also, --outFilterType BySJout could help clean up rare junctions, and --outFilterIntronMotifs RemoveNoncanonicalUnannotated will clean up non-canonical junctions.

    Total RNA data is much harder to assemble with Cufflinks since it contains a substantial intronic signal. Please check this post, you may need to mask "complex" loci.

    Cheers
    Alex

    Comment

    • Nino
      Member
      • Mar 2013
      • 27

      #3
      Hey Alexdobin,

      Thanks for the info and help I was able to get it to work. Cheers!

      Nino

      Comment

      • bob-loblaw
        Member
        • Jun 2012
        • 59

        #4
        Hi guys,

        this is probably a good place to ask this question. But I ran STAR with that option to add the XS attribute. But when I run cufflinks I get this

        BAM record error: found spliced alignment without XS attribute
        BAM record error: found spliced alignment without XS attribute
        BAM record error: found spliced alignment without XS attribute
        BAM record error: found spliced alignment without XS attribute
        BAM record error: found spliced alignment without XS attribute
        > Processing Locus chr1:2835641-2836005 [ ] 0%BAM record error: found spliced alignment without XS attribute
        > Processing Locus chr1:2882539-2882944 [ ] 0%BAM record error: found spliced alignment without XS attribute
        > Processing Locus chr1:3536416-3537049 [ ] 0%BAM record error: found spliced alignment without XS attribute
        > Processing Locus chr1:3537448-3539171 [ ] 0%BAM record error: found spliced alignment without XS attribute
        > Processing Locus chr1:3646678-3647038 [ ] 0%BAM record error: found spliced alignment without XS attribute

        It does keep running, and the percentage does increase, but I was wondering if this behaviour is normal for STAR and cufflinks?

        Comment

        • sdriscoll
          I like code
          • Sep 2009
          • 436

          #5
          No, not expected. These errors are saying that the XS tag is not added. I've used this workflow as well and didn't have any trouble. Maybe STAR slipped up.
          /* Shawn Driscoll, Gene Expression Laboratory, Pfaff
          Salk Institute for Biological Studies, La Jolla, CA, USA */

          Comment

          • bob-loblaw
            Member
            • Jun 2012
            • 59

            #6
            I've had issues with this version of STAR on my machine before. The option for writing out unmapped reads to fastq format doesn't work either, although theres a pretty easy workaround for that. I may try to reinstall it. Thanks.

            Good thing STAR is so quick to run! If it was Tophat that did this, I'd have to set aside about a month of machine time to catch up!

            Comment

            • alexdobin
              Senior Member
              • Feb 2009
              • 161

              #7
              Please try the latest STAR patch ftp://ftp2.cshl.edu/gingeraslab/trac...TAR_2.3.1o.tgz
              It supposed to have fixed the problems with the output of unmapped fastqs.
              I also checked that it outputs the XS flag. If it still does not work, please send me your Log.out file.

              Comment

              • bob-loblaw
                Member
                • Jun 2012
                • 59

                #8
                Originally posted by alexdobin View Post
                Please try the latest STAR patch ftp://ftp2.cshl.edu/gingeraslab/trac...TAR_2.3.1o.tgz
                It supposed to have fixed the problems with the output of unmapped fastqs.
                I also checked that it outputs the XS flag. If it still does not work, please send me your Log.out file.
                The unmapped fastx is working for me now as is cufflinks, it started working with the version I had installed though. Odd. Although I've noticed with the intronmotif option for cufflinks that it only works for me when it's very last option specified.

                Thanks

                Comment

                • alexdobin
                  Senior Member
                  • Feb 2009
                  • 161

                  #9
                  Originally posted by bob-loblaw View Post
                  The unmapped fastx is working for me now as is cufflinks, it started working with the version I had installed though. Odd. Although I've noticed with the intronmotif option for cufflinks that it only works for me when it's very last option specified.

                  Thanks
                  This is indeed odd. Could you please send me the Log.out file for the case where the intronMotif option does not work? It actually contains information about all parameters that STAR read from command line.

                  Comment

                  • bob-loblaw
                    Member
                    • Jun 2012
                    • 59

                    #10
                    Originally posted by alexdobin View Post
                    This is indeed odd. Could you please send me the Log.out file for the case where the intronMotif option does not work? It actually contains information about all parameters that STAR read from command line.
                    Here is the log file from one where the introMotif option does not work! Thanks!
                    Attached Files

                    Comment

                    • alexdobin
                      Senior Member
                      • Feb 2009
                      • 161

                      #11
                      Originally posted by bob-loblaw View Post
                      Here is the log file from one where the introMotif option does not work! Thanks!
                      Hi @bob-loblaw,

                      According to the Log.out, I believe there was a typo in your command line:
                      --outSAMstrandField introMotif
                      while you needed
                      --outSAMstrandField intronMotif
                      Unfortunately STAR does not yet check all of the input values so in this case the parameter just got ignored and the XS flag was not generated.

                      Cheers
                      Alex

                      Comment

                      • bob-loblaw
                        Member
                        • Jun 2012
                        • 59

                        #12
                        Originally posted by alexdobin View Post
                        Hi @bob-loblaw,

                        According to the Log.out, I believe there was a typo in your command line:
                        --outSAMstrandField introMotif
                        while you needed
                        --outSAMstrandField intronMotif
                        Unfortunately STAR does not yet check all of the input values so in this case the parameter just got ignored and the XS flag was not generated.

                        Cheers
                        Alex
                        Well I've never felt as stupid as I do right now haha. Thanks though!

                        Comment

                        • alexdobin
                          Senior Member
                          • Feb 2009
                          • 161

                          #13
                          I have made these kind of typo mistakes many times, and sometimes even had to run a debugger to figure out what the problem was.
                          It is high on my TODO list (though not on the very top) to enforce strict control of all user options.

                          Comment

                          • ndejay
                            Junior Member
                            • Jul 2013
                            • 2

                            #14
                            Hi all,

                            I had an additional question.

                            You say that --outSAMstrandField intronMotif is necessary for unstranded reads, but what would happen if I used the option on stranded reads? I am hoping it has no effect.

                            Thanks.

                            Comment

                            • sdriscoll
                              I like code
                              • Sep 2009
                              • 436

                              #15
                              I'd assume it would just do what it does normally except in the output the intron orientation would always match the alignment orientation. The intron motif and orientation is estimated from the genome and not from the orientation of the alignment. There should be a setting in STAR, however, to make it aware of this so it can correctly assign intron orientation to novel intron motifs...if there are any.
                              /* Shawn Driscoll, Gene Expression Laboratory, Pfaff
                              Salk Institute for Biological Studies, La Jolla, CA, USA */

                              Comment

                              Latest Articles

                              Collapse

                              • SEQadmin2
                                From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
                                by SEQadmin2


                                Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


                                The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
                                ...
                                06-02-2026, 10:05 AM
                              • SEQadmin2
                                Single-Cell Sequencing at an Inflection Point: Early Impacts of New Platforms and Emerging Trends
                                by SEQadmin2


                                With the launch of new single-cell sequencing platforms in 2026, the field stands at an exciting inflection point. This article surveys the most impactful advances in the field and discusses how they’re reshaping research in cancer, immunology, and beyond.


                                Introduction

                                Single-cell sequencing technologies have undergone remarkable advances over the past decade, transitioning from low-throughput experimental approaches to highly scalable platforms capable of...
                                05-22-2026, 06:42 AM
                              • SEQadmin2
                                Environmental Genomics in the Age of NGS: From Microbes to Conservation Strategies
                                by SEQadmin2

                                Studying ecosystems means dealing with complex, multi-species communities that are hard to observe at scale. This complexity, however, hides many important questions to be answered, from how biogeochemical cycles work and how climate change can affect species distribution to how conservation strategies can work best.


                                Genomics, particularly since the expansion of NGS, has transformed ecosystem ecology. By sequencing environmental DNA, we can now assess biodiversity without direct...
                                05-06-2026, 09:04 AM

                              ad_right_rmr

                              Collapse

                              News

                              Collapse

                              Topics Statistics Last Post
                              Started by SEQadmin2, Today, 08:59 AM
                              0 responses
                              7 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 06-02-2026, 12:03 PM
                              0 responses
                              21 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 06-02-2026, 11:40 AM
                              0 responses
                              14 views
                              0 reactions
                              Last Post SEQadmin2  
                              Started by SEQadmin2, 05-28-2026, 11:40 AM
                              0 responses
                              29 views
                              0 reactions
                              Last Post SEQadmin2  
                              Working...