-
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.
Reorganize, update code, and add travis/tox
- Loading branch information
Showing
14 changed files
with
255 additions
and
78 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
sudo: false | ||
cache: pip | ||
language: python | ||
python: | ||
- "3.6" | ||
stages: | ||
- lint | ||
- docs | ||
jobs: | ||
include: | ||
# lint stage | ||
- stage: lint | ||
env: TOXENV=manifest | ||
- env: TOXENV=flake8 | ||
- env: TOXENV=xenon | ||
# docs stage | ||
- stage: docs | ||
env: TOXENV=doc8 | ||
- env: TOXENV=readme | ||
- env: TOXENV=docs | ||
matrix: | ||
allow_failures: | ||
- env: TOXENV=xenon | ||
install: | ||
- pip install tox | ||
script: | ||
- tox |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Setup.py Configuration # | ||
########################## | ||
[metadata] | ||
name = guilty_reloaded | ||
name = guiltytargets_phewas | ||
version = 0.0.1-dev | ||
description = Change meeeeee | ||
long_description = file: README.rst | ||
|
@@ -13,15 +13,17 @@ author_email = [email protected] | |
maintainer = Mauricio Pio de Lacerda | ||
maintainer_email = [email protected] | ||
|
||
url = https://github.com/GuiltyTargets/phewas | ||
|
||
# License Information | ||
license = Apache 2.0 License | ||
license = MIT | ||
license_file = LICENSE | ||
|
||
# Search tags | ||
classifiers = | ||
Development Status :: 1 - Planning | ||
Intended Audience :: Developers | ||
License :: OSI Approved :: Apache Software License | ||
License :: OSI Approved :: MIT License | ||
Operating System :: OS Independent | ||
Programming Language :: Python | ||
Programming Language :: Python :: 3.6 | ||
|
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
"""GuiltyTargets PheWAS Extension.""" |
4 changes: 3 additions & 1 deletion
4
src/guilty_phewas/constants.py → src/guiltytargets_phewas/constants.py
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,6 +1,8 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
"""Constants for GuiltyTargets PheWAS.""" | ||
|
||
data_dir = 'data' | ||
disease_abr = ['ad'] | ||
disease_ids_efo = ['EFO_0000249'] | ||
ot_file = 'ot_entrez.txt' | ||
ot_file = 'ot_entrez.txt' |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from guiltytargets.constants import gat2vec_config | ||
from guiltytargets.gat2vec import Classification, Gat2Vec | ||
|
||
|
||
def main(): | ||
dir_ = "C:/Users/Mauricio/Thesis/bel_data/alzh" # windows | ||
# dir_ = "C:\\Users\\Mauricio\\Thesis\\git\\reproduction\\data\\lc" | ||
|
||
classifier = Classification(dir_, dir_, tr=gat2vec_config.training_ratio) | ||
|
||
g2v = Gat2Vec(dir_, dir_, label=False, tr=gat2vec_config.training_ratio) | ||
model = g2v.train_gat2vec( | ||
gat2vec_config.num_walks, | ||
gat2vec_config.walk_length, | ||
gat2vec_config.dimension, | ||
gat2vec_config.window_size, | ||
output=True, | ||
) | ||
|
||
classifier = Classification(dir_, dir_, tr=gat2vec_config.training_ratio) | ||
|
||
auc_df = classifier.evaluate(model, label=False, evaluation_scheme="cv") | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
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.