Skip to content

Commit

Permalink
feat: Adds VFB link to flywire_fafb neurons
Browse files Browse the repository at this point in the history
  • Loading branch information
neomorphic committed Dec 2, 2024
1 parent f5efcc9 commit 37d740a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/components/ExternalLink.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ const lmrawUrl =
const mcfoUrl =
"http://gen1mcfo.janelia.org/cgi-bin/view_gen1mcfo_imagery.cgi?slidecode=<NAME>";
// https://neuprint.janelia.org/view?dataset=hemibrain:v1.1&bodyid=12345678
const vfbUrl = "http://virtualflybrain.org/xref/neuronbridge/<NAME>";
const flyWireUrl =
"https://codex.flywire.ai/app/cell_details?data_version=<VERSION>&root_id=<ID>";

function VFBLink({ name }) {
const vfbUrl = "http://virtualflybrain.org/xref/neuronbridge/<NAME>";

return (
<a href={vfbUrl.replace(/<NAME>/, name)}>
Virtual Fly Brain{" "}
Expand All @@ -29,9 +30,6 @@ VFBLink.propTypes = {
function FlyWireLink({ tag }) {
const [, version, id] = tag.split(":");

const flyWireUrl =
"https://codex.flywire.ai/app/cell_details?data_version=<VERSION>&root_id=<ID>";

return (
<a
href={flyWireUrl
Expand Down Expand Up @@ -111,7 +109,11 @@ export default function ExternalLink({ id, isLM, library, publishedName }) {
.replace(/<DATASET>/, dataset);

const secondaryLink = library.match(/flywire_fafb/i) ? (
<>
<FlyWireLink tag={id} />
<br/>
<VFBLink name={id} />
</>
) : (
<VFBLink name={id} />
);
Expand Down

0 comments on commit 37d740a

Please sign in to comment.