-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcleanZebraOntology.pl
More file actions
30 lines (25 loc) · 1.13 KB
/
cleanZebraOntology.pl
File metadata and controls
30 lines (25 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#cleanMouseOntology
#this script reads in the full list of zebrafish GO annotations and spllits it into two lists
#one list is for Molecular function annotations and the other is for biological processes
#they both will have only entries with experimentally related evidence codes
#read in ontology of interest
open(IN,"zebrafish_gene_association_full.txt")||die("zebrafish_gene_association_full.txt does not open \n");
@raw = <IN>;
open(OUT1,">zebrafish_ontology_process.txt")||die("zebrafish_ontology_process.txt does not open \n");
open(OUT2,">zebrafish_ontology_function.txt")||die("zebrafish_ontology_function.txt does not open \n");
#loop through ontology
foreach $line (@raw){
#check to make sure line doesn't start with !
if(substr($line, 0, 1) ne "!"){
#split line by tabs
@columns = split("\t",$line);
if($columns[6] eq "IDA" || $columns[6] eq "IEP" || $columns[6] eq "IGI" || $columns[6] eq "IMP" || $columns[6] eq "IPI" || $columns[6] eq "TAS" || $columns[6] eq "IC" || $columns[6] eq "EXP"){
if($columns[8] eq "P"){
print OUT1 "$line\n";
}
if($columns[8] eq "F"){
print OUT2 "$line\n";
}
}
}
}