Skip to content

Commit

Permalink
Reorganize repository and make new output
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Jul 3, 2019
1 parent fa1e90b commit c411a3a
Show file tree
Hide file tree
Showing 20 changed files with 18,423 additions and 18,405 deletions.
21 changes: 16 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
Semi-automated Curation Results
Semi-Automated Curation Results
===============================
This repository contains the results of semi-automated curation in the Human Brain Pharmacome project.

Installation
------------
This repository requires a particular package structure and can currently only be installed with pip in development
mode using the following command:
This repository can be installed from GitHub using pip with the following command:

.. code-block:: sh
$ git clone https://github.com/pharmacome/semi-automated-curation.git
$ cd semi-automated-curation
$ pip install git+https://github.com/pharmacome/semi-automated-curation.git
For developers, this repository can be cloned and installd with the following commands:

.. code-block:: sh
$ git clone https://github.com/pharmacome/semi-automated-curation.git hbp-semi-automated-curation
$ cd hbp-semi-automated-curation
$ pip install -e .
Usage
-----
It can be imported and used with the following. Note that it installs at a different name than the GitHub repository.

.. code-block:: python
Expand All @@ -21,6 +28,10 @@ It can be imported and used with the following. Note that it installs at a diffe
>>> graph = repository.get_graph()
>>> graph.summarize()
Content
-------
The curation can be found in the `src/curation` folder.

License
-------
- BEL scripts in this repository are licensed under the CC BY 4.0 license.
Expand Down
36,776 changes: 18,388 additions & 18,388 deletions docs/index.html

Large diffs are not rendered by default.

13 changes: 8 additions & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
##########################
[metadata]
name = hbp_semi_automated_curation
version = 0.0.1-dev
version = attr: src.hbp_semi_automated_curation.__init__.VERSION
description = Semi-automated curation for the Human Brain Pharmacome project
long_description = file: README.rst

Expand All @@ -20,7 +20,7 @@ maintainer = Charles Tapley Hoyt
maintainer_email = charles.hoyt@scai.fraunhofer.de

# License Information
license = MIT License
license = MIT
license_file = LICENSE

# Search tags
Expand All @@ -47,15 +47,18 @@ keywords =

[options]
install_requires =
bel_enrichment
bel_enrichment>=0.0.3

# Random options
python_requires = >=3.6
zip-safe = false
include-package-data = true
packages = find:
package_dir =
= src

# Where is my code
py_modules = hbp_semi_automated_curation
[options.packages.find]
where = src

[options.entry_points]
console_scripts =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@

# Folder pointers
HERE = os.path.abspath(os.path.dirname(__file__))
GENES_DIRECTORY = os.path.join(HERE, 'genes')
CURATION_DIRECTORY = os.path.join(HERE, 'curation')

VERSION = '0.1.1'

metadata = BELMetadata(
name='HBP Semi-automated Curation',
version='0.1.0',
name='HBP Semi-Automated Curation',
version=VERSION,
description="This knowledge graph contains content generated with the semi-automated curation workflow"
"in the Human Brain Pharmacome project.",
authors=AUTHOR_STRING,
Expand All @@ -43,11 +45,9 @@
)

repository = BELSheetsRepository(
directory=GENES_DIRECTORY,
directory=CURATION_DIRECTORY,
output_directory=HERE,
metadata=metadata,
)

main = repository.build_cli()

if __name__ == '__main__':
main()
4 changes: 4 additions & 0 deletions src/hbp_semi_automated_curation/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from hbp_semi_automated_curation import main

if __name__ == '__main__':
main()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c411a3a

Please sign in to comment.