[% # FOREACH row IN vep_data; '
'; row; '
'; END %] [% # PROCESS dumper.tt dump = params %] [% # PROCESS dumper.tt dump = results.samples %] [% # PROCESS dumper.tt dump = results.errors %] [% # PROCESS dumper.tt dump = results.counts %] [% # PROCESS dumper.tt dump = results.exon_ref %] [% # PROCESS dumper.tt dump = results.vep_data %] [% # PROCESS dumper.tt dump = natural_sort([1,3,'d','a']) %]

vep results [[% results.vep_data.size || 0 %]] :: sample match failures [[% results.counts.no_match || 0 %]] :: non-CDS [[% results.non_cds.size || 0 %]] :: new dataset

[% total = results.counts.accepted; duration = results.runtime; %] Processed [% total || 0 %] accepted rows in [% duration | format('%.2f') %] seconds ([% total / duration | format('%.1f') %]/sec)
[% IF results.errors.size %]
VEP returned the following info:
[% END %] [% data_src = params.data_src; matches = results.counts.matches || 0 %]

Sample results for data src "[% data_src %]" [[% matches %]]

[% BLOCK vep_count; 'VEP entry count - reflecting variants in nucleotide position in CDS ' _ '& amino acid position in protein, or in sift/polyphen scores'; END; %] [% IF params.sift %][% END %] [% IF params.polyphen %][% END %] [% i = 0 %] [% FOREACH lab_number IN nsort_labno(results.samples.match.keys); # PROCESS dumper.tt dump = pair; location_data = results.samples.match.item(lab_number); # PROCESS dumper.tt dump = location_data; FOREACH pair IN location_data; # PROCESS dumper.tt dump = pair; location = pair.key; # PROCESS dumper.tt dump = location; result = pair.value; # PROCESS dumper.tt dump = result; vep_data = results.exon_ref.item(location); # PROCESS dumper.tt dump = vep_data; FOREACH entry IN result; # PROCESS dumper.tt dump = entry; %] [% IF params.sift; class = vep_data.sift.match('deleterious') ? 'highlight' : 'normal' %] [% END %] [% IF params.polyphen; class = vep_data.polyphen.match('damaging') ? 'highlight' : 'normal' %] [% END %] [% END; END; END %]
HMDS ref Exon / Allele VEP Result ConsequenceSIFTPolyPhenExisting variation
[% i = i + 1; i; # loop-within-loop %] [% entry.lab_no %] [% vep_data.exon_id %] [% entry.vep_row_count %] [% entry.result %]% of [% entry.read %] [% vep_data.consequence %][% vep_data.sift %][% vep_data.polyphen %] [% IF vep_data.existing.length > 30 %] [% vep_data.existing | truncate(30) | html %] [% ELSE; vep_data.existing; END %]

Sample match failures [[% results.counts.no_match || 0 %]]

[% i = 0 %] [% FOREACH lab_number IN nsort_labno(results.samples.no_match.keys); # PROCESS dumper.tt dump = pair; location_data = results.samples.no_match.item(lab_number); # PROCESS dumper.tt dump = location_data; FOREACH pair IN location_data; # PROCESS dumper.tt dump = entry; location = pair.key; # PROCESS dumper.tt dump = location; result = pair.value; # PROCESS dumper.tt dump = result; vep_data = results.exon_ref.item(location); # PROCESS dumper.tt dump = vep; FOREACH entry IN result; # PROCESS dumper.tt dump = entry; %] [% END; END; END %]
HMDS ref Exon / Allele VEP Consequence Existing Other
[% i = i + 1; i; # loop-within-loop %] [% entry.lab_no %] [% vep_data.exon_id %] [% entry.vep_row_count %] [% vep_data.consequence %] [% vep_data.existing %] [% 'non-CDS' IF ( NOT vep_data.consequence AND NOT vep_data.existing ) %]

VEP results [[% results.vep_data.size %]]

[%# sift & poly order dependant on VEP::_prediction_and_score() %] [% IF params.sift %][% END %] [% IF params.polyphen %][% END %] [% FOREACH row IN results.vep_data %] [% FOREACH col IN row %] [% END %] [% END %]
ID Chr. Start End Allele Consequence CDS Protein AA Existing variationSIFTPolyPhenExtra
[% loop.count %] [% col | html %]

Non-CDS VEP results [[% results.non_cds.size %]]

[% FOREACH row IN results.non_cds %] [% END %]
ID Chr. Start End Allele
[% loop.count %] [% row.exon_id %] [% row.chromosome %] [% row.start_point %] [% row.end_point %] [% row.allele %]