generated from gpauloski/python-template
-
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.
- Loading branch information
Showing
27 changed files
with
67 additions
and
220 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
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,10 +1,10 @@ | ||
cff-version: 1.2.0 | ||
message: If you use this software, please cite it as below. | ||
authors: | ||
- family-names: Pauloski | ||
given-names: Greg | ||
orcid: https://orcid.org/0000-0002-6547-6902 | ||
- family-names: Gokdemir | ||
given-names: Ozan | ||
orcid: https://orcid.org/0000-0001-5299-1983 | ||
license: MIT | ||
repository-code: https://github.com/foobar-author/foobar | ||
title: FooBar | ||
url: https://foobar.dev | ||
repository-code: https://github.com/ogkdmr/ragamp | ||
title: RagAmp | ||
url: https://ogkdmr.github.io/ragamp/ |
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,67 +1,8 @@ | ||
# Python Package Template Repo | ||
# RagAmp: Retrieval Augmented Generation for Antimicrobial Peptide Generation | ||
|
||
[![docs](https://github.com/gpauloski/python-template/actions/workflows/docs.yml/badge.svg)](https://github.com/gpauloski/python-template/actions) | ||
[![tests](https://github.com/gpauloski/python-template/actions/workflows/tests.yml/badge.svg)](https://github.com/gpauloski/python-template/actions) | ||
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/gpauloski/python-template/main.svg)](https://results.pre-commit.ci/latest/github/gpauloski/python-template/main) | ||
|
||
Python package template repo that provides: | ||
- Package, examples, and testing layout. | ||
- GitHub PR and Issue templates. | ||
- Example docs with MKDocs and GitHub Pages. | ||
- CI framework with `pre-commit` and `tox`. | ||
- GitHub actions for running tests and publishing packages. | ||
|
||
This package setup was based on [Anthony Sottile's project setup](https://www.youtube.com/watch?v=q8DkatMZvUs&list=PLWBKAf81pmOaP9naRiNAqug6EBnkPakvY) but deviates in some places (e.g., `pyproject.toml` and `ruff`). | ||
|
||
## Setup Instructions | ||
|
||
1. Click the "Use this template" button at the top right of this page. | ||
2. Delete and directories you will not be using (commonly `docs/` if you do not want to use MKDocs or `examples/` if you will not have example code). | ||
3. Follow the instructions to create the new repo then clone your repo locally. | ||
4. The template uses "foobar" to indicate things that need to be changed. | ||
Start by searching for all instances (`git grep foobar`) and changing them accordingly. | ||
5. Configure pre-commit: | ||
- Go to [https://pre-commit.ci/](https://pre-commit.ci/) and enable pre-commit on your repo. | ||
- Update the pre-commit badge URL in this README with your new badge URL. | ||
6. Configure GitHub pages: | ||
- Go to the "Pages" section of your repository settings. | ||
- Select "Deploy from a branch" and use the "gh-pages" branch. | ||
7. Configure PyPI releases (if relevant): | ||
- Create a new API token for [https://pypi.org/](https://pypi.org/). | ||
- Add the token as a GitHub actions secret (see the instructions [here](https://github.com/pypa/gh-action-pypi-publish)). | ||
8. Delete this boilerplate stuff in the README. | ||
9. Commit and push changes. | ||
|
||
### GitHub Configuration | ||
|
||
I recommend making a few other changes to the repo's setting on GitHub. | ||
- In "General" | ||
- Select/deselect features you need/don't need. | ||
- Select "Automatically delete head branches | ||
- In "Branches": enable branch protection on `main`. | ||
- Check "Require a pull request before merging" | ||
- Check "Require status checks to pass before merging" | ||
- Check "Require branches to be up to date before merging" | ||
- Set required checks (e.g., pre-commit.ci, tests, etc.) | ||
- Check "Do not allow bypassing the above settings" | ||
|
||
## Installation | ||
|
||
Install via pip: | ||
``` | ||
$ pip install foobar | ||
``` | ||
|
||
For local development: | ||
``` | ||
$ tox --devenv venv -e py310 | ||
$ pre-commit install | ||
``` | ||
or | ||
``` | ||
$ pip install -e . | ||
``` | ||
|
||
## Additional README Sections | ||
[![docs](https://github.com/ogkdmr/ragamp/actions/workflows/docs.yml/badge.svg)](https://github.com/ogkdmr/ragamp/actions) | ||
[![tests](https://github.com/ogkdmr/ragamp/actions/workflows/tests.yml/badge.svg)](https://github.com/ogkdmr/ragamp/actions) | ||
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/ogkdmr/ragamp/main.svg)](https://results.pre-commit.ci/latest/github/ogkdmr/ragamp/main) | ||
|
||
Documentation to follow | ||
... |
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
This file was deleted.
Oops, something went wrong.
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,19 +1,23 @@ | ||
# Quick Start | ||
|
||
foobar brief description. | ||
RagAmp is a retrieval-augmented generation application for antimicrobial peptides. | ||
|
||
## Overview | ||
|
||
foobar detailed overview. | ||
The tool is designed to encode unstructured text data (e.g., academic papers) about | ||
antimicrobial peptides and build vectorstores with their embeddings. It then uses | ||
this vectorstore to retrieve relevant documents to answer user queries. The queries | ||
can be arbitrary, but in our particular use case, they are engineered to investigate | ||
whether the model can propose novel hypotheses for AMP-microbe interactions such | ||
as suggesting novel potential targets that an AMP can be operating on based on its | ||
existing known targets. | ||
|
||
## Installation | ||
|
||
```bash | ||
$ pip install foobar | ||
``` | ||
TODO: TBD | ||
|
||
Documentation on installing for local development is provided in [Contributing](contributing/index.md). | ||
|
||
## Usage | ||
|
||
foobar usage example. | ||
TODO: TBD |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 +1 @@ | ||
# foobar Examples | ||
# RagAmp Examples |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.