@@ -20,12 +20,17 @@ workflow GFF_STORE {
20
20
def cols = line. split(' \t ' )
21
21
def id = cols[0 ]
22
22
def txt = cols[7 ]
23
+ def pfams = cols[20 ]
23
24
24
- [ id, txt ]
25
+ [ id, txt, pfams ]
26
+ }
27
+ .collect { id, txt, pfams ->
28
+ if ( txt != ' -' ) { return [ id, txt ] }
29
+ if ( pfams != ' -' ) { return [ id, " PFAMs: $pfams " ] }
30
+
31
+ [ id, ' No eggnog description and PFAMs' ]
25
32
}
26
- .findAll { id, txt ->
27
- txt != ' -'
28
- }. collectEntries { id, txt ->
33
+ .collectEntries { id, txt ->
29
34
[ id, txt ]
30
35
}
31
36
@@ -57,7 +62,7 @@ workflow GFF_STORE {
57
62
58
63
def anno = tx_annotations. containsKey(tx_id)
59
64
? URLEncoder . encode(tx_annotations[tx_id], " UTF-8" ). replace(' +' , ' %20' )
60
- : URLEncoder . encode(' hypothetical protein | no eggnog hit' , " UTF-8" ). replace(' +' , ' %20' )
65
+ : URLEncoder . encode(' Hypothetical protein | no eggnog hit' , " UTF-8" ). replace(' +' , ' %20' )
61
66
62
67
gene_tx_annotations[gene_id] + = [ ( tx_id ): anno ]
63
68
}
@@ -67,7 +72,7 @@ workflow GFF_STORE {
67
72
def default_anno = tx_annos. values(). first()
68
73
69
74
if ( tx_annos. values(). findAll { it != default_anno }. size() > 0 ) {
70
- return [ gene_id, ( tx_annos + [ ' default' : ' differing %20isoform%20descriptions' ] ) ]
75
+ return [ gene_id, ( tx_annos + [ ' default' : ' Differing %20isoform%20descriptions' ] ) ]
71
76
}
72
77
73
78
[ gene_id, ( tx_annos + [ ' default' : default_anno ] ) ]
0 commit comments