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
          Non-Coding RNA Research and Technologies
          by seqadmin




          Non-coding RNAs (ncRNAs) do not code for proteins but play important roles in numerous cellular processes including gene silencing, developmental pathways, and more. There are numerous types including microRNA (miRNA), long ncRNA (lncRNA), circular RNA (circRNA), and more. In this article, we discuss innovative ncRNA research and explore recent technological advancements that improve the study of ncRNAs.

          Nobel Prize for MicroRNA Discovery
          This week,...
          10-07-2024, 08:07 AM
        • seqadmin
          Recent Developments in Metagenomics
          by seqadmin





          Metagenomics has improved the way researchers study microorganisms across diverse environments. Historically, studying microorganisms relied on culturing them in the lab, a method that limits the investigation of many species since most are unculturable1. Metagenomics overcomes these issues by allowing the study of microorganisms regardless of their ability to be cultured or the environments they inhabit. Over time, the field has evolved, especially with the advent...
          09-23-2024, 06:35 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, Yesterday, 06:55 AM
        0 responses
        10 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 10-02-2024, 04:51 AM
        0 responses
        108 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 10-01-2024, 07:10 AM
        0 responses
        114 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 09-30-2024, 08:33 AM
        1 response
        118 views
        0 likes
        Last Post EmiTom
        by EmiTom
         
        Working...
        X