-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
192 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
import React from 'react' | ||
import { | ||
Button, | ||
Dialog, | ||
DialogTitle, | ||
DialogContent, | ||
DialogActions, | ||
Divider, | ||
IconButton, | ||
Typography, | ||
} from '@mui/material' | ||
import { makeStyles } from 'tss-react/mui' | ||
|
||
// icons | ||
import CloseIcon from '@mui/icons-material/Close' | ||
import SettingsIcon from '@mui/icons-material/Settings' | ||
|
||
const useStyles = makeStyles()(theme => ({ | ||
closeButton: { | ||
position: 'absolute', | ||
right: theme.spacing(1), | ||
top: theme.spacing(1), | ||
color: theme.palette.grey[500], | ||
}, | ||
dialogContent: {}, | ||
})) | ||
|
||
export default function HelpDialog({ | ||
handleClose, | ||
}: { | ||
handleClose: () => void | ||
}) { | ||
const { classes } = useStyles() | ||
return ( | ||
<Dialog maxWidth="xl" open onClose={() => handleClose()}> | ||
<DialogTitle> | ||
Feature sequence panel | ||
{handleClose ? ( | ||
<IconButton | ||
className={classes.closeButton} | ||
onClick={() => handleClose()} | ||
> | ||
<CloseIcon /> | ||
</IconButton> | ||
) : null} | ||
</DialogTitle> | ||
<Divider /> | ||
|
||
<DialogContent className={classes.dialogContent}> | ||
<Typography paragraph> | ||
The "Feature sequence" panel shows the underlying genomic sequence for | ||
a given feature, fetched from the reference genome. | ||
</Typography> | ||
<Typography> | ||
For gene features, this panel does special calculations to e.g. stitch | ||
together the coding sequence, the options are: | ||
</Typography> | ||
<ul> | ||
<li>CDS - shows the stitched together CDS sequences</li> | ||
<li> | ||
Protein - the translated coding sequence, with the "standard" | ||
genetic code | ||
</li> | ||
<li>cDNA - shows the UTRs and stitched together CDS sequences</li> | ||
<li> | ||
Gene w/ introns - the sequence underlying the entire gene including | ||
including introns, with UTR and CDS highlighted | ||
</li> | ||
<li> | ||
Gene w/ Nbp introns - same "Gene w/ introns", but limiting to a | ||
subset of the intron sequence displayed | ||
</li> | ||
<li> | ||
Gene +/- Nbp up+down stream - same as "Gene w/ introns" but with up | ||
and downstream sequence displayed | ||
</li> | ||
<li> | ||
Gene +/- Nbp up+down stream, Nbp introns - same as "Gene w/ | ||
introns", but with limited intron sequence displayed and up and | ||
downstream sequence | ||
</li> | ||
</ul> | ||
<Typography paragraph> | ||
For other feature types, the options are: | ||
</Typography> | ||
<ul> | ||
<li> | ||
Feature sequence - the reference genome sequence underlying the | ||
feature | ||
</li> | ||
<li> | ||
Feature sequence +/- Nbp up+down stream - the reference genome | ||
sequence underlying the feature, with the up and downstream sequence | ||
</li> | ||
</ul> | ||
<Typography> | ||
Note: you can use the "gear icon" <SettingsIcon /> to edit the number | ||
of bp displayed up/downstream and in the intron region | ||
</Typography> | ||
</DialogContent> | ||
|
||
<DialogActions> | ||
<Button onClick={() => handleClose()} autoFocus variant="contained"> | ||
Close | ||
</Button> | ||
</DialogActions> | ||
</Dialog> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters