[% pkgid %] Mapper

Mapping
[% qq1.onto | ucfirst %] Ontology Rank [% qq2.onto | ucfirst %] Ontology
[% SET curr_tree = 1 %] [% INCLUDE lista curr = tree1 %] [% SET c = 0 %] [% FOREACH i IN rank %] [% NEXT UNLESS i.score > 0 %] [% IF 0 %] [%- INCLUDE pp_score s = i.score -%] [% END %] [% IF lines.item(i.col) %] [% IF 0 %] [% END %] [% END %] [% c = c + 1 %] [% END %]
[%- INCLUDE pp_row name = i.row -%] [%- INCLUDE pp_col name = i.col -%]
[% SET curr_tree = 2 %] [% INCLUDE lista curr = tree2 %]
[% BLOCK lista %] [% UNLESS curr %][% RETURN %][% END %] [% END %] [% BLOCK pp %] [% SET name = name.replace('.*?#', '') %] [% name.replace('>$', '') %] [% END %] [% BLOCK pp_row %] [% SET list = name.split('/') %] [% SET l2 = list.last.split('#') %] [% l2.first %]#[% l2.last %] [% END %] [% BLOCK pp_col %] [% SET list = name.split('/') %] [% SET l2 = list.last.split('#') %] [% SET l3 = l2.last.split('::') %] [% l2.first %]#[% l3.1 %] [% END %] [% BLOCK pp_score %] [% IF s > 0.6 %][% RETURN %][% END %] [% IF s > 0.4 %][% RETURN %][% END %] [% END %] [% BLOCK pp_score2 %] [% IF s > 0.6 %] bar-success[% RETURN %][% END %] [% IF s > 0.01 %] bar-warning[% RETURN %][% END %] bar-danger [% END %] [% BLOCK pp_file %] [% SET list = n.split('/') %] [% SET l2 = list.last.split('#') %] [% SET l3 = l2.last.split('::') %] [% l3.0 %] [% END %] [% BLOCK explain_link %] [% SET list = id.split('/') %] [% list.last.replace('#','-') %] [% END %]