Skip to content

Commit

Permalink
FIX: added correct headers to csv output
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkle committed Jun 12, 2017
1 parent 707239c commit d015912
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
18 changes: 9 additions & 9 deletions src/components/ResultFishers.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ class ResultFishers extends Component {
// ));
return (
<BootstrapTable data={results.value.data} exportCSV search options={options}>
<TableHeaderColumn isKey dataField='0' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } } width='400'>Target</TableHeaderColumn>
<TableHeaderColumn dataField='1' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } }>QueryA</TableHeaderColumn>
<TableHeaderColumn dataField='2' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } }>QueryBt</TableHeaderColumn>
<TableHeaderColumn dataField='3' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } } width='140'>#Present QueryA</TableHeaderColumn>
<TableHeaderColumn dataField='4' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } } width='140'>#Absent QueryA</TableHeaderColumn>
<TableHeaderColumn dataField='5' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } } width='140'>#Present QueryB</TableHeaderColumn>
<TableHeaderColumn dataField='6' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } } width='140'>#Absent QueryB</TableHeaderColumn>
<TableHeaderColumn dataField='7' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } } width='140'>P-Value</TableHeaderColumn>
<TableHeaderColumn dataField='8' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } } width='140'>Odds Ratio</TableHeaderColumn>
<TableHeaderColumn isKey dataField='0' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } } width='400' csvHeader='Target'>Target</TableHeaderColumn>
<TableHeaderColumn dataField='1' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } } csvHeader='QueryA'>QueryA</TableHeaderColumn>
<TableHeaderColumn dataField='2' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } } csvHeader='QueryB'>QueryB</TableHeaderColumn>
<TableHeaderColumn dataField='3' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } } width='140' csvHeader='#Present QueryA'>#Present QueryA</TableHeaderColumn>
<TableHeaderColumn dataField='4' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } } width='140' csvHeader='#Absent QueryA'>#Absent QueryA</TableHeaderColumn>
<TableHeaderColumn dataField='5' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } } width='140' csvHeader='#Present QueryB'>#Present QueryB</TableHeaderColumn>
<TableHeaderColumn dataField='6' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } } width='140' csvHeader='#Absent QueryB'>#Absent QueryB</TableHeaderColumn>
<TableHeaderColumn dataField='7' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } } width='140' csvHeader='P-Value'>P-Value</TableHeaderColumn>
<TableHeaderColumn dataField='8' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } } width='140' csvHeader='Odds Ratio'>Odds Ratio</TableHeaderColumn>
</BootstrapTable>
// <DataTable plain>
// <TableHeader>
Expand Down
16 changes: 8 additions & 8 deletions src/components/ResultSubtyping.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ class ResultSubtyping extends Component {
// ));
return (
<BootstrapTable data={results.value} exportCSV search options={options}>
<TableHeaderColumn isKey dataField='filename' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } } width='400'>Filename</TableHeaderColumn>
<TableHeaderColumn dataField='contigid' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } } width='180'>Contig ID</TableHeaderColumn>
<TableHeaderColumn dataField='analysis' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } }>Analysis</TableHeaderColumn>
<TableHeaderColumn dataField='hitname' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } }>Hit</TableHeaderColumn>
<TableHeaderColumn dataField='hitorientation' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } } width='100'>Orientation</TableHeaderColumn>
<TableHeaderColumn dataField='hitstop' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } } width='140'>Start</TableHeaderColumn>
<TableHeaderColumn dataField='hitstop' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } } width='140'>Stop</TableHeaderColumn>
<TableHeaderColumn dataField='hitcutoff' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } } width='80'>Cutoff</TableHeaderColumn>
<TableHeaderColumn isKey dataField='filename' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } } width='400' csvHeader='Filename'>Filename</TableHeaderColumn>
<TableHeaderColumn dataField='contigid' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } } width='180' csvHeader='Contig ID'>Contig ID</TableHeaderColumn>
<TableHeaderColumn dataField='analysis' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } } csvHeader='Analysis'>Analysis</TableHeaderColumn>
<TableHeaderColumn dataField='hitname' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } } csvHeader='Hit'>Hit</TableHeaderColumn>
<TableHeaderColumn dataField='hitorientation' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } } width='100' csvHeader='Orientation'>Orientation</TableHeaderColumn>
<TableHeaderColumn dataField='hitstop' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } } width='140' csvHeader='Start'>Start</TableHeaderColumn>
<TableHeaderColumn dataField='hitstop' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } } width='140' csvHeader='Stop'>Stop</TableHeaderColumn>
<TableHeaderColumn dataField='hitcutoff' dataSort filter={ { type: 'TextFilter', placeholder: 'Please enter a value' } } width='80' csvHeader='Cutoff'>Cutoff</TableHeaderColumn>
</BootstrapTable>

// <DataTable plain>
Expand Down

0 comments on commit d015912

Please sign in to comment.