Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch testing to GitHub Actions #14

Merged
merged 10 commits into from
Mar 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Test pathway parameter advising
on:
- push
- pull_request
jobs:
Test:
name: Test pathway parameter advising
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install conda environment
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: ppa
environment-file: environment.yml
auto-activate-base: false
miniconda-version: 'latest'
- name: Install pathway parameter advising
shell: bash --login {0}
run: |
python setup.py install
# Install PGD dependency
# macOS typically has gcc as an alias for clang, so specifically set gcc
if [[ "$RUNNER_OS" == "macOS" ]]; then
# Instructions for installing an older version of a brew package
# https://itnext.io/how-to-install-an-older-brew-package-add141e58d32
brew install gcc@10
export CC=gcc-10
export CXX=g++-10
fi
cd bin
bash setupPGD.sh
- name: Run and test pathway parameter advising
shell: bash --login {0}
run: |
# Run PPA examples
cd bin
bash runPPA.sh ../data/Wnt wnt_ranking.txt ../lib/pgd/
bash runNetBoxIL2.sh
# Compare the generated IL2 output with the reference output
cmp ../tests/reference/il2_ranking.txt il2_ranking.txt
echo "Generated IL2 ranking matches expected ranking"
46 changes: 0 additions & 46 deletions .travis.yml

This file was deleted.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Pathway parameter advising
[![Build Status](https://travis-ci.com/gitter-lab/pathway-parameter-advising.svg?branch=master)](https://travis-ci.com/gitter-lab/pathway-parameter-advising)
[![Test pathway parameter advising](https://github.com/gitter-lab/pathway-parameter-advising/actions/workflows/test.yml/badge.svg)](https://github.com/gitter-lab/pathway-parameter-advising/actions/workflows/test.yml)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3985899.svg)](https://doi.org/10.5281/zenodo.3985899)
[![PyPI](https://img.shields.io/pypi/v/pathwayParameterAdvising.svg?logo=PyPI)](https://pypi.org/project/pathwayParameterAdvising/)

Parameter advising for biological pathway creation algorithms.

## Citation

Pathway parameter advising is described in the following preprint:
Pathway parameter advising is described in the following publication:

[Automating parameter selection to avoid implausible biological pathway models](https://doi.org/10.1101/845834).
[Automating parameter selection to avoid implausible biological pathway models](https://doi.org/10.1038/s41540-020-00167-1).
Chris S Magnano, Anthony Gitter.
*bioRxiv* 2019. doi:10.1101/845834
*npj Systems Biology and Applications*, 7:12, 2021.

## Dependencies

Expand Down
6 changes: 6 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: ppa
dependencies:
- networkx=2.4
- numpy=1.19
- python=3.6
- requests=2.24