Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frontend/src/components/trackVis/CallingCardTrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ class CallingCardTrack extends React.PureComponent {
<tr>
<th scope="col">Value</th>
<th scope="col">Strand</th>
<th scope="col">String</th>
<th scope="col">Annotation</th>
</tr>
</thead>);
const rows = cards.slice(0, 10).map((card,i) => <tr key={i}><td>{card.value}</td><td>{card.strand}</td><td>{card.string}</td></tr>);
const rows = cards.slice(0, 10).map((card,i) => <tr key={i}><td>{card.value}</td><td>{card.strand}</td><td>{card.annotation}</td></tr>);
return <table className="table table-striped table-sm">{head}<tbody>{rows}</tbody></table>;
}

Expand Down
6 changes: 3 additions & 3 deletions frontend/src/model/CallingCard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import BedRecord from '../dataSources/bed/BedRecord';
enum CallingCardColumnIndex {
VALUE=3,
STRAND=4,
STRING=5
ANNOTATION=5
};


Expand All @@ -25,15 +25,15 @@ 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
constructor(bedRecord: BedRecord) {
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];
}
}

Expand Down