-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from i-VRESSE/merge-analysis-components
Move components from @i-vresse/haddock3-analysis-components to here
- Loading branch information
Showing
57 changed files
with
4,379 additions
and
33 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 |
---|---|---|
@@ -1,3 +1,62 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
|
||
@layer base { | ||
:root { | ||
--background: 0 0% 100%; | ||
--foreground: 0 0% 3.9%; | ||
--card: 0 0% 100%; | ||
--card-foreground: 0 0% 3.9%; | ||
--popover: 0 0% 100%; | ||
--popover-foreground: 0 0% 3.9%; | ||
--primary: 0 0% 9%; | ||
--primary-foreground: 0 0% 98%; | ||
--secondary: 0 0% 96.1%; | ||
--secondary-foreground: 0 0% 9%; | ||
--muted: 0 0% 96.1%; | ||
--muted-foreground: 0 0% 45.1%; | ||
--accent: 0 0% 96.1%; | ||
--accent-foreground: 0 0% 9%; | ||
--destructive: 0 84.2% 60.2%; | ||
--destructive-foreground: 0 0% 98%; | ||
--border: 0 0% 89.8%; | ||
--input: 0 0% 89.8%; | ||
--ring: 0 0% 3.9%; | ||
--radius: 0.3rem; | ||
--chart-1: 12 76% 61%; | ||
--chart-2: 173 58% 39%; | ||
--chart-3: 197 37% 24%; | ||
--chart-4: 43 74% 66%; | ||
--chart-5: 27 87% 67%; | ||
} | ||
|
||
.dark { | ||
--background: 0 0% 3.9%; | ||
--foreground: 0 0% 98%; | ||
--card: 0 0% 3.9%; | ||
--card-foreground: 0 0% 98%; | ||
--popover: 0 0% 3.9%; | ||
--popover-foreground: 0 0% 98%; | ||
--primary: 0 0% 98%; | ||
--primary-foreground: 0 0% 9%; | ||
--secondary: 0 0% 14.9%; | ||
--secondary-foreground: 0 0% 98%; | ||
--muted: 0 0% 14.9%; | ||
--muted-foreground: 0 0% 63.9%; | ||
--accent: 0 0% 14.9%; | ||
--accent-foreground: 0 0% 98%; | ||
--destructive: 0 62.8% 30.6%; | ||
--destructive-foreground: 0 0% 98%; | ||
--border: 0 0% 14.9%; | ||
--input: 0 0% 14.9%; | ||
--ring: 0 0% 83.1%; | ||
--chart-1: 220 70% 50%; | ||
--chart-2: 160 60% 45%; | ||
--chart-3: 30 80% 55%; | ||
--chart-4: 280 65% 60%; | ||
--chart-5: 340 75% 55%; | ||
} | ||
} | ||
|
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
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,192 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title>Haddock3 ui component</title> | ||
<link | ||
href="https://esm.sh/@i-vresse/haddock3-ui/dist/index.css" | ||
rel="stylesheet" | ||
/> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="importmap"> | ||
{ | ||
"imports": { | ||
"react": "https://esm.sh/react", | ||
"react-dom": "https://esm.sh/react-dom", | ||
"@i-vresse/haddock3-ui": "https://esm.sh/@i-vresse/haddock3-ui?bundle" | ||
} | ||
} | ||
</script> | ||
<script type="module"> | ||
import { createRoot } from "react-dom"; | ||
import { createElement } from "react"; | ||
import { ClusterTable } from "@i-vresse/haddock3-ui/dist/table/ClusterTable"; | ||
|
||
const clusters = [ | ||
{ | ||
rank: 1, | ||
id: 1, | ||
size: 5, | ||
score: { | ||
mean: -5.86, | ||
std: 1.54, | ||
}, | ||
irmsd: { | ||
mean: 1.81, | ||
std: 0.53, | ||
}, | ||
fnat: { | ||
mean: 0.57, | ||
std: 0.24, | ||
}, | ||
lrmsd: { | ||
mean: 5.07, | ||
std: 2.25, | ||
}, | ||
dockq: { | ||
mean: 0.58, | ||
std: 0.18, | ||
}, | ||
air: { | ||
mean: 847.55, | ||
std: 208.47, | ||
}, | ||
desolv: { | ||
mean: 11.67, | ||
std: 3.46, | ||
}, | ||
elec: { | ||
mean: -9.69, | ||
std: 3.32, | ||
}, | ||
vdw: { | ||
mean: -2.98, | ||
std: 9.17, | ||
}, | ||
ilrmsd: { | ||
mean: -2.98, | ||
std: 9.17, | ||
}, | ||
bsa: { | ||
mean: -2.98, | ||
std: 9.17, | ||
}, | ||
best1: "https://files.rcsb.org/download/2OOB.pdb.gz", | ||
best2: "https://files.rcsb.org/download/2OOA.pdb.gz", | ||
best3: "https://files.rcsb.org/download/2OOA.pdb.gz", | ||
best4: "https://files.rcsb.org/download/2OOA.pdb.gz", | ||
}, | ||
{ | ||
rank: 2, | ||
id: 2, | ||
size: 10, | ||
score: { | ||
mean: -6.12, | ||
std: 1.23, | ||
}, | ||
irmsd: { | ||
mean: 1.23, | ||
std: 0.57, | ||
}, | ||
fnat: { | ||
mean: 0.46, | ||
std: 0.79, | ||
}, | ||
lrmsd: { | ||
mean: 4.32, | ||
std: 2.35, | ||
}, | ||
dockq: { | ||
mean: 0.99, | ||
std: 0.65, | ||
}, | ||
air: { | ||
mean: 765.43, | ||
std: 321.1, | ||
}, | ||
desolv: { | ||
mean: 9.88, | ||
std: 5.43, | ||
}, | ||
elec: { | ||
mean: -8.77, | ||
std: 4.32, | ||
}, | ||
vdw: { | ||
mean: -1.23, | ||
std: 8.77, | ||
}, | ||
ilrmsd: { | ||
mean: -1.34, | ||
std: 0, | ||
}, | ||
bsa: { | ||
mean: -2.978, | ||
std: 0, | ||
}, | ||
best1: "https://files.rcsb.org/download/2OOB.pdb.gz", | ||
best2: "https://files.rcsb.org/download/2OOA.pdb.gz", | ||
best3: "https://files.rcsb.org/download/2OOA.pdb.gz", | ||
best4: "", | ||
}, | ||
]; | ||
|
||
export const headers = [ | ||
{ | ||
key: "id", | ||
label: "ID", | ||
}, | ||
{ | ||
key: "rank", | ||
label: "Rank", | ||
sorted: "asc", | ||
}, | ||
{ | ||
key: "n", | ||
label: "Size", | ||
}, | ||
{ key: "score", label: "HADDOCK score [a.u.]", type: "stats" }, | ||
{ key: "vdw", label: "Van der Waals Energy", type: "stats" }, | ||
{ key: "elec", label: "Electrostatic Energy", type: "stats" }, | ||
{ key: "air", label: "Restraints Energy", type: "stats" }, | ||
{ key: "desolv", label: "Desolvation Energy", type: "stats" }, | ||
{ key: "irmsd", label: "interface RMSD [A]", type: "stats" }, | ||
{ key: "lrmsd", label: "ligand RMSD [A]", type: "stats" }, | ||
{ key: "ilrmsd", label: "interface-ligand RMSD [A]", type: "stats" }, | ||
{ key: "fnat", label: "Fraction of Common Contacts", type: "stats" }, | ||
{ key: "dockq", label: "DOCKQ", type: "stats" }, | ||
{ key: "bsa", label: "Buried Surface Area [A^2]", type: "stats" }, | ||
{ | ||
key: "best1", | ||
label: "Nr 01 best structure", | ||
type: "structure", | ||
sortable: false, | ||
}, | ||
{ | ||
key: "best2", | ||
label: "Nr 02 best structure", | ||
type: "structure", | ||
sortable: false, | ||
}, | ||
{ | ||
key: "best3", | ||
label: "Nr 03 best structure", | ||
type: "structure", | ||
sortable: false, | ||
}, | ||
{ | ||
key: "best4", | ||
label: "Nr 04 best structure", | ||
type: "structure", | ||
sortable: false, | ||
}, | ||
]; | ||
|
||
createRoot(document.getElementById("root")).render( | ||
createElement(ClusterTable, { headers, clusters }) | ||
); | ||
</script> | ||
</body> | ||
</html> |
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
Oops, something went wrong.