Skip to content

Commit

Permalink
added human mouse icons on genome page
Browse files Browse the repository at this point in the history
  • Loading branch information
NishiPhalke committed Oct 9, 2020
1 parent 2bfb976 commit fd22d0b
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>Genome Browser</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
15 changes: 12 additions & 3 deletions src/components/genomepage/genomepage.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import React, { useState, useEffect, useCallback } from 'react';
import { ASSEMBLY_QUERY } from './queries';
import { AssemblyInfo } from '../../genomes/page/types';
import { Segment, Container, Grid, Header, Input } from 'semantic-ui-react';
import { Segment, Container, Grid, Header, Input, Image } from 'semantic-ui-react';
import MainMenu from './../homepage/masthead/menu';
import { mainMenuItems } from './../homepage/config/menuitems';
import dna from '../../dna.png';
import dna from '../../images/dna.png';
import humanIcon from '../../images/humanicon.png';
import mouseIcon from '../../images/mouse.png';
import { Link } from 'react-router-dom';
import ContentDivider from './../homepage/content/divider';
const groupBySpecies = (assemblies: AssemblyInfo[]) => {
Expand Down Expand Up @@ -40,7 +42,6 @@ const GenomePage: React.FC = () => {
fetchData();
}, []);
const onSearchChange = useCallback((e, d) => {
//setSearchVal(d.result);
setQ(e.target.value.toLowerCase());
}, []);
let groupedAssemblies = assemblies && groupBySpecies(assemblies);
Expand Down Expand Up @@ -72,6 +73,14 @@ const GenomePage: React.FC = () => {
Click a link to open the UMMS Genome Browser for that assembly.
</Grid.Column>
</Grid.Row>
<Grid.Row centered>
<Grid.Column width={2} >
<Image height={100} as={Link} to="/browser/hg38" width={100} src={humanIcon} alt="Human icon" />
</Grid.Column>
<Grid.Column width={2} >
<Image height={100} as={Link} to="/browser/mm10" width={100} src={mouseIcon} alt="Mouse icon" />
</Grid.Column>
</Grid.Row>
<Grid.Row>
<Grid.Column>
<Input
Expand Down
2 changes: 1 addition & 1 deletion src/components/homepage/content/genomes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { Header, Grid, Button } from 'semantic-ui-react';
import { Link } from 'react-router-dom';

import dna from '../../../dna.png';
import dna from '../../../images/dna.png';

const Genomes: React.FC = () => (
<Grid.Row>
Expand Down
4 changes: 2 additions & 2 deletions src/genomes/hg38/tracks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const rampageplus = (domain: Domain) => ({
url: 'gs://data.genomealmanac.org/rampage.plus.bigWig',
preRenderedWidth: 1850,
id: 'rampplus',
title: 'rampage plus',
title: 'RAMPAGE plus',
color: '#000000',
zoomLevel: Math.round((domain.end - domain.start) / 1850),
});
Expand All @@ -121,7 +121,7 @@ export const rampageminus = (domain: Domain) => ({
url: 'gs://data.genomealmanac.org/rampage.minus.bigWig',
preRenderedWidth: 1850,
id: 'rampminus',
title: 'rampage minus',
title: 'RAMPAGE minus',
color: '#000000',
zoomLevel: Math.round((domain.end - domain.start) / 1850),
});
File renamed without changes
Binary file added src/images/humanicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/mouse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fd22d0b

Please sign in to comment.