Sha256: b4997e2fce485f0c3866485bd28ab44cba3ad8bd17db464d492770e504e9276e

Contents?: true

Size: 1.71 KB

Versions: 4

Compression:

Stored size: 1.71 KB

Contents

Title:			SNV Comparison Report
Subtitle:		A side-by-side comparison
Format:			complete
CSS:        report.css

# SNV Comparison Report

<% loader = YouAndMe::RawDataFileLoader.new %>

- Left file: <%= @left_file %>
- Right file: <%= @right_file %>
- SNPs sequenced in both profiles: <%= @both_rsid.length %> (<%= 100.0 * @both_rsid.length / @left.length %>% of left and <%= 100.0 * @both_rsid.length / @right.length %>% of right.)
- Same genotype when SNV in both profiles: <%= @rsid_same.length %> (<%= "%.3f" % (100.0 * @rsid_same.length / @left.length) %>% of left and <%= "%.3f" % (100.0 * @rsid_same.length / @right.length) %>% of right.))
- Differing genotypes when SNV in both profiles: <%= @rsid_diff.length %> (<%= "%.3f" % (100.0 * @rsid_diff.length / @left.length) %>% of left and <%= "%.3f" % (100.0 * @rsid_diff.length / @right.length) %>% of right.))
- Generated <%= Time.now.strftime("%m/%d/%Y at %I:%M%p") %>.

## Same Genotype

The following <%= @rsid_same.length %> SNVs are the *same* in both profiles. Click the links in the last column for access to scientific literature.

[Same Genotype]
| rsID | Genotype | Reference Position | Links ||
 -------- |
<% @rsid_same.each do |n| %><%= n[0][:rsid] %> | <%= n[0][:genotype] %> | <%= n[0][:position] %> |<%= loader.markdown_links(n[0]) %>
<% end %>


## Different Genotype

The follow <%= @rsid_diff.length %> SNVs *differ* between the profiles. Click the links in the last column for access to scientific literature.

[Same Genotype]
| rsID | Left Genotype | Right Genotype | Reference Position | Links ||
 -------- |
<% @rsid_diff.each do |n| %><%= n[0][:rsid] %> | <%= n[0][:genotype] %> | <%= n[1][:genotype] %> | <%= n[0][:position] %> | <%= loader.markdown_links(n[0]) %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
youandme-0.2.3 lib/youandme/report.md.erb
youandme-0.2.2 lib/youandme/report.md.erb
youandme-0.2.1 lib/youandme/report.md.erb
youandme-0.2.0 lib/youandme/report.md.erb