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
          Current Approaches to Protein Sequencing
          by seqadmin


          Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
          04-04-2024, 04:25 PM
        • 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

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, 04-11-2024, 12:08 PM
        0 responses
        17 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-10-2024, 10:19 PM
        0 responses
        22 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-10-2024, 09:21 AM
        0 responses
        16 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-04-2024, 09:00 AM
        0 responses
        46 views
        0 likes
        Last Post seqadmin  
        Working...
        X