Skip to content

Instantly share code, notes, and snippets.

@NDHall
NDHall / GoTermParse.py
Created October 11, 2017 20:38
Sample script for counting go terms for a trinontate report.
# First generation for parsing out GO: terms. We used this to simplify working with regular
# expressions and delimiters that are inherit to the Trinotate file
# couple things to note:
# Though we are parsing canonical GO terms here. They are not in the default column.
# We have chosen to drop some columns from Trinontate output.
#
# If you are using this make sure that the script is taking the correct column!
# Also, for ease of parsing post,python scripts the name of each go term has " " replaced with "_"
# finally notice the GOTerm class below.
# TERM=TERM