-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updates to workflow for multiple datasets * Fix #27 * Update GH Action * Move workflow structure * updated gh actions * update installation * Update Makefile * update songbird env * add wflow dest to qadabra cli * Change correlation to kendall * add stratification to repeated kfold * update README * new test data * Pin r-detectseparation & r-base statdivlab/corncob#141 (comment)
- Loading branch information
Showing
64 changed files
with
9,129 additions
and
470 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 |
---|---|---|
|
@@ -16,36 +16,35 @@ on: | |
- "README.md" | ||
|
||
jobs: | ||
Linting: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Lint workflow | ||
uses: snakemake/[email protected] | ||
with: | ||
directory: . | ||
snakefile: workflow/Snakefile | ||
stagein: "mamba install -y -n snakemake --channel conda-forge --channel bioconda" | ||
args: "--lint" | ||
|
||
Testing: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- Linting | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Test workflow | ||
uses: snakemake/snakemake-github-action@v1 | ||
with: | ||
directory: . | ||
snakefile: workflow/Snakefile | ||
args: "--use-conda --show-failed-logs -j 10 --conda-cleanup-pkgs cache --conda-frontend mamba" | ||
stagein: "conda config --get channel_priority --json" | ||
|
||
- name: Test report | ||
uses: snakemake/snakemake-github-action@v1 | ||
with: | ||
directory: . | ||
snakefile: workflow/Snakefile | ||
args: "--report report.zip" | ||
- uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
|
||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: qadabra | ||
mamba-version: "*" | ||
channels: conda-forge,defaults,bioconda | ||
channel-priority: true | ||
python-version: "3.8" | ||
|
||
- name: Install conda packages | ||
shell: bash -l {0} | ||
run: mamba install snakemake click biom-format pandas numpy cython | ||
|
||
- name: Install pip packages | ||
shell: bash -l {0} | ||
run: pip install iow | ||
|
||
- name: Install qadabra | ||
shell: bash -l {0} | ||
run: pip install -e . | ||
|
||
- name: Run Snakemake | ||
shell: bash -l {0} | ||
run: make snaketest |
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,3 +2,5 @@ | |
*.swp | ||
*.snakemake | ||
*__pycache__ | ||
*egg-info/ | ||
config/datasets.tsv |
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,2 @@ | ||
graft workflow | ||
graft config |
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,2 +1,11 @@ | ||
create_rulegraph: | ||
snakemake -f --rulegraph | dot -Tpng > imgs/rule_graph.png | ||
TMPDIR := $(shell mktemp -d) | ||
TABLE_FILE := $(shell realpath qadabra/test_data/table.biom) | ||
MD_FILE := $(shell realpath qadabra/test_data/metadata.tsv) | ||
|
||
snaketest: | ||
@set -e; | ||
echo $(TMPDIR); \ | ||
qadabra create-workflow --workflow-dest $(TMPDIR); \ | ||
qadabra add-dataset --workflow-dest $(TMPDIR) --table $(TABLE_FILE) --metadata $(MD_FILE) --name "ampharos" --factor-name comparison --target-level CD --reference-level control --verbose; \ | ||
cd $(TMPDIR); \ | ||
snakemake --use-conda --cores 4 --retries 2 |
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 was deleted.
Oops, something went wrong.
Binary file not shown.
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 @@ | ||
__version__ = "0.3.0a1" |
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.
Oops, something went wrong.