From 51bb934f6334c21623cead0d083f7e7d4ee7ea22 Mon Sep 17 00:00:00 2001 From: Arnav Date: Tue, 28 Jan 2020 21:19:04 -0600 Subject: [PATCH] Changed calling card STRING field to ANNOTATION --- frontend/src/components/trackVis/CallingCardTrack.js | 4 ++-- frontend/src/model/CallingCard.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/trackVis/CallingCardTrack.js b/frontend/src/components/trackVis/CallingCardTrack.js index f3709cee..313adabd 100644 --- a/frontend/src/components/trackVis/CallingCardTrack.js +++ b/frontend/src/components/trackVis/CallingCardTrack.js @@ -143,10 +143,10 @@ class CallingCardTrack extends React.PureComponent { Value Strand - String + Annotation ); - const rows = cards.slice(0, 10).map((card,i) => {card.value}{card.strand}{card.string}); + const rows = cards.slice(0, 10).map((card,i) => {card.value}{card.strand}{card.annotation}); return {head}{rows}
; } diff --git a/frontend/src/model/CallingCard.ts b/frontend/src/model/CallingCard.ts index 6d2c6dd2..38f2ad06 100644 --- a/frontend/src/model/CallingCard.ts +++ b/frontend/src/model/CallingCard.ts @@ -5,7 +5,7 @@ import BedRecord from '../dataSources/bed/BedRecord'; enum CallingCardColumnIndex { VALUE=3, STRAND=4, - STRING=5 + ANNOTATION=5 }; @@ -25,7 +25,7 @@ class CallingCard extends Feature { * Constructs a new CallingCard, given a string from tabix * */ - string: any; + annotation: any; value: number; relativeX: number; // Store relative position of CallingCard in visualizer relativeY: number; // Used to find nearest CallingCard to cursor for tooltip; also for downsampling @@ -33,7 +33,7 @@ class CallingCard extends Feature { const locus = new ChromosomeInterval(bedRecord.chr, bedRecord.start, bedRecord.end); super('', locus, bedRecord[CallingCardColumnIndex.STRAND]); this.value = Number.parseFloat(bedRecord[CallingCardColumnIndex.VALUE]); - this.string = bedRecord[CallingCardColumnIndex.STRING]; + this.annotation = bedRecord[CallingCardColumnIndex.ANNOTATION]; } }