<%_ for(const group of ligation.sets) { _%> <%_ const tagSet = new Set(group.ligSets); _%> <%_ const featureSettings = group.tag === 'calt' ? `style="font-feature-settings:'${group.tag}' ${group.switch||'on'}"` : `style="font-feature-settings: 'calt' off, '${group.tag}' ${group.switch||'on'}"` _%> <%_ } _%>
Feature TagDescription
<%= group.tagName || group.tag %><%= group.switch ? ' ' + group.switch : ''%> <%= group.desc %>
> <%_ for(const line of ligation.samples) { _%>
<%_ for(let i =  0; i < line.length; i++) { _%>
							<%_     const item = line[i]; _%>
							<%_     if(i > 0) { _%><%= " " %><%_ } _%>
							<%_     if (tagSet.has(item.tags[1]) || tagSet.has(item.tags[2])) { _%><%= item.s %><%_ _%>
							<%_     } else if (tagSet.has(item.tags[0])) { _%><%= item.s %><%_ _%>
							<%_     } else { _%><%= item.s %><%_ } _%>
							<%_ } _%>
<%_ } _%>