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

Feature/update submoudles #214

Merged
merged 10 commits into from
Sep 6, 2024
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
23 changes: 6 additions & 17 deletions .github/workflows/test_bam_collapsing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ jobs:
max-parallel: 1
matrix:
platform: [ubuntu-latest]
python-version: [3.6]
python-version: ['3.10']
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name : Set up NodeJS
Expand All @@ -34,24 +34,13 @@ jobs:
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
nvm install node
- name: Setup Docker
uses: docker-practice/actions-setup-docker@master
with:
docker_channel: nightly
# this value please see https://github.com/AkihiroSuda/moby-snapshot/releases
docker_nightly_version: snapshot-20201109
env:
PLATFORM: ${{ matrix.platform }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.RS_PAT }}
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Install Test data
run: |
bash get_test_data.sh
- name: Test with tox
id: run-tox
run: tox -vv
Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: python
python:
- 3.6
- 3.10
install: pip install -U tox-travis
script: tox
deploy:
Expand All @@ -14,4 +14,4 @@ deploy:
on:
tags: true
repo: msk-access/bam_collapsing
python: 3.6
python: 3.10
2 changes: 1 addition & 1 deletion command_line_tools
12 changes: 9 additions & 3 deletions get_test_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@ filename=test_fgbio_bam_collapsing.tar.gz
# Skip if already have test data
[[ -f $filename ]] && exit 0

curl -c ./cookie -s -k -L "https://drive.google.com/uc?export=download&id=$fileid" >/dev/null
#curl -c ./cookie -s -k -L "https://drive.google.com/uc?export=download&id=$fileid" >/dev/null
#curl -k -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=$(awk '/download/ {print $NF}' ./cookie)&id=${fileid}" -o ${filename}

curl -k -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=$(awk '/download/ {print $NF}' ./cookie)&id=${fileid}" -o ${filename}
curl -L "https://drive.usercontent.google.com/download?id=${fileid}&confirm=xxx" -o ${filename}

tar --warning=no-unknown-keyword -xzvf $filename
# Suppress linux warnings for MacOS tar.gz files
if [[ "$OSTYPE" == "linux-gnu" ]]; then
tar --warning=no-unknown-keyword -xzvf $filename
elif [[ "$OSTYPE" == "darwin"* ]]; then
tar -xzvf $filename
fi

rm $filename
22 changes: 6 additions & 16 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
toil[cwl]==5.0.0
pytz==2020.1
typing==3.7.4.3
ruamel.yaml==0.16.5
pip==20.2.3
bumpversion==0.6.0
wheel==0.35.1
watchdog==0.10.3
flake8==3.8.4
tox==3.20.0
coverage==5.3
twine==3.2.0
pytest==6.1.1
pytest-runner==5.2
coloredlogs==10.0
pytest-travis-fold==1.3.0
coloredlogs==15.0.1
pytest==7.2.0
setuptools==65.4.1
toil[cwl]==5.10.0
pytest-runner==6.0.1
tox==3.27.1
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.0.0
current_version = 1.1.0
commit = True
tag = True

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
with open('README.md') as readme_file:
readme = readme_file.read()

requirements = ['toil[all]==4.2.0', ]
requirements = ['toil[all]==5.10.0', ]

