-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be988bd
commit eff831e
Showing
31 changed files
with
115,330 additions
and
43 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
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,3 @@ | ||
import Gensplore from "./components/GensploreView"; | ||
|
||
export default Gensplore; |
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,18 +1,44 @@ | ||
import { defineConfig } from 'vite' | ||
import react from '@vitejs/plugin-react' | ||
import { defineConfig } from "vite"; | ||
import react from "@vitejs/plugin-react"; | ||
import cssInjectedByJsPlugin from "vite-plugin-css-injected-by-js"; | ||
|
||
export default defineConfig({ | ||
// depending on your application, base can also be "/" | ||
base: '', | ||
plugins: [react()], | ||
define: { | ||
global: {}, | ||
}, | ||
worker: { | ||
format: "umd", | ||
}, | ||
plugins: [ | ||
react(), | ||
cssInjectedByJsPlugin(), | ||
|
||
], | ||
|
||
server: { | ||
// this ensures that the browser opens upon server start | ||
open: true, | ||
// this sets a default port to 3000 | ||
port: 3000, | ||
build: { | ||
//extry: 'src/index.js', | ||
|
||
lib: { | ||
entry: "src/index.js", | ||
name: "Gensplore", // give your library a name | ||
fileName: (format) => `gensplore.${format}.js`, | ||
// formats: ['iife'] | ||
}, | ||
|
||
//entry: 'src/App.jsx', | ||
|
||
rollupOptions: { | ||
// make sure to externalize deps that shouldn't be bundled | ||
// into your library | ||
external: ["react", "react-dom", "react/jsx-runtime"], | ||
output: { | ||
// Provide global variables to use in the UMD build | ||
// for externalized deps | ||
globals: { | ||
react: "React", | ||
"react-dom": "ReactDOM", | ||
}, | ||
}, | ||
}, | ||
}) | ||
}, | ||
optimizeDeps: { | ||
include: [], //add 'prop-types' here | ||
}, | ||
}); |
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,24 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
node_modules | ||
/.pnp | ||
.pnp.js | ||
dist | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
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,19 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: "v2.7.1" # Use the sha / tag you want to point at | ||
hooks: | ||
- id: prettier | ||
- repo: https://github.com/pre-commit/mirrors-yapf | ||
rev: v0.32.0 | ||
hooks: | ||
- id: yapf | ||
additional_dependencies: [toml] |
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,11 @@ | ||
# Gensplore | ||
|
||
A simple genome browser for smallish genomes (e.g. viruses and bacteria) | ||
|
||
![image](https://user-images.githubusercontent.com/19732295/219011538-43b9b66b-0227-4171-87c6-08b496a7bf2e.png) | ||
|
||
## https://gensplore.theo.io/ | ||
|
||
### Adding custom genomes | ||
|
||
For viewing a custom genome every now and then, just use the "Choose file" option. If you are doing this all the time you might want an easier method. Bacterial genomes load too slowly from NCBI for us to load them directly, but you can upload your own to a website that allows CORS access, then go to `http://gensplore.theo.io/?gb=http://mywebsite.com/myfile.gb`. If you have trouble with this feel free to raise an Issue and we may be able to add your genome. |
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,55 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" href="/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="theme-color" content="#000000" /> | ||
<meta name="description" content="Simple genbank viewer" /> | ||
<!-- HTML Meta Tags --> | ||
<title>Gensplore</title> | ||
<meta name="description" content="Simple genbank viewer" /> | ||
|
||
<script | ||
async | ||
src="https://www.googletagmanager.com/gtag/js?id=G-W3TJTHDBX3" | ||
></script> | ||
<script> | ||
function gtag() { | ||
dataLayer.push(arguments); | ||
} | ||
(window.dataLayer = window.dataLayer || []), | ||
gtag("js", new Date()), | ||
gtag("config", "G-W3TJTHDBX3"); | ||
</script> | ||
<!-- Facebook Meta Tags --> | ||
<meta property="og:url" content="http://gensplore.theo.io" /> | ||
<meta property="og:type" content="website" /> | ||
<meta property="og:title" content="Gensplore" /> | ||
<meta property="og:description" content="Simple genbank viewer" /> | ||
<meta property="og:image" content="https://gensplore.theo.io/splash.png" /> | ||
|
||
<!-- Twitter Meta Tags --> | ||
<meta name="twitter:card" content="summary_large_image" /> | ||
<meta property="twitter:domain" content="gensplore.theo.io" /> | ||
<meta property="twitter:url" content="https://gensplore.theo.io" /> | ||
<meta name="twitter:title" content="Gensplore" /> | ||
<meta name="twitter:description" content="Simple genbank viewer" /> | ||
<meta name="twitter:image" content="https://gensplore.theo.io/splash.png" /> | ||
|
||
<!-- Meta Tags Generated via https://www.opengraph.xyz --> | ||
<link rel="apple-touch-icon" href="/logo192.png" /> | ||
<!-- | ||
manifest.json provides metadata used when your web app is installed on a | ||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/ | ||
--> | ||
<link rel="manifest" href="/manifest.json" /> | ||
|
||
<title>Basic SARS-CoV-2 genome browser</title> | ||
</head> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<script type="module" src="/src/index.jsx"></script> | ||
<div id="root"></div> | ||
</body> | ||
</html> |
Oops, something went wrong.