Skip to content

Commit

Permalink
feat: skeleton for similar proteins
Browse files Browse the repository at this point in the history
  • Loading branch information
xnought committed Jan 31, 2024
1 parent 0761289 commit ae27dd5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions frontend/src/lib/SimilarProteins.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<script lang="ts">
export let queryProteinName: string;
</script>

<div>Similar Proteins</div>

<style>
/* put stuff here */
</style>
5 changes: 5 additions & 0 deletions frontend/src/routes/protein/[proteinName]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import References from "$lib/References.svelte";
import { ChevronDownSolid, PenOutline } from "flowbite-svelte-icons";
import EntryCard from "$lib/EntryCard.svelte";
import SimilarProteins from "$lib/SimilarProteins.svelte";
const fileDownloadDropdown = ["pdb", "fasta"];
Expand Down Expand Up @@ -56,6 +57,10 @@
<b>Mass (Da)</b>
<div><code>{numberWithCommas(entry.mass)}</code></div>
</div>
<div>
<b>Structurally Similar Proteins</b>
<SimilarProteins queryProteinName={entry.name} />
</div>
</EntryCard>

<!-- Article / Wiki entry -->
Expand Down

0 comments on commit ae27dd5

Please sign in to comment.