Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson committed Feb 22, 2023
1 parent 83f0418 commit 31866c1
Show file tree
Hide file tree
Showing 19 changed files with 1,216 additions and 1,176 deletions.
19 changes: 19 additions & 0 deletions .pre-commit-config.yaml
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]
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ 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.
4 changes: 2 additions & 2 deletions postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
}
}
},
};
53 changes: 30 additions & 23 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,38 @@
<link rel="icon" href="%PUBLIC_URL%/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"
<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" />

/>
<!-- 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" />

<!-- 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 -->
<!-- Meta Tags Generated via https://www.opengraph.xyz -->
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
Expand Down
5 changes: 2 additions & 3 deletions public/sequence.gb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ REFERENCE 2 (bases 1 to 29903)
JOURNAL Submitted (05-JAN-2020) Shanghai Public Health Clinical Center &
School of Public Health, Fudan University, Shanghai, China
COMMENT On Jan 17, 2020 this sequence version replaced MN908947.2.

##Assembly-Data-START##
Assembly Method :: Megahit v. V1.1.3
Sequencing Technology :: Illumina
Expand Down Expand Up @@ -398,7 +398,7 @@ FEATURES Location/Qualifiers
/product="2'-O-ribose methyltransferase"
/note="nsp16_OMT; 2'-o-MT; produced by pp1ab only"
/protein_id="YP_009725311.1"
ORIGIN
ORIGIN
1 attaaaggtt tataccttcc caggtaacaa accaaccaac tttcgatctc ttgtagatct
61 gttctctaaa cgaactttaa aatctgtgtg gctgtcactc ggctgcatgc ttagtgcact
121 cacgcagtat aattaataac taattactgt cgttgacagg acacgagtaa ctcgtctatc
Expand Down Expand Up @@ -899,4 +899,3 @@ ORIGIN
29821 tttagtagtg ctatccccat gtgattttaa tagcttctta ggagaatgac aaaaaaaaaa
29881 aaaaaaaaaa aaaaaaaaaa aaa
//

5 changes: 2 additions & 3 deletions public/sequence2.gb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ REFERENCE 5
Medical Center Dr., Rockville, MD 20850, USA
COMMENT PROVISIONAL REFSEQ: This record has not yet been subject to final
NCBI review. The reference sequence is identical to LN999946.

##Genome-Annotation-Data-START##
Annotation Provider :: INSDC submitter
Annotation Status :: Full annotation
Expand Down Expand Up @@ -27345,7 +27345,7 @@ FEATURES Location/Qualifiers
pseudogene"
/pseudogene="unknown"
/db_xref="GeneID:812354"
ORIGIN
ORIGIN
1 tgaaccctaa accctaaacc ctaaacccta aacccctaaa ccctaaaccc tgaaccctaa
61 accctaaacc ctaaacctaa accctaaacc ctaaaccctg aaccctaaac cctgaaccct
121 aaacctaaac cctgaaccct aaaccctaaa ccctaaaccc taaaccctaa accctgaacc
Expand Down Expand Up @@ -82213,4 +82213,3 @@ ORIGIN
3291841 gggtttaggg ttcagggttc agggtttagg gtttagggtt tagggtttca gggtttaggt
3291901 ttagggttta gggtttaggg ttcagggttt agggtt
//

21 changes: 10 additions & 11 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
@tailwind utilities;

.stripybg {
width: 240px;
height: 240px;
background-color: #fff;
background-image: linear-gradient(0deg, transparent 99%, #eee 1%);
background-size: 60px 80px;
background-repeat: repeat;
}
width: 240px;
height: 240px;
background-color: #fff;
background-image: linear-gradient(0deg, transparent 99%, #eee 1%);
background-size: 60px 80px;
background-repeat: repeat;
}

.whitebg{
background-color: #fff;

}
.whitebg {
background-color: #fff;
}
Loading

0 comments on commit 31866c1

Please sign in to comment.