Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • "-p" option in cufflinks, topHat, etc.

    Hello,

    I'm trying to figure out topHat, cufflinks, etc. and I am getting them to work at the moment (fingers crossed) but I'm trying to understand what I am actually doing. what does the "-p" option mean? In the manual it says "use this many threads to align reads. The default is 1." What are these threads and what is the advantage to using 1 or more than one?

    The example workflow in Trapnell et al, 2012 (Nature Protocols, vol 7 pg 562) uses " -p 8" in each example entry, but there is no explanation for changing this from the default.

    This might be something obvious to the non-novice unix user, but it is not clear to this novice unix user.

    Thanks,
    Anna

  • #2
    Hi.
    The number of threads indicates the level of parallelism that you want to use with the software (e.g. how many simultaneous task will the program run). This number is limited by the number of CPU cores in your system (now a days, most computers have multiple cores). If your machine have 8 cores and you want to dedicate all of them for this task then set -p 8. Bottom line is that you need to find out how many cores are available to you and then decide how many do you want to use.

    BTW Most multi-threaded programs have an option to specify how many cores to use. However it is not always -p, that is a convention used by the Tuxedo Suite.



    fj

    Comment


    • #3
      Ah, thank you FJ, that makes sense. So, if I interpret that right, the higher the number of threads, the faster it will go, but the more it will monopolize computer resources.

      Comment


      • #4
        Originally posted by amcloon View Post
        Ah, thank you FJ, that makes sense. So, if I interpret that right, the higher the number of threads, the faster it will go, but the more it will monopolize computer resources.
        Yes it would go faster if your computer have the available resources. Think of of a core as an independent worker. If your computer commit more cores than what is available you will over-subscribe the resources causing your program to slow down. This is the simple way of looking at this. There are other issues like the amount of RAM memory available (e.g. how much space a worker can take), etc. If the cores are there and you are not planning on doing something else is preferable to use them all if possible.

        From your mention of Unix, I presume that you are running some kind of time shared environment. If that so, you can find your systems specifications which include the number of cores available in each computer etc.

        I hope this helps. Good luck!

        Comment

        Latest Articles

        Collapse

        • seqadmin
          Strategies for Sequencing Challenging Samples
          by seqadmin


          Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
          03-22-2024, 06:39 AM
        • seqadmin
          Techniques and Challenges in Conservation Genomics
          by seqadmin



          The field of conservation genomics centers on applying genomics technologies in support of conservation efforts and the preservation of biodiversity. This article features interviews with two researchers who showcase their innovative work and highlight the current state and future of conservation genomics.

          Avian Conservation
          Matthew DeSaix, a recent doctoral graduate from Kristen Ruegg’s lab at The University of Colorado, shared that most of his research...
          03-08-2024, 10:41 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, Yesterday, 06:37 PM
        0 responses
        7 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, Yesterday, 06:07 PM
        0 responses
        7 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 03-22-2024, 10:03 AM
        0 responses
        49 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 03-21-2024, 07:32 AM
        0 responses
        66 views
        0 likes
        Last Post seqadmin  
        Working...
        X