Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • 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

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

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

    Comment


    • #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

      • seqadmin
        Essential Discoveries and Tools in Epitranscriptomics
        by seqadmin




        The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
        04-22-2024, 07:01 AM
      • 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

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, Today, 08:47 AM
      0 responses
      12 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-11-2024, 12:08 PM
      0 responses
      60 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 10:19 PM
      0 responses
      59 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 09:21 AM
      0 responses
      54 views
      0 likes
      Last Post seqadmin  
      Working...
      X