-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix install on M1 chips. Improve argument parsing. Updated README.
- Loading branch information
1 parent
ba220a4
commit 8f6c847
Showing
7 changed files
with
34 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
import argparse | ||
import logging | ||
import sys | ||
|
||
logging.basicConfig(stream=sys.stdout, level=logging.INFO) | ||
log = logging.getLogger(__name__) | ||
|
||
def main(): | ||
assert len(sys.argv) > 1, 'Please provide either the argument "train" or "infer" to choose running mode.' | ||
assert len(sys.argv) > 2, 'Please provide either the argument "train" or "infer" to choose running mode.' | ||
if sys.argv[1] == 'train': | ||
from src import train | ||
sys.exit(train.main()) | ||
sys.exit(train.main(sys.argv[2:])) | ||
if sys.argv[1] == 'infer': | ||
from src import inference | ||
sys.exit(inference.main()) | ||
sys.exit(inference.main(sys.argv[2:])) | ||
log.error(f'Invalid argument {sys.argv[1]}. Please run either "neural-admixture train" or "neural-admixture infer"') | ||
sys.exit(1) | ||
sys.exit(1) |
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,12 +1,13 @@ | ||
Cython>=0.29.30 | ||
codetiming==1.3.0 | ||
h5py==3.1.0 | ||
h5py>=3.1.0 | ||
matplotlib==3.3.4 | ||
numpy>=1.21.0 | ||
pandas==1.2.4 | ||
pandas_plink==2.2.9 | ||
py_pcha==0.1.3 | ||
scikit-allel==1.3.5 | ||
scikit-learn==0.24.1 | ||
scikit-learn>=0.24.1 | ||
setuptools==50.3.1 | ||
torch==1.7.1 | ||
twine | ||
wandb==0.10.21 | ||
torch>=1.7.1 | ||
wandb>=0.12.17 |
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