Skip to content

Commit

Permalink
created RIA base with additional components
Browse files Browse the repository at this point in the history
  • Loading branch information
achillesrasquinha committed May 29, 2017
1 parent a916cf2 commit df86a89
Show file tree
Hide file tree
Showing 131 changed files with 34,091 additions and 325 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["env", "react"]
}
Empty file modified .github/logo.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 8 additions & 2 deletions .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# virtualenv
.venv

# misc
TODO.md
# docs
docs/build

# Dependencies
node_modules

# Cache
.sass-cache
Empty file modified LICENSE
100644 → 100755
Empty file.
35 changes: 29 additions & 6 deletions Makefile
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,22 +1,45 @@
PYTHON = python
.PHONY: docs

PYTHON ?= python
BASEDIR = $(realpath .)
SOURCEDIR = $(realpath candis)
DOCSDIR = $(realpath docs)

HOST = 0.0.0.0
PORT ?= 5000

install:
cat requirements/*.txt > requirements.txt

pip install -r requirements.txt

loc:
find $(SOURCEDIR) -name '*.py' | xargs wc -l
npm install .

clean:
find $(BASEDIR) | grep -E "__pycache__" | xargs rm -rf

rm -rf .sass-cache

clear

gui:
$(PYTHON) -B -c 'import candis; candis.app.main();'
docs:
cd $(DOCSDIR) && make html

kill:
fuser -k $(PORT)/tcp

run:
make kill

$(PYTHON) -B -m candis & $(PYTHON) -B -m build & npm start

loc:
( find $(SOURCEDIR) -name "*.py" -print0 | xargs -0 cat ) | wc -l

analyse:
# flake8 $(SOURCEDIR)

make loc

all:
make clean install
make clean install docs run
20 changes: 16 additions & 4 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
![](.github/logo.png)
> A data mining suite for DNA microarrays.
> :ribbon: *"A data mining suite for DNA microarrays."*
### Table of Contents
* [Installation](#installation)
Expand All @@ -19,17 +19,29 @@ $ make install
```

### Usage
**Launching the Graphical User Interface**
**Launching the RIA (Rich Internet Application)**

via CLI
```
$ candis
```
OR
```
$ python -m candis
```

via Python
```python
>>> import candis
>>> candis.app.main()
>>> candis.main()
```

### Dependencies
* Production Dependencies
* Python 2.7+ or Python3.5+
* Python 2.7+ or Python 3.5+
* Development Dependencies
* [Node.js](https://nodejs.org)
* [SASS](http://sass-lang.com)

### License
This software has been released under the [GNU General Public License v3](LICENSE).
1 change: 1 addition & 0 deletions build/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# module - build
24 changes: 24 additions & 0 deletions build/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# imports - standard imports
import sys, os
import json

# imports - third-party imports
from candis.config import CONFIG
from candis.resource import R

def main(args = None):
code = os.EX_OK

path = os.path.join(R.Path.APP, 'client/app/Config.json')
dikt = CONFIG.App.schema

with open(path, 'w') as f:
json.dump(dikt, f)

return code

if __name__ == '__main__':
args = sys.argv[1:]
code = main(args)

sys.exit(code)
1 change: 0 additions & 1 deletion build/install.sh

This file was deleted.

13 changes: 5 additions & 8 deletions candis/__init__.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
# module - candis
from candis.util import get_version_str
from candis.config import BaseConfig
from candis.cli import main
from candis.config import Config, get_config, CONFIG
from candis.manager import Cache
from candis.data import entrez
from candis.cli import main

# STUB
from candis import app
# end STUB

__version__ = get_version_str(BaseConfig.VERSION)
__version__ = CONFIG.VERSION
8 changes: 2 additions & 6 deletions candis/__main__.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@
# imports - module imports
import candis

def main():
code = candis.main()

return code

if __name__ == '__main__':
code = main()
args = sys.argv[1:]
code = candis.main(args)

sys.exit(code)
4 changes: 1 addition & 3 deletions candis/app/__init__.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# module - candis.app
from candis.app.app import App
from candis.app.server import app
from candis.app.main import main

from candis.app.window import MainWindow
18 changes: 0 additions & 18 deletions candis/app/app.py

This file was deleted.

14 changes: 14 additions & 0 deletions candis/app/assets/css/styles.min.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.no-margin {
margin: 0 !important; }

.no-decoration, a {
text-decoration: none !important; }

body {
font-family: "Roboto"; }

.font-bold {
font-weight: 700; }

.font-heavy {
font-weight: 900; }
File renamed without changes.
Binary file added candis/app/assets/img/icon/clipboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added candis/app/assets/img/icon/database.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added candis/app/assets/img/icon/edit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added candis/app/assets/img/icon/floppy-disk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added candis/app/assets/img/icon/gears.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added candis/app/assets/img/icon/info.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added candis/app/assets/img/icon/network.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added candis/app/assets/img/icon/pie-chart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added candis/app/assets/img/icon/quit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added candis/app/assets/img/icon/tree-structure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed candis/app/assets/img/icons/logo.png
Binary file not shown.
Binary file removed candis/app/assets/img/icons/quit.png
Binary file not shown.
Loading

0 comments on commit df86a89

Please sign in to comment.