From 03e6f3b579c35f956a95c9329e648aab017a02af Mon Sep 17 00:00:00 2001 From: Timothy Stiles Date: Tue, 4 Apr 2023 10:47:53 -0700 Subject: [PATCH] renamed allbase to ark. --- .devcontainer/devcontainer.json | 2 +- .gitignore | 2 +- CONTRIBUTING.md | 34 +++++++++---------- README.md | 22 ++++++------ db/cmd/clean.go | 2 +- db/cmd/download.go | 9 +++-- db/cmd/local.go | 10 +++--- db/cmd/root.go | 6 ++-- go.mod | 2 +- pkg/config/config.go | 12 +++---- pkg/download/download.go | 4 +-- pkg/download/file_test.go | 2 +- pkg/download/links_test.go | 2 +- pkg/download/rhea.go | 2 +- pkg/download/tarball_test.go | 2 +- pkg/env/env.go | 10 +++--- pkg/insert/rhea.go | 4 +-- pkg/insert/rhea_test.go | 10 +++--- pkg/pathways/pathways.go | 12 +++---- .../queries/organism_filtered_pathways.sql | 2 +- pkg/rhea/rhea.go | 2 +- pkg/rhea/rhea_test.go | 2 +- schema/schema.go | 14 ++++---- schema/schema_test.go | 8 ++--- sqlboiler.toml | 2 +- 25 files changed, 89 insertions(+), 90 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 3b789ed..d46e783 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,7 +1,7 @@ // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: // https://github.com/microsoft/vscode-dev-containers/tree/v0.166.1/containers/ubuntu { - "name": "allbase - Ubuntu", + "name": "ark - Ubuntu", "build": { "dockerfile": "Dockerfile", // Update 'VARIANT' to pick an Ubuntu version: focal, bionic diff --git a/.gitignore b/.gitignore index 90d7e43..bda8079 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -allbase.db +ark.db .DS_Store data/rhea.rdf.gz cmd/main diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2cae5ef..92cb937 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,11 +1,11 @@ # Introduction -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. +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. 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. Currently any sincere pull request is a good request. -Allbase is still in pre-release so there are so many way to contribute! +ark is still in pre-release so there are so many way to contribute! Here's a list of ideas but feel free to suggest anything I may have forgotten to include. * 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 * Bug triaging. * Community management. * Art! Dreams! Your excellence! -* Code that can be pulled into Allbase itself. +* Code that can be pulled into ark itself. # Contributor guidelines ### 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 ### Do-ocracy -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. +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. ### Technical requirements -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. +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. All successfully merged pull requests must meet the following criteria: @@ -54,19 +54,19 @@ Don't worry if you submit a pull request and all the tests break and the code is ### Be welcoming -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! +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! # Your first contribution -Unsure where to begin contributing to Allbase? You can start by looking through these beginner and help-wanted issues: +Unsure where to begin contributing to ark? You can start by looking through these beginner and help-wanted issues: -[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. +[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. -[Good first issues](https://github.com/TimothyStiles/allbase/contribute) - issues which are good for first time contributors. +[Good first issues](https://github.com/TimothyStiles/ark/contribute) - issues which are good for first time contributors. -[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. +[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. -[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! +[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! ### Working on your first Pull Request? @@ -87,11 +87,11 @@ For something that is bigger than a one or two line fix: ## Virtual Environments and Development Containers -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. +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. ## Recommended Plugins -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. +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. # How to report a bug @@ -108,16 +108,16 @@ If the answer to either of those two questions are "yes", then you're probably d ### Non-security related bugs -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=) +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=) # How to suggest a feature or enhancement -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) +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) # How add a recommended VSCode Plugin -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`. +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`. # In closing -Thanks, for reading and I'm super psyched to see what you'll do with Allbase! +Thanks, for reading and I'm super psyched to see what you'll do with ark! diff --git a/README.md b/README.md index e57ddef..e38e05e 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,22 @@ -# Allbase +# ark -## Allbase is a database for engineering organisms +## ark is a database for engineering organisms -* **Comprehensive:** Allbase is a single service that can search, store, and cross reference sequences and pathways from genbank, rhea, chembl, and uniprot +* **Comprehensive:** ark is a single service that can search, store, and cross reference sequences and pathways from genbank, rhea, chembl, and uniprot -* **Modern:** Allbase serves JSON and is written in Go. Allbase parses legacy file formats so you don't have to. +* **Modern:** ark serves JSON and is written in Go. ark parses legacy file formats so you don't have to. -* **Stable (soon):** Allbase will be well tested and designed to be used in industrial, academic, and hobbyist settings +* **Stable (soon):** ark will be well tested and designed to be used in industrial, academic, and hobbyist settings ## Install -Allbase is still in hot development and not production ready. We currently only ship a pre-release dev branch for contributors. +ark is still in hot development and not production ready. We currently only ship a pre-release dev branch for contributors. - `git clone https://github.com/TimothyStiles/allbase && cd allbase && go test -v ./...` + `git clone https://github.com/TimothyStiles/ark && cd ark && go test -v ./...` ## Community -* **[Discord](https://discord.gg/Hc8Ncwt):** Chat about Allbase and join us for game nights on our discord server! +* **[Discord](https://discord.gg/Hc8Ncwt):** Chat about ark and join us for game nights on our discord server! ## Contributing @@ -33,9 +33,9 @@ Allbase is still in hot development and not production ready. We currently only * [MIT](LICENSE) * Copyright (c) 2022 Timothy Stiles, Keoni Gandall - +