Skip to content

Commit

Permalink
nothing is working
Browse files Browse the repository at this point in the history
  • Loading branch information
y330 committed Oct 10, 2024
1 parent 9759b93 commit 492634b
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 43 deletions.
69 changes: 30 additions & 39 deletions Eplant/views/InteractionsViewer/Topbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,20 @@ const Topbar: FC<TopbarProps> = ({ gene }) => {
interConfSelector: '[interolog_conf <=', // PPPI correlation
EPDISelector: '[type = "PDI"][method = "E"]',
PPDISelector: '[type = "PDI"][method = "P"]',
fimoConfSelector: '[fimo_conf >= '
}
fimoConfSelector: '[fimo_conf >= ',
}
const zoomValue = 1000

const applyFilters = () =>{
const applyFilters = () => {
// Create selectors
const eppiCorr = selectors.EPPISelector + selectors.corrSelector + EPPICorrValue + ']';
const pppiCorr = selectors.PPPISelector + selectors.corrSelector + PPPICorrValue + ']';
const pppiConf = selectors.PPPISelector + selectors.interConfSelector + PPPIConfValue + ']';
const ppdiConf = selectors.PPDISelector + selectors.fimoConfSelector + PPDIConfValue + ']';
const eppiCorr =
selectors.EPPISelector + selectors.corrSelector + EPPICorrValue + ']'
const pppiCorr =
selectors.PPPISelector + selectors.corrSelector + PPPICorrValue + ']'
const pppiConf =
selectors.PPPISelector + selectors.interConfSelector + PPPIConfValue + ']'
const ppdiConf =
selectors.PPDISelector + selectors.fimoConfSelector + PPDIConfValue + ']'
}
const handleLegendClick = () => {
setShowLegend(!showLegend)
Expand Down Expand Up @@ -84,7 +88,7 @@ const Topbar: FC<TopbarProps> = ({ gene }) => {
</ButtonGroup>
</Toolbar>
<Popup open={showLegend} anchor={legendRef.current}>
<Box sx={{zIndex: 120}}>
<Box sx={{ zIndex: 120 }}>
<img src='thumbnails/legendAIV.png' width={200}></img>
</Box>
</Popup>
Expand All @@ -102,50 +106,37 @@ const Topbar: FC<TopbarProps> = ({ gene }) => {
id='filter-option-1'
primary='Hide ALL experimentally determined Protein-Protein interactions'
/>
<Switch
edge='end'
onChange={() => {}}
checked={false}

/>
<Switch edge='end' onChange={() => {}} checked={false} />
</ListItem>
<ListItem>
<ListItemText id='filter-option-2' primary='Hide only with correlation less than: 0.5 ' />
<Switch
edge='end'
onChange={() => {}}
checked={false}

<ListItemText
id='filter-option-2'
primary='Hide only with correlation less than: 0.5 '
/>
<Switch edge='end' onChange={() => {}} checked={false} />
</ListItem>
<ListItem>
<ListItemText id='filter-option-3' primary='Hide ALL predicted
<ListItemText
id='filter-option-3'
primary='Hide ALL predicted
Protein-Protein interactions Hide only with correlation less than:
0.5' />
<Switch
edge='end'
onChange={() => {}}
checked={false}

0.5'
/>
<Switch edge='end' onChange={() => {}} checked={false} />
</ListItem>
<ListItem>
<ListItemText id='filter-option-4' primary='Hide only with confidence less than 2' />
<Switch
edge='end'
onChange={() => {}}
checked={false}

<ListItemText
id='filter-option-4'
primary='Hide only with confidence less than 2'
/>
<Switch edge='end' onChange={() => {}} checked={false} />
</ListItem>
<ListItem>
<ListItemText id='filter-option-5' primary='Hide only with confidence less than 2' />
<Switch
edge='end'
onChange={() => {}}
checked={false}

<ListItemText
id='filter-option-5'
primary='Hide only with confidence less than 2'
/>
<Switch edge='end' onChange={() => {}} checked={false} />
</ListItem>
</List>
</Box>
Expand Down
2 changes: 1 addition & 1 deletion Eplant/views/InteractionsViewer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import loadInteractions from './scripts/loadInteractions'
import loadSublocalizations from './scripts/loadSublocalizations'
import cytoStyles from './cytoStyles'
import { InteractionsIcon } from './icon'
import Topbar from './Topbar.1'
import Topbar from './Topbar'
// import GeneDialog from './GeneDialog'
import {
Interaction,
Expand Down
6 changes: 3 additions & 3 deletions Eplant/views/InteractionsViewer/scripts/filterLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ export const applyFilter = (cy: Core, selector: string) => {


/**
* Clears interaction view of nodes without associated edges
* @returns {void}
*/
* Clears interaction view of nodes without associated edges
* @returns {void}
*/
export const cleanNodes = (cy: Core) => {
// Get all nodes in interaction view
const nodes = cy.nodes();
Expand Down

0 comments on commit 492634b

Please sign in to comment.