Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • emolinari
    Member
    • May 2013
    • 47

    #1

    filter out low fpkm with unix

    Hi guys!!!

    I am terrible in unix scripting...but I have a feeling that is the only way to sort out my problem:

    I want to filter out from my .gtf file from cufflinks those transcripts with a fpkm < 1.

    I have tried
    awk '($14>1)' transcripts.gtf > transcripts.b.gtf

    but of course with no success...
    $14 is the position of fpkm values
    This is the first line of the .gtf file

    1 Cufflinks transcript 53049 54936 1 + . gene_id "ENSG00000268020"; transcript_id "ENST00000594647"; FPKM "0.0000000000"; frac "0.000000"; conf_lo "0.000000"; conf_hi "0.000000"; cov "0.000000"; full_read_support "no";


    Can anyone help???

    thanks!
    Manu
  • vivek_
    PhD Student
    • Jul 2012
    • 164

    #2
    Try removing the quote marks before doing a numerical comparison.

    Code:
    awk '{gsub(/\"/,""); print}' transcripts.gtf  | awk '{if($14 > 1) print}'

    Comment

    • emolinari
      Member
      • May 2013
      • 47

      #3
      Originally posted by vivek_ View Post
      Try removing the quote marks before doing a numerical comparison.

      Code:
      awk '{gsub(/\"/,""); print}' transcripts.gtf  | awk '{if($14 > 1) print}'

      Yayyyyy!!!

      thanks Vivek! I also imagined it was an issue with quote marks...but I'd never imagined how to do it. That was extremely helpful...thanks indeed!!!


      Manu

      Comment

      Latest Articles

      Collapse

      • SEQadmin2
        How Immunogenomics Decodes Immunity’s Genetic Blueprint
        by SEQadmin2




        The immune system’s power comes from its genetic diversity, allowing myriad threats to be neutralized through first recognizing foreign antigens. That diversity is also what makes the immune system so difficult to study. Recent advances in sequencing technology and computational biology, however, are giving researchers new tools to understand immune responses and immune-related diseases in greater detail.

        This convergence of genetics, immunology, and computation...
        Yesterday, 05:41 AM
      • SEQadmin2
        Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
        by SEQadmin2



        CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

        Despite this, “CRISPR helped turn genome editing from a specialized technique into
        ...
        07-31-2026, 11:01 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 08-24-2026, 10:32 AM
      0 responses
      42 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 08-20-2026, 11:17 AM
      0 responses
      48 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 08-18-2026, 10:05 AM
      0 responses
      55 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 08-13-2026, 12:22 PM
      0 responses
      50 views
      0 reactions
      Last Post SEQadmin2  
      Working...