diff --git a/Eplant/Eplant.tsx b/Eplant/Eplant.tsx
index 06e629f5..1d9de465 100644
--- a/Eplant/Eplant.tsx
+++ b/Eplant/Eplant.tsx
@@ -42,7 +42,6 @@ import { Theme } from '@mui/system'
import ErrorBoundary from './util/ErrorBoundary'
import { dark, light } from './theme'
-
// TODO: Make this drawer support opening/closing on mobile
const sideBarWidth = 300
diff --git a/Eplant/main.tsx b/Eplant/main.tsx
index ab132ac7..19ea1b45 100644
--- a/Eplant/main.tsx
+++ b/Eplant/main.tsx
@@ -50,11 +50,11 @@ function RootApp() {
return (
-
-
-
-
-
+
+
+
+
+
)
diff --git a/Eplant/views/eFP/EFPPreview.tsx b/Eplant/views/eFP/EFPPreview.tsx
index 0ec2146c..8639ef39 100644
--- a/Eplant/views/eFP/EFPPreview.tsx
+++ b/Eplant/views/eFP/EFPPreview.tsx
@@ -56,10 +56,10 @@ export default function EFPPreview({
state={{
renderAsThumbnail: true,
colorMode: colorModeDeferred,
- maskThreshold: maskThreshold
+ maskThreshold: maskThreshold,
}}
geneticElement={gene}
- dispatch={() => { }}
+ dispatch={() => {}}
/>
void
- onSubmit: (threshhold: number) => void
+ state: EFPViewerState
+ onClose: () => void
+ onSubmit: (threshhold: number) => void
}
const MaskModal = ({ state, onClose, onSubmit }: MaskModalProps) => {
- const [sliderValue, setSliderValue] = useState
(state.maskThreshold);
- const theme = useTheme()
- const handleSliderChange = (event: Event, newValue: number | number[]) => {
- setSliderValue(newValue as number);
- };
+ const [sliderValue, setSliderValue] = useState(state.maskThreshold)
+ const theme = useTheme()
+ const handleSliderChange = (event: Event, newValue: number | number[]) => {
+ setSliderValue(newValue as number)
+ }
- const handleClose = () => {
- setSliderValue(state.maskThreshold)
- onClose();
- };
+ const handleClose = () => {
+ setSliderValue(state.maskThreshold)
+ onClose()
+ }
- const handleSubmit = () => {
- onSubmit(sliderValue);
- onClose();
- };
+ const handleSubmit = () => {
+ onSubmit(sliderValue)
+ onClose()
+ }
- return (
-
-
-
- Mask samples if the expression level is within a given range of their standard deviation.
-
-
`${value}%`}
- min={0}
- max={100}
- />
-
-
-
-
-
-
- );
-};
+ return (
+
+
+
+ Mask samples if the expression level is within a given range of their
+ standard deviation.
+
+
`${value}%`}
+ min={0}
+ max={100}
+ />
+
+
+
+
+
+
+ )
+}
-export default MaskModal;
+export default MaskModal
diff --git a/Eplant/views/eFP/Viewer/index.tsx b/Eplant/views/eFP/Viewer/index.tsx
index 4a81982f..4de4bbc1 100644
--- a/Eplant/views/eFP/Viewer/index.tsx
+++ b/Eplant/views/eFP/Viewer/index.tsx
@@ -131,7 +131,7 @@ export default class EFPViewer
public icon: () => JSX.Element,
public description?: string,
public thumbnail?: string,
- ) { }
+ ) {}
getInitialData = async (
gene: GeneticElement | null,
loadEvent: (progress: number) => void,
@@ -162,7 +162,6 @@ export default class EFPViewer
viewData: viewData,
efps: this.efps,
colorMode: 'absolute' as const,
-
}
}
reducer = (state: EFPViewerState, action: EFPViewerAction) => {
@@ -201,12 +200,12 @@ export default class EFPViewer
case 'toggle-mask-modal':
return {
...state,
- maskModalVisible: state.maskModalVisible ? false : true
+ maskModalVisible: state.maskModalVisible ? false : true,
}
case 'set-mask-threshold':
return {
...state,
- maskThreshold: action.threshold
+ maskThreshold: action.threshold,
}
default:
return state
@@ -254,10 +253,10 @@ export default class EFPViewer
state={{
colorMode: props.state.colorMode,
renderAsThumbnail: false,
- maskThreshold: props.state.maskThreshold
+ maskThreshold: props.state.maskThreshold,
}}
geneticElement={props.geneticElement}
- dispatch={() => { }}
+ dispatch={() => {}}
/>
)
}, [
@@ -266,7 +265,7 @@ export default class EFPViewer
props.dispatch,
sortedViewData[activeViewIndex],
props.state.colorMode,
- props.state.maskThreshold
+ props.state.maskThreshold,
])
const ref = React.useRef(null)
const dimensions = useDimensions(ref)
@@ -387,7 +386,12 @@ export default class EFPViewer
props.dispatch({ type: 'toggle-mask-modal' })}
- onSubmit={(threshold) => props.dispatch({ type: 'set-mask-threshold', threshold: threshold })}
+ onSubmit={(threshold) =>
+ props.dispatch({
+ type: 'set-mask-threshold',
+ threshold: threshold,
+ })
+ }
/>