setup_requirements = [
'pytest-runner', ]
Expand Down
2 changes: 1 addition & 1 deletion subworkflows
Submodule subworkflows updated 64 files
+41 −0 .github/workflows/codeql.yml
+5 −5 .github/workflows/pack_cwls.yml
+31 −0 .github/workflows/validate_cwls.yml
+1 −0 .gitignore
+656 −11 LICENSE
+173 −136 alignment/alignment__packed.cwl
+74 −0 athena_report/README.md
+115 −0 athena_report/athena_report.cwl
+885 −0 athena_report/athena_report__packed.cwl
+3 −0 athena_report/example_inputs.yaml
+12 −0 athena_report/example_inputs_juno.yaml
+12 −0 athena_report/example_inputs_juno_empty.yaml
+51 −0 bam_qc_stats/README.md
+57 −13 bam_qc_stats/bam_qc_stats.cwl
+317 −224 bam_qc_stats/bam_qc_stats__packed.cwl
+0 −6 base_quality_recalibration/base_quality_recalibration.cwl
+228 −219 base_quality_recalibration/base_quality_recalibration__packed.cwl
+1 −1 command_line_tools
+20 −9 docs/SUMMARY.md
+361 −300 fgbio_separate_bams/fgbio_separate_bams__packed.cwl
+43 −0 gbcms_genotyping/README.md
+51 −0 gbcms_genotyping/example_inputs.json
+316 −0 gbcms_genotyping/gbcms_genotyping.cwl
+714 −0 gbcms_genotyping/gbcms_genotyping__packed.cwl
+246 −230 indel_realignment/indel_realignment__packed.cwl
+129 −0 qc_collapsed_bam/README.md
+677 −0 qc_collapsed_bam/qc_collapsed_bam.cwl
+3,714 −0 qc_collapsed_bam/qc_collapsed_bam__packed.cwl
+539 −0 qc_collapsed_bam/qc_collapsed_bam_v2.0.cwl
+3,477 −0 qc_collapsed_bam/qc_collapsed_bam_v2.0__packed.cwl
+142 −0 qc_duplex_bam/README.md
+537 −0 qc_duplex_bam/qc_duplex_bam.cwl
+3,287 −0 qc_duplex_bam/qc_duplex_bam__packed.cwl
+508 −0 qc_duplex_bam/qc_duplex_bam_v2.0.cwl
+3,271 −0 qc_duplex_bam/qc_duplex_bam_v2.0__packed.cwl
+71 −0 qc_simplex_bam/README.md
+197 −0 qc_simplex_bam/qc_simplex_bam.cwl
+1,609 −0 qc_simplex_bam/qc_simplex_bam__packed.cwl
+135 −0 qc_simplex_bam/qc_simplex_bam_v2.0.cwl
+1,498 −0 qc_simplex_bam/qc_simplex_bam_v2.0__packed.cwl
+72 −0 qc_uncollapsed_bam/README.md
+294 −0 qc_uncollapsed_bam/qc_uncollapsed_bam.cwl
+2,404 −0 qc_uncollapsed_bam/qc_uncollapsed_bam__packed.cwl
+216 −0 qc_uncollapsed_bam/qc_uncollapsed_bam_v2.0.cwl
+2,261 −0 qc_uncollapsed_bam/qc_uncollapsed_bam_v2.0__packed.cwl
+3 −3 requirements.txt
+26 −0 vardict_workflow/README.md
+16 −0 vardict_workflow/example_inputs.yaml
+185 −0 vardict_workflow/run_processed_vardict.cwl
+2,755 −0 vardict_workflow/run_processed_vardict__packed.cwl
+103 −0 variant_annotation/README.md
+60 −0 variant_annotation/chipvar_processing.cwl
+380 −0 variant_annotation/chipvar_processing__packed.cwl
+5 −0 variant_annotation/example_inputs_chipvar.yaml
+28 −0 variant_annotation/example_inputs_variant_annotation.yaml
+353 −0 variant_annotation/variant_annotation.cwl
+1,644 −0 variant_annotation/variant_annotation__packed.cwl
+127 −0 variant_postprocessing/README.md
+165 −0 variant_postprocessing/variant_normalize_sort.cwl
+851 −0 variant_postprocessing/variant_normalize_sort__packed.cwl
+115 −0 variant_postprocessing/variant_sort.cwl
+597 −0 variant_postprocessing/variant_sort__packed.cwl
+165 −0 variant_postprocessing/variants_concat.cwl
+1,483 −0 variant_postprocessing/variants_concat__packed.cwl
4 changes: 2 additions & 2 deletions tests/test_bam_collapsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ def setup_module():

cmd = [
"cwltool",
"--preserve-environment",
"PATH",
# "--preserve-environment",
# "PATH",
"bam_collapsing.cwl",
"test_fgbio_bam_collapsing/inputs/inputs.json",
]
Expand Down
12 changes: 3 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[tox]
envlist = py{36}-{linux}
envlist = py{310}-{linux}

[travis]
python =
3.6: py36
3.10: py310

[gh-actions]
python =
3.6: py36
3.10: py310

[gh-actions:env]
PLATFORM =
Expand All @@ -30,11 +30,5 @@ deps =

passenv = {gh-actions,pytest}

whitelist_externals =
wget
chmod
tar
goodls
commands_pre = ./get_test_data.sh
commands =
py.test --capture=sys --basetemp={envtmpdir} tests