Skip to content

Commit 03e6f3b

Browse files
committed
renamed allbase to ark.
1 parent fbd0fd5 commit 03e6f3b

25 files changed

+89
-90
lines changed

.devcontainer/devcontainer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
22
// https://github.com/microsoft/vscode-dev-containers/tree/v0.166.1/containers/ubuntu
33
{
4-
"name": "allbase - Ubuntu",
4+
"name": "ark - Ubuntu",
55
"build": {
66
"dockerfile": "Dockerfile",
77
// Update 'VARIANT' to pick an Ubuntu version: focal, bionic

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
allbase.db
1+
ark.db
22
.DS_Store
33
data/rhea.rdf.gz
44
cmd/main

CONTRIBUTING.md

+17-17
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Introduction
22

3-
Yo, what up! if you're reading this then I'm super psyched because that means that you're thinking about contributing to Allbase! Thanks so much for your time and consideration. It's rad people like you that make Allbase such a cool computational synthetic biology tool.
3+
Yo, what up! if you're reading this then I'm super psyched because that means that you're thinking about contributing to ark! Thanks so much for your time and consideration. It's rad people like you that make ark such a cool computational synthetic biology tool.
44

55
I wrote this contributor's guide to help newcomers feel welcome. Getting started with a new project can be complicated and I wanted to make it as easy as possible for you to contribute and as easy as possible for me to help.
66

77
Currently any sincere pull request is a good request.
8-
Allbase is still in pre-release so there are so many way to contribute!
8+
ark is still in pre-release so there are so many way to contribute!
99
Here's a list of ideas but feel free to suggest anything I may have forgotten to include.
1010

1111
* Feature requests - especially cool new algorithms with citations.
@@ -17,7 +17,7 @@ Here's a list of ideas but feel free to suggest anything I may have forgotten to
1717
* Bug triaging.
1818
* Community management.
1919
* Art! Dreams! Your excellence!
20-
* Code that can be pulled into Allbase itself.
20+
* Code that can be pulled into ark itself.
2121

2222
# Contributor guidelines
2323
### Excellence, and the contributor's code of conduct
@@ -32,11 +32,11 @@ First up, most importantly we have a contributor's code of conduct. For some rea
3232

3333
### Do-ocracy
3434

35-
Allbase runs on do-ocracy. Do-ocracy is a simple concept. If you don't like something you don't need permission to fix it, you can just go ahead and fix it! If you actually want to merge your fix, or contribute in someway that benefits everybody, it'd really, really, really help if you got some light consensus from the rest of the Allbase development community but hey, if you really need to do something then you just gotta do it! Just don't expect me to merge it if it doesn't meet our technical criteria or isn't quite right for Allbase.
35+
ark runs on do-ocracy. Do-ocracy is a simple concept. If you don't like something you don't need permission to fix it, you can just go ahead and fix it! If you actually want to merge your fix, or contribute in someway that benefits everybody, it'd really, really, really help if you got some light consensus from the rest of the ark development community but hey, if you really need to do something then you just gotta do it! Just don't expect me to merge it if it doesn't meet our technical criteria or isn't quite right for ark.
3636

3737
### Technical requirements
3838

39-
Part of what makes Allbase so special is that we have standards. DNA is already spaghetti code on its own and we just don't need to add to that.
39+
Part of what makes ark so special is that we have standards. DNA is already spaghetti code on its own and we just don't need to add to that.
4040

4141
All successfully merged pull requests must meet the following criteria:
4242

@@ -54,19 +54,19 @@ Don't worry if you submit a pull request and all the tests break and the code is
5454

5555
### Be welcoming
5656

57-
As one final guideline please be welcoming to newcomers and encourage new contributors from all walks of life. I want Allbase to be for everyone and that includes you and people who don't look, sound, or act like you!
57+
As one final guideline please be welcoming to newcomers and encourage new contributors from all walks of life. I want ark to be for everyone and that includes you and people who don't look, sound, or act like you!
5858

5959
# Your first contribution
6060

61-
Unsure where to begin contributing to Allbase? You can start by looking through these beginner and help-wanted issues:
61+
Unsure where to begin contributing to ark? You can start by looking through these beginner and help-wanted issues:
6262

63-
[Beginner issues](https://github.com/TimothyStiles/allbase/issues?q=is%3Aissue+is%3Aopen+label%3A%22beginner%22+) - issues which should only require a few lines of code, and a test or two.
63+
[Beginner issues](https://github.com/TimothyStiles/ark/issues?q=is%3Aissue+is%3Aopen+label%3A%22beginner%22+) - issues which should only require a few lines of code, and a test or two.
6464

65-
[Good first issues](https://github.com/TimothyStiles/allbase/contribute) - issues which are good for first time contributors.
65+
[Good first issues](https://github.com/TimothyStiles/ark/contribute) - issues which are good for first time contributors.
6666

67-
[Help wanted issues](https://github.com/TimothyStiles/allbase/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22+) - issues which should be a bit more involved than beginner issues.
67+
[Help wanted issues](https://github.com/TimothyStiles/ark/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22+) - issues which should be a bit more involved than beginner issues.
6868

69-
[Feature requests](https://github.com/TimothyStiles/allbase/labels/enhancement) - before requesting a new feature search through previous feature requests to see if it's already been requested. If not then feel free to submit a request and tag it with the enhancement tag!
69+
[Feature requests](https://github.com/TimothyStiles/ark/labels/enhancement) - before requesting a new feature search through previous feature requests to see if it's already been requested. If not then feel free to submit a request and tag it with the enhancement tag!
7070

7171
### Working on your first Pull Request?
7272

@@ -87,11 +87,11 @@ For something that is bigger than a one or two line fix:
8787

8888
## Virtual Environments and Development Containers
8989

90-
In order to simplify the development experience, and environment setup, the allbase Github repository comes packaged to support *Github CodeSpaces* and [*VSCode Development Containers*](https://code.visualstudio.com/docs/remote/containers#_getting-started). *Github CodeSpaces* will give you ability to spin up a Github hosted instance of Ubuntu that would allow you run, test, develop allbase from the browser. *VSCode Development Containers* in turn will allow your installation of VSCode to spin up a docker instance of Ubuntu on your computer and automatically mount your code onto it so that you continue developing on this docker instance that has all the required development environment setup.
90+
In order to simplify the development experience, and environment setup, the ark Github repository comes packaged to support *Github CodeSpaces* and [*VSCode Development Containers*](https://code.visualstudio.com/docs/remote/containers#_getting-started). *Github CodeSpaces* will give you ability to spin up a Github hosted instance of Ubuntu that would allow you run, test, develop ark from the browser. *VSCode Development Containers* in turn will allow your installation of VSCode to spin up a docker instance of Ubuntu on your computer and automatically mount your code onto it so that you continue developing on this docker instance that has all the required development environment setup.
9191

9292
## Recommended Plugins
9393

94-
Whether you're a beginner with Go or you're an experienced developer, You should see the suggestions popup automatically when you goto the *Plugins* tab in VSCode. Using these plugins can help accelerate the development experience and also allow you to work more collaboratively with other allbase developers.
94+
Whether you're a beginner with Go or you're an experienced developer, You should see the suggestions popup automatically when you goto the *Plugins* tab in VSCode. Using these plugins can help accelerate the development experience and also allow you to work more collaboratively with other ark developers.
9595

9696
# How to report a bug
9797

@@ -108,16 +108,16 @@ If the answer to either of those two questions are "yes", then you're probably d
108108

109109
### Non-security related bugs
110110

111-
For non-security bug reports please [submit it using this template!](https://github.com/TimothyStiles/allbase/issues/new?assignees=&labels=&template=bug_report.md&title=)
111+
For non-security bug reports please [submit it using this template!](https://github.com/TimothyStiles/ark/issues/new?assignees=&labels=&template=bug_report.md&title=)
112112

113113
# How to suggest a feature or enhancement
114114

115-
If you want to suggest a feature it's as easy as filling out this [issue template](https://github.com/TimothyStiles/allbase/issues/new?assignees=&labels=&template=feature_request.md&title=), but before you do please [check to see if it's already been suggested!](https://github.com/TimothyStiles/allbase/labels/enhancement)
115+
If you want to suggest a feature it's as easy as filling out this [issue template](https://github.com/TimothyStiles/ark/issues/new?assignees=&labels=&template=feature_request.md&title=), but before you do please [check to see if it's already been suggested!](https://github.com/TimothyStiles/ark/labels/enhancement)
116116

117117
# How add a recommended VSCode Plugin
118118

119-
Allbase comes with a set of recommended plugins for VSCode. If you have suggestions that will simplify life for the allbase dev community, consider doing a pull-request after modifying `.vscode/extensions.json`.
119+
ark comes with a set of recommended plugins for VSCode. If you have suggestions that will simplify life for the ark dev community, consider doing a pull-request after modifying `.vscode/extensions.json`.
120120

121121
# In closing
122122

123-
Thanks, for reading and I'm super psyched to see what you'll do with Allbase!
123+
Thanks, for reading and I'm super psyched to see what you'll do with ark!

README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
# Allbase
1+
# ark
22

3-
## Allbase is a database for engineering organisms
3+
## ark is a database for engineering organisms
44

5-
* **Comprehensive:** Allbase is a single service that can search, store, and cross reference sequences and pathways from genbank, rhea, chembl, and uniprot
5+
* **Comprehensive:** ark is a single service that can search, store, and cross reference sequences and pathways from genbank, rhea, chembl, and uniprot
66

7-
* **Modern:** Allbase serves JSON and is written in Go. Allbase parses legacy file formats so you don't have to.
7+
* **Modern:** ark serves JSON and is written in Go. ark parses legacy file formats so you don't have to.
88

9-
* **Stable (soon):** Allbase will be well tested and designed to be used in industrial, academic, and hobbyist settings
9+
* **Stable (soon):** ark will be well tested and designed to be used in industrial, academic, and hobbyist settings
1010

1111
## Install
1212

13-
Allbase is still in hot development and not production ready. We currently only ship a pre-release dev branch for contributors.
13+
ark is still in hot development and not production ready. We currently only ship a pre-release dev branch for contributors.
1414

15-
`git clone https://github.com/TimothyStiles/allbase && cd allbase && go test -v ./...`
15+
`git clone https://github.com/TimothyStiles/ark && cd ark && go test -v ./...`
1616

1717
## Community
1818

19-
* **[Discord](https://discord.gg/Hc8Ncwt):** Chat about Allbase and join us for game nights on our discord server!
19+
* **[Discord](https://discord.gg/Hc8Ncwt):** Chat about ark and join us for game nights on our discord server!
2020

2121
## Contributing
2222

@@ -33,9 +33,9 @@ Allbase is still in hot development and not production ready. We currently only
3333
* [MIT](LICENSE)
3434

3535
* Copyright (c) 2022 Timothy Stiles, Keoni Gandall
36-
<!-- We're building a modern solution to the biotech data access problem. Too many siloed databases using terrible dataformats that can't crossref eachother. Allbase is still in hot development but as it stands now the plan is to have a single service that can search and cross reference sequences and pathways from genbank, rhea, chembl, and uniprot. All sequences get hashes so they have a unique identifier. Allbase should in the end be able to spit out JSON for every sequence it has and every pathway it can make. Keoni should write down how somewhere but search is going to be dummy fast and easy to use through an API. -->
36+
<!-- We're building a modern solution to the biotech data access problem. Too many siloed databases using terrible dataformats that can't crossref eachother. ark is still in hot development but as it stands now the plan is to have a single service that can search and cross reference sequences and pathways from genbank, rhea, chembl, and uniprot. All sequences get hashes so they have a unique identifier. ark should in the end be able to spit out JSON for every sequence it has and every pathway it can make. Keoni should write down how somewhere but search is going to be dummy fast and easy to use through an API. -->
3737
<!-- ## Specification
38-
When completed allbase will have:
38+
When completed ark will have:
3939
4040
* [x] Functions that pull data from Genbank, Rhea, CHEMBL, and Uniprot.
4141
* [ ] Cron jobs for daily updates from public DBs mentioned above.
@@ -49,7 +49,7 @@ When completed allbase will have:
4949
* [ ] deploy on push to main
5050
* [ ] continuous db updates
5151
* [ ] Annotate given sequence string
52-
* [ ] Improved data streaming. Currently allbase downloads THEN inserts.
52+
* [ ] Improved data streaming. Currently ark downloads THEN inserts.
5353
* [ ] REST API endpoints to:
5454
* [ ] Query for metabolic pathways:
5555
* [x] Breadth first search

db/cmd/clean.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ var cleanCmd = &cobra.Command{
1111
Short: "Clean up the project",
1212
Long: "Clean up the project",
1313
Run: func(cmd *cobra.Command, args []string) {
14-
os.Remove("allbase.db")
14+
os.Remove("ark.db")
1515
},
1616
}

db/cmd/download.go

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
package cmd
22

33
import (
4-
"github.com/TimothyStiles/allbase/pkg/download"
54
"github.com/spf13/cobra"
65
)
76

87
/******************************************************************************
9-
Allbase needs an easy and reproducible way to grab all of the data it uses.
8+
ark needs an easy and reproducible way to grab all of the data it uses.
109
Some people would try to download everything manually with wget or curl but
1110
that's bonkers and I'm not maintaining that. Instead I've made a multi-threaded webscraper.
1211
1312
To be honest most of you reading this will probably just want to use the build
14-
command which will download AND insert all of the data into allbase for you
13+
command which will download AND insert all of the data into ark for you
1514
without any intermediary files but I'm leaving this here for the time being until
1615
the build command is implemented.
1716
@@ -38,8 +37,8 @@ Tim
3837
var downloadCmd = &cobra.Command{
3938
Use: "download",
4039
Short: "Download data for standard deploy build. Run at your own risk.",
41-
Long: "Download literally downloads all the base data needed to build a standard allbase deployment the amount of data is dummy high to casually test on your personal machine. Run at your own risk.",
40+
Long: "Download literally downloads all the base data needed to build a standard ark deployment the amount of data is dummy high to casually test on your personal machine. Run at your own risk.",
4241
Run: func(cmd *cobra.Command, args []string) {
43-
download.Allbase()
42+
download.ark()
4443
},
4544
}

db/cmd/local.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ package cmd
1010

1111
// func local() {
1212
// // TODO: Check to see if the database already exists. Tells the user to run clean if they want a new install.
13-
// if _, err := os.Stat("allbase.db"); !os.IsNotExist(err) {
14-
// log.Fatal("Database already exists. Run 'allbase clean' to remove it.")
13+
// if _, err := os.Stat("ark.db"); !os.IsNotExist(err) {
14+
// log.Fatal("Database already exists. Run 'ark clean' to remove it.")
1515
// }
1616

1717
// // Begin SQLite
1818
// log.Println("Creating database...")
19-
// db, err := sqlx.Open("sqlite3", "allbase.db")
19+
// db, err := sqlx.Open("sqlite3", "ark.db")
2020
// if err != nil {
21-
// log.Fatalf("Failed to open sqlite in allbase.db: %s", err)
21+
// log.Fatalf("Failed to open sqlite in ark.db: %s", err)
2222
// }
2323

2424
// // Execute our schema in memory
@@ -100,5 +100,5 @@ package cmd
100100
// log.Fatalf("Failed to insert RheaTsvInsert trembl on: %s", err)
101101
// }
102102

103-
// log.Printf("Finished allbase")
103+
// log.Printf("Finished ark")
104104
// }

db/cmd/root.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ var (
1616
)
1717

1818
var rootCmd = &cobra.Command{
19-
Use: "allbase",
20-
Short: "allbase is dummy fast database for engineering organisms.",
21-
Long: `allbase is a dummy fast database for engineering organisms. Cross reference genbank, uniprot, chembl, and rhea and get you some JSON.`,
19+
Use: "ark",
20+
Short: "ark is dummy fast database for engineering organisms.",
21+
Long: `ark is a dummy fast database for engineering organisms. Cross reference genbank, uniprot, chembl, and rhea and get you some JSON.`,
2222
}
2323

2424
func Execute() {

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/TimothyStiles/allbase
1+
module github.com/TimothyStiles/ark
22

33
go 1.18
44

pkg/config/config.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"os"
66
"path/filepath"
77

8-
"github.com/TimothyStiles/allbase/pkg/env"
8+
"github.com/TimothyStiles/ark/pkg/env"
99
)
1010

1111
// Read reads the config file and returns the config.
@@ -32,7 +32,7 @@ func Write(fileName string, config Config) error {
3232
return nil
3333
}
3434

35-
// Config is the configuration for the allbase application.
35+
// Config is the configuration for the ark application.
3636
type Config struct {
3737
// Production or development.
3838
IsProd bool `json:"prod"`
@@ -43,8 +43,8 @@ type Config struct {
4343
// DataPath is the data directory of the project.
4444
DataPath string `json:"data_path"`
4545

46-
// AllbasePath is the path to the allbase sqlite database.
47-
AllbasePath string `json:"allbase_path"`
46+
// arkPath is the path to the ark sqlite database.
47+
arkPath string `json:"ark_path"`
4848

4949
// RheaRDF is the path to the Rhea RDF file.
5050
RheaRDF string `json:"rhea_rdf"`
@@ -80,7 +80,7 @@ func DevDefault() Config {
8080
IsProd: false,
8181
RootPath: env.RootPath(),
8282
DataPath: devPath,
83-
AllbasePath: filepath.Join(devPath, "allbase.sqlite"),
83+
arkPath: filepath.Join(devPath, "ark.sqlite"),
8484
RheaRDF: filepath.Join(devPath, "rhea_mini.rdf.gz"),
8585
RheaToUniprotSprot: filepath.Join(devPath, "rhea_to_uniprot_sprot.tsv.gz"),
8686
RheaToUniprotTrembl: filepath.Join(devPath, "rhea_to_uniprot_trembl.tsv.gz"),
@@ -101,7 +101,7 @@ func ProdDefault() Config {
101101
IsProd: true,
102102
RootPath: env.RootPath(),
103103
DataPath: prodPath,
104-
AllbasePath: filepath.Join(prodPath, "allbase.sqlite"),
104+
arkPath: filepath.Join(prodPath, "ark.sqlite"),
105105
RheaRDF: filepath.Join(prodPath, "rhea.rdf.gz"),
106106
RheaToUniprotSprot: filepath.Join(prodPath, "rhea_to_uniprot_sprot.tsv"),
107107
RheaToUniprotTrembl: filepath.Join(prodPath, "rhea_to_uniprot_trembl.tsv"),

pkg/download/download.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package download
22

3-
// Allbase literally downloads all the base data needed to build a standard allbase deployment
3+
// ark literally downloads all the base data needed to build a standard ark deployment
44
// the amount of data is dummy high to casually test on your personal machine. Run at your own risk.
5-
func Allbase() {
5+
func ark() {
66
writePath := "../data/build"
77

88
// Typically I'd write these functions to return errors but since I'm using go routines

pkg/download/file_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"os"
66
"testing"
77

8-
"github.com/TimothyStiles/allbase/pkg/download"
8+
"github.com/TimothyStiles/ark/pkg/download"
99
)
1010

1111
func TestFile(t *testing.T) {

pkg/download/links_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package download_test
33
import (
44
"testing"
55

6-
"github.com/TimothyStiles/allbase/pkg/download"
6+
"github.com/TimothyStiles/ark/pkg/download"
77
)
88

99
func TestGetPageLinks(t *testing.T) {

pkg/download/rhea.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package download
22

3-
//Rhea downloads all required files for allbase from the Rhea database.
3+
// Rhea downloads all required files for ark from the Rhea database.
44
func Rhea(writePath string) {
55
go File("https://ftp.expasy.org/databases/rhea/rdf/rhea.rdf.gz", writePath)
66

pkg/download/tarball_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"os"
77
"testing"
88

9-
"github.com/TimothyStiles/allbase/pkg/download"
9+
"github.com/TimothyStiles/ark/pkg/download"
1010
)
1111

1212
func TestTarball(t *testing.T) {

0 commit comments

Comments
 (0)