Skip to content

Commit 90f4533

Browse files
committed
Include ref allele in genotypes page
1 parent 6f39e56 commit 90f4533

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

jbrowse/resources/views/genotypeTable.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@
2828
$.each(rows, function(idx, row){
2929
var contig = row.contig;
3030
var start = row.start;
31+
var refAllele = row.refAllele;
3132

3233
$.each(row.genotypes, function(idx, gt){
33-
var r = [contig, start, gt.sample];
34+
var r = [contig, start, refAllele, gt.sample];
3435

3536
var d = demographics[gt.sample] || {};
3637
$.each(demographicsFields, function(field, displayName) {
@@ -45,6 +46,7 @@
4546
var columns = [
4647
{title: 'Contig'},
4748
{title: 'Position'},
49+
{title: 'Reference Allele'},
4850
{title: 'Sample Name'}
4951
];
5052

jbrowse/src/org/labkey/jbrowse/JBrowseController.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,7 @@ public ApiResponse execute(GetGenotypesForm form, BindException errors)
582582
pos.put("contig", vc.getContig());
583583
pos.put("start", vc.getStart());
584584
pos.put("end", vc.getEnd());
585+
pos.put("refAllele", vc.getReference().getBaseString());
585586

586587
JSONArray genotypes = new JSONArray();
587588
for (Genotype g : vc.getGenotypes())

0 commit comments

Comments
 (0)