Skip to content

Commit

Permalink
Merge pull request #539 from hammerlab/issue-473-extract-filter-field…
Browse files Browse the repository at this point in the history
…-in-vcf

Display FILTER & QUAL fields in the table
  • Loading branch information
ihodes committed Mar 24, 2015
2 parents 5924850 + c1db41b commit 57b0cfc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion cycledash/static/js/examine/components/VCFTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ var VCFTableHeader = React.createClass({
</th>,
<th key='ref' className='ref'>REF</th>,
<th key='arrow' className='arrow'></th>,
<th key='alt' className='alt'>ALT</th>
<th key='alt' className='alt'>ALT</th>,
<th key='quality' className='quality'>quality</th>,
<th key='filters' className='filters'>filters</th>
];

_.each(this.props.columns, (columns, topLevelColumnName) => {
Expand Down Expand Up @@ -326,6 +328,12 @@ var VCFRecord = React.createClass({
<td key='arrow' className='arrow'></td>,
<td key='alt' className='alt' title={this.props.record.alternates}>
{this.props.record.alternates}
</td>,
<td key='quality' className='quality' title={this.props.record.quality}>
{this.props.record.quality}
</td>,
<td key='filters' className='filters' title={this.props.record.filters}>
{this.props.record.filters}
</td>
];
_.each(this.props.columns, (columns, topLevelColumnName) => {
Expand Down
2 changes: 1 addition & 1 deletion tests/js/ExaminePage-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ describe('ExaminePage', function() {
// Make sure all 19 columns are here.
var totalColumns = Utils.findInComponent(
'.vcf-table thead tr:nth-child(2) th', examine).length;
assert.equal(totalColumns, 19);
assert.equal(totalColumns, 21);

var columnAttributes = Utils.findInComponent(
'.vcf-table thead tr:nth-child(2) th', examine).map(function(el) {
Expand Down

0 comments on commit 57b0cfc

Please sign in to comment.