Skip to content

Commit

Permalink
fixed nucleotide size visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaGuarracino committed Jun 7, 2020
1 parent 448a6d4 commit 9268c13
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -810,9 +810,7 @@ class App extends Component {
x={this.props.store.leftOffset} // removed leftOffset to simplify code. Relative coordinates are always better.
y={-this.props.store.topOffset} // For some reason, I have to put this, but I'd like to put 0
width={this.state.actualWidth}
height={
this.visibleHeightPixels() + this.props.store.nucleotideHeight
}
height={this.visibleHeightPixels() + this.props.store.pixelsPerColumn}
>
<Layer ref={this.layerRef}>
{this.loadingMessage()}
Expand Down
5 changes: 3 additions & 2 deletions src/ComponentNucleotides.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ class ComponentNucleotides extends React.Component {
<Text
key={"nuc_text" + x}
x={x_val + x * this.props.store.pixelsPerColumn}
y={this.props.store.topOffset - this.props.store.nucleotideHeight}
y={this.props.store.topOffset - this.props.store.pixelsPerColumn}
text={this.props.nucleotides[x]}
align="center"
height={this.props.store.nucleotideHeight}
height={this.props.store.pixelsPerColumn}
width={this.props.store.pixelsPerColumn}
fontSize={this.props.store.pixelsPerColumn + 2}
/>
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/ControlHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class ControlHeader extends React.Component {
</button>
</span>
<span style={{ marginLeft: "30px" }}>
Pangenome Last Bin Position: {this.props.store.last_bin_pangenome}
Pangenome Length: {this.props.store.last_bin_pangenome}
</span>
<div className={"row"}>
Jump to path at nucleotide position:
Expand Down
1 change: 0 additions & 1 deletion src/ViewportInputsStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ RootStore = types

pathNucPos: types.optional(PathNucPos, { path: "path", nucPos: 0 }), // OR: types.maybe(PathNucPos)
pathIndexServerAddress: "http://193.196.29.24:3010/",
nucleotideHeight: 10,

loading: true,
copyNumberColorArray: types.optional(types.array(types.string), [
Expand Down

1 comment on commit 9268c13

@AndreaGuarracino
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#86 fixed nucleotide size visualization

Please sign in to comment.