Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • MGlenn
    Junior Member
    • Dec 2017
    • 6

    Select entries in Trinotate annot. report that match separate list

    Hi,

    I have a Trinotate annotation report saved as Excel CSV. The annotation report has 15 columns for every entry. There are ~700,000 entries of annotation info.

    I also have a list of Trinity transcript ID's (1 column, ~14,000 rows).

    Some of the Trinity transcript ID's in my single-column list match up to the transcript ID's in my Trinotate annotation report. I would like to extract (or remove - whatever is easier) the entries from my Trinotate annotation report, based on the column of transcript ID's, that match my separate list of Trinity transcript ID's,

    The Trinity transcript ID's are found in the second column of my Trinotate report, and the transcript ID's in the separate list are in the first and only column. I want to remove all Trinotate annotation report entries, based on "transcript_id" in column 2, that do not match my separate list of Trinity transcript ID's.

    I'm trying to filter these in Excel, but my lap top may soon catch fire as the Worksheet is too big. I'm sure a simple line of syntax using awk or sed could accomplish this, I'm just not very savvy with text processing program language yet (but I'm working on it!). Any help with this would be very appreciated! Thanks for considering my post.

    M
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Do you have access to a linux machine? If so save the two files in plain text format from excel (tab delimited for the annotation is fine). Then you can do something like
    Code:
    grep -f file_with_ID transcript_annotation_file > transcript_annot_for_ID_you_want
    file_with_ID should list your ID's one per line.

    Comment

    • MGlenn
      Junior Member
      • Dec 2017
      • 6

      #3
      Sorry, GenoMax, I meant to specify that I wanted to run this on a linux machine.

      Seems like it'll work! Thanks so much for the help.

      M

      Comment

      Latest Articles

      Collapse

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, Yesterday, 11:58 AM
      0 responses
      10 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-05-2026, 10:09 AM
      0 responses
      25 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-04-2026, 08:59 AM
      0 responses
      35 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-02-2026, 12:03 PM
      0 responses
      58 views
      0 reactions
      Last Post SEQadmin2  
      Working...