diff --git a/frontend/src/components/trackVis/GenomeAlignTrack.tsx b/frontend/src/components/trackVis/GenomeAlignTrack.tsx index 73d6205b..6a648b0e 100644 --- a/frontend/src/components/trackVis/GenomeAlignTrack.tsx +++ b/frontend/src/components/trackVis/GenomeAlignTrack.tsx @@ -200,13 +200,13 @@ class GenomeAlignTrackWithoutOptions extends React.Component alert("You clicked on " + queryFeature.getLocus().toString())} + />; const queryGenomeRect = alert("You clicked on " + queryFeature.getLocus().toString())} />; @@ -245,10 +254,10 @@ class GenomeAlignTrackWithoutOptions extends React.Component { const points = [ - [Math.floor(segment.targetXSpan.start), 0], + [Math.floor(segment.targetXSpan.start), RECT_HEIGHT], [Math.floor(segment.queryXSpan.start), queryRectTopY], [Math.ceil(segment.queryXSpan.end), queryRectTopY], - [Math.ceil(segment.targetXSpan.end), 0], + [Math.ceil(segment.targetXSpan.end), RECT_HEIGHT], ]; if ((!plotReverse && segment.record.queryStrand === '-') || (plotReverse && segment.record.queryStrand === '+')) { @@ -258,7 +267,7 @@ class GenomeAlignTrackWithoutOptions extends React.Component alert("You clicked on " + segment.record.getLocus())} @@ -266,6 +275,7 @@ class GenomeAlignTrackWithoutOptions extends React.Component + {targetGenomeRect} {queryGenomeRect} {label} {ensureMaxListLength(segmentPolygons, MAX_POLYGONS)} @@ -297,7 +307,7 @@ class GenomeAlignTrackWithoutOptions extends React.Component - this.renderRoughAlignment(placement, strand === '-', height, queryColor)); - const viewWindow = alignment.primaryVisData.viewWindow; - const arrow = this.renderRoughStrand(strand, viewWindow, height); - svgElements.push(arrow); + this.renderRoughAlignment(placement, strand === '-', height)); + const arrows = this.renderRoughStrand("+", 0, viewWindow, false); + svgElements.push(arrows); + const primaryViewWindow = alignment.primaryVisData.viewWindow; + const primaryArrows = this.renderRoughStrand(strand, height - RECT_HEIGHT, primaryViewWindow, true); + svgElements.push(primaryArrows); visualizer = {"No alignment available"}; + return
No alignment available
; } else { const highlightLength = Math.max(Math.round(basesPerPixel), 1); diff --git a/frontend/src/components/trackVis/commonComponents/HorizontalFragment.js b/frontend/src/components/trackVis/commonComponents/HorizontalFragment.js index 3644e964..4687503e 100644 --- a/frontend/src/components/trackVis/commonComponents/HorizontalFragment.js +++ b/frontend/src/components/trackVis/commonComponents/HorizontalFragment.js @@ -55,7 +55,8 @@ class HorizontalFragment extends React.Component { * @inheritdoc */ render() { - const {height, targetXSpanList, queryXSpanList, primaryColor, queryColor, onMouseMove, onMouseLeave, style, children, ...otherProps} = this.props; + const {height, targetXSpanList, queryXSpanList, primaryColor, queryColor, + onMouseMove, onMouseLeave, style, children, rectHeight, ...otherProps} = this.props; // calculate xSpanIndex by comparing relativeX with tangetXSpan. const relativeX = this.state.relativeX; const xSpanIndex = targetXSpanList.reduce((iCusor, x, i) => x.start < relativeX && x.end >= relativeX ? i : iCusor, NaN); @@ -73,8 +74,8 @@ class HorizontalFragment extends React.Component { lines = ( {} - {} - {} + {} + {} {} ) diff --git a/frontend/src/dataSources/GeneSource.js b/frontend/src/dataSources/GeneSource.js index 4ae2fc12..9cf94633 100644 --- a/frontend/src/dataSources/GeneSource.js +++ b/frontend/src/dataSources/GeneSource.js @@ -3,7 +3,7 @@ import _ from 'lodash'; import DataSource from './DataSource'; -export const AWS_API = "https://lambda.epigenomegateway.org"; +export const AWS_API = "https://lambda.epigenomegateway.org/v2"; /** * A DataSource that calls our backend API for gene annotations. *