-
Notifications
You must be signed in to change notification settings - Fork 6
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 #10 from ZhixuNi/master
Updated UI for Linker and Converter
- Loading branch information
Showing
57 changed files
with
1,195 additions
and
464 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,11 @@ | ||
name: Lint | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- uses: psf/black@master |
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 |
---|---|---|
|
@@ -11,24 +11,20 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python-version: [3.7, 3.8] | ||
os: [ubuntu-20.04, ubuntu-latest, macos-latest, windows-latest] | ||
python-version: [3.7] | ||
|
||
name: Test Python ${{ matrix.python-version }} | ||
name: Test Python ${{ matrix.python-version }} on ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Black Code Formatter | ||
uses: lgeiger/[email protected] | ||
- name: Test with pytest | ||
run: | | ||
pip install codecov pytest pytest-cov | ||
pytest --cov=./ | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
- name: GitHub Action for pytest | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install codecov pytest pytest-cov | ||
pytest ./ |
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
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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 |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
# For more info please contact: | ||
# Developer Zhixu Ni [email protected] | ||
|
||
|
||
class LynxObject(object): | ||
def __init__(self, lynx_id: str): | ||
|
||
|
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 |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
# Developer Zhixu Ni [email protected] | ||
|
||
import json | ||
import os | ||
|
||
from lynx.utils.cfg_reader import app_cfg_info | ||
from lynx.utils.params_loader import ( | ||
|
@@ -33,6 +34,15 @@ | |
default_alias_file = get_abs_path(app_cfg_info["defined_alias"]) | ||
default_kegg_file = get_abs_path(app_cfg_info["resource_kegg"]) | ||
default_lion_file = get_abs_path(app_cfg_info["resource_lion"]) | ||
default_temp_folder = app_cfg_info.get("temp_folder", r"lynx/temp") | ||
default_temp_max_days = int(app_cfg_info.get("temp_max_days", "3")) | ||
default_temp_max_files = int(app_cfg_info.get("temp_max_files", "99")) | ||
|
||
if os.path.isdir(default_temp_folder): | ||
pass | ||
else: | ||
os.mkdir(default_temp_folder) | ||
default_temp_folder = get_abs_path(default_temp_folder) | ||
|
||
with open(default_cv_file, "r") as cv_js: | ||
cv_alias_json = json.load(cv_js) | ||
|
@@ -53,6 +63,10 @@ | |
with open(default_lion_file, "r") as lion_json_obj: | ||
lion_ids = json.load(lion_json_obj) | ||
|
||
default_template_files = { | ||
"LipidLynxX_Linker_Template.csv": "lynx/static/files/LipidLynxX_Linker_Template.csv" | ||
} | ||
|
||
lipid_level_lst = ["B", "D", "S"] | ||
mod_level_lst = ["0", "1", "2", "3", "4", "5"] | ||
db_level_lst = [".0", "0.1", "0.2"] | ||
|
Oops, something went wrong.