-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from kwcantrell/add-yml
Add enviornment.yml
- Loading branch information
Showing
12 changed files
with
150 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,41 +2,50 @@ | |
|
||
Attention-based network for microbial sequencing data. | ||
|
||
# Installation | ||
# Installation Instructions | ||
IMPORTANT: If installing on a server cluster, spawn an instance with a GPU before proceeding with environment setup. | ||
First create a new conda environment with unifrac | ||
|
||
## Install Requirements | ||
Requires tensorflow==2.14 and tf-models-official==2.14.2 | ||
`conda create --name aam -c conda-forge -c bioconda unifrac python=3.9 cython` | ||
|
||
`pip install tensorflow==2.14 tf-models-official==2.14.2` | ||
`conda activate aam` | ||
|
||
or | ||
## GPU Support | ||
|
||
`pip install tensorflow[and-cuda]==2.14 tf-models-official==2.14.2` | ||
Install CUDA 11.8 | ||
|
||
for GPU support. | ||
`conda install nvidia/label/cuda-11.8.0::cuda-toolkit` | ||
|
||
Tensorboard is an optional dependency to visualize training losses/metrics. | ||
Verify the NVIDIA GPU drives are on your path | ||
|
||
`pip install tensorboard` | ||
`nvidia-smi` | ||
|
||
Please see [Tensorflow](https://www.tensorflow.org/install) for more information | ||
|
||
## Install AAM | ||
|
||
|
||
For the latest version | ||
|
||
`pip install git+https://github.com/kwcantrell/attention-all-microbes.git` | ||
|
||
or | ||
or install a specific version | ||
|
||
`pip install git+https://github.com/kwcantrell/[email protected]` | ||
|
||
for a specific tagged version. | ||
## Developers | ||
|
||
`git clone [email protected]:kwcantrell/attention-all-microbes.git` | ||
|
||
`cd attention-all-microbes` | ||
|
||
`pip install -e .` | ||
|
||
# Training | ||
|
||
Classifiers and Regressors are trained use cross-validation | ||
|
||
`python attention_cli.py --help` | ||
`attention --help` | ||
|
||
|
||
|
||
|
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,14 @@ | ||
from .cv_utils import CVModel, EnsembleModel | ||
from .transfer_data_utils import load_data | ||
from .transfer_nuc_model import TransferLearnNucleotideModel | ||
from .unifrac_data_utils import load_data as _load_unifrac_data | ||
from .unifrac_model import UnifracModel | ||
|
||
__all__ = [ | ||
"UnifracModel", | ||
"_load_unifrac_data", | ||
"load_data", | ||
"TransferLearnNucleotideModel", | ||
"CVModel", | ||
"EnsembleModel", | ||
] |
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 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
Oops, something went wrong.