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
          Advanced Methods for the Detection of Infectious Disease
          by seqadmin




          The recent pandemic caused worldwide health, economic, and social disruptions with its reverberations still felt today. A key takeaway from this event is the need for accurate and accessible tools for detecting and tracking infectious diseases. Timely identification is essential for early intervention, managing outbreaks, and preventing their spread. This article reviews several valuable tools employed in the detection and surveillance of infectious diseases.
          ...
          11-27-2023, 01:15 PM
        • seqadmin
          Strategies for Investigating the Microbiome
          by seqadmin




          Microbiome research has led to the discovery of important connections to human and environmental health. Sequencing has become a core investigational tool in microbiome research, a subject that we covered during a recent webinar. Our expert speakers shared a number of advancements including improved experimental workflows, research involving transmission dynamics, and invaluable analysis resources. This article recaps their informative presentations, offering insights...
          11-09-2023, 07:02 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, Yesterday, 09:55 AM
        0 responses
        11 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 11-30-2023, 10:48 AM
        0 responses
        17 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 11-29-2023, 08:26 AM
        0 responses
        14 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 11-29-2023, 08:12 AM
        0 responses
        14 views
        0 likes
        Last Post seqadmin  
        Working...
        X