import React, { useState } from 'react' import { ErrorMessage, FileSelector } from '@jbrowse/core/ui' import { Button, Container, Typography } from '@mui/material' import { observer } from 'mobx-react' import ImportFormExamples from './ImportFormExamples.tsx' import { load } from './util.ts' import type { MsaViewModel } from '../../model.ts' import type { FileLocation } from '@jbrowse/core/util/types' const ImportForm = observer(function ({ model }: { model: MsaViewModel }) { const [msaFile, setMsaFile] = useState() const [treeFile, setTreeFile] = useState() const [gffFile, setGffFile] = useState() const { error } = model return (
{error ? : null} Open an MSA file (stockholm or clustal format) and/or a tree file (newick format). Note: you can open up just an MSA or just a tree, both are not required. Some MSA files e.g. stockholm format have an embedded tree also and this is fine, and opening a separate tree file is not required.
MSA file or URL
Tree file or URL
InterProScan GFF file or URL (optional)
Examples
) }) export default ImportForm