Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson committed Feb 15, 2023
1 parent eaf3ee0 commit a0a7db7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
Binary file modified public/favicon.ico
Binary file not shown.
Binary file removed public/logo192.png
Binary file not shown.
Binary file removed public/logo512.png
Binary file not shown.
16 changes: 14 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -1070,6 +1070,9 @@ const App = () => {
const addlExamples = [
["Monkeypox clade II","NC_063383.1"],
["HIV-1","NC_001802.1"],
["M. tuberculosis","https://cov2tree.nyc3.cdn.digitaloceanspaces.com/gensplore/mtb.gb"],
["E. coli K12","https://cov2tree.nyc3.cdn.digitaloceanspaces.com/gensplore/k12.gb"]



]
Expand Down Expand Up @@ -1102,7 +1105,7 @@ const App = () => {

};

const [url, setUrl] = useState("");


const [gbUrl, setGbUrl] = useQueryState("gb")
const [loaded, setLoaded] = useQueryState("loaded")
Expand Down Expand Up @@ -1218,6 +1221,12 @@ onDrop={(e) => {
Load
</button>
</div>
<div>
{genbankId && genbankId.length > 1 && (
<p className="text-gray-500 text-xs mt-2">
This will only work for virus-sized genomes, for bacterial genomes please upload a file above.
</p>)}
</div>


</div>
Expand Down Expand Up @@ -1247,7 +1256,10 @@ onDrop={(e) => {
<li>
<button
className="text-blue-400 hover:text-blue-700 mb-3"
onClick={() => loadFromGenbankId(example[1])}
onClick={

example[1].startsWith("http") ? () => setGbUrl(example[1]) :
() => loadFromGenbankId(example[1])}
>
{example[0]}
</button>
Expand Down

1 comment on commit a0a7db7

@vercel
Copy link

@vercel vercel bot commented on a0a7db7 Feb 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.