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

Update snakemake #149

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-binchicken.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
shell: bash -l {0}
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.11"]
steps:
- uses: actions/checkout@v2
- name: Set up environment with Python ${{ matrix.python-version }}
Expand Down
7 changes: 4 additions & 3 deletions binchicken.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ channels:
- bioconda
- defaults
dependencies:
- python=3.10.*
- snakemake=7.32.*
- mamba=1.4.*
- python=3.11.*
- snakemake=8.25.*
- snakemake-executor-plugin-cluster-generic=1.0.*
- snakemake-executor-plugin-slurm=0.11.*
- networkx=3.1
- bird_tool_utils_python=0.4.*
- extern=0.4.*
Expand Down
2 changes: 1 addition & 1 deletion binchicken/binchicken.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import polars as pl
import polars.selectors as cs
from polars.exceptions import NoDataError
from snakemake.io import load_configfile
from snakemake.common.configfile import load_configfile
from ruamel.yaml import YAML
import copy
import shutil
Expand Down
11 changes: 1 addition & 10 deletions test/test_coassemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from bird_tool_utils import in_tempdir
import extern
import subprocess
from snakemake.io import load_configfile
from snakemake.common.configfile import load_configfile
import polars as pl
from polars.testing import assert_frame_equal

Expand Down Expand Up @@ -966,7 +966,6 @@ def test_coassemble_singlem_inputs(self):
f"--output test "
f"--conda-prefix {path_to_conda} "
f"--dryrun "
f"--snakemake-args \" --quiet\" "
)
output = extern.run(cmd)

Expand Down Expand Up @@ -1008,7 +1007,6 @@ def test_coassemble_run_aviary(self):
f"--output test "
f"--conda-prefix {path_to_conda} "
f"--dryrun "
f"--snakemake-args \" --quiet\" "
)
output = extern.run(cmd)

Expand Down Expand Up @@ -1054,7 +1052,6 @@ def test_coassemble_run_aviary_unmapped(self):
f"--output test "
f"--conda-prefix {path_to_conda} "
f"--dryrun "
f"--snakemake-args \" --quiet\" "
)
output = extern.run(cmd)

Expand Down Expand Up @@ -1101,7 +1098,6 @@ def test_coassemble_run_aviary_unmapped_qc(self):
f"--output test "
f"--conda-prefix {path_to_conda} "
f"--dryrun "
f"--snakemake-args \" --quiet\" "
)
output = extern.run(cmd)

Expand Down Expand Up @@ -1153,7 +1149,6 @@ def test_coassemble_files_of_paths(self):
f"--output test "
f"--conda-prefix {path_to_conda} "
f"--dryrun "
f"--snakemake-args \" --quiet\" "
)
output = extern.run(cmd)

Expand Down Expand Up @@ -1207,7 +1202,6 @@ def test_coassemble_singlem_inputs_files_of_paths(self):
f"--output test "
f"--conda-prefix {path_to_conda} "
f"--dryrun "
f"--snakemake-args \" --quiet\" "
)
output = extern.run(cmd)

Expand Down Expand Up @@ -1247,7 +1241,6 @@ def test_coassemble_singlem_inputs_dir(self):
f"--output test "
f"--conda-prefix {path_to_conda} "
f"--dryrun "
f"--snakemake-args \" --quiet\" "
)
output = extern.run(cmd)

Expand Down Expand Up @@ -1287,7 +1280,6 @@ def test_coassemble_preclustered_dryrun(self):
f"--output test "
f"--conda-prefix {path_to_conda} "
f"--dryrun "
f"--snakemake-args \" --quiet\" "
)
output = extern.run(cmd)

Expand Down Expand Up @@ -1327,7 +1319,6 @@ def test_coassemble_weighted_dryrun(self):
f"--output test "
f"--conda-prefix {path_to_conda} "
f"--dryrun "
f"--snakemake-args \" --quiet\" "
)
output = extern.run(cmd)

Expand Down
4 changes: 1 addition & 3 deletions test/test_evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import os
from bird_tool_utils import in_tempdir
import extern
from snakemake.io import load_configfile
from snakemake.common.configfile import load_configfile

path_to_data = os.path.join(os.path.dirname(os.path.realpath(__file__)),'data')
path_to_conda = os.path.join(path_to_data,'.conda')
Expand Down Expand Up @@ -153,7 +153,6 @@ def test_evaluate_specified_files(self):
f"--output test "
f"--conda-prefix {path_to_conda} "
f"--dryrun "
f"--snakemake-args \" --quiet\" "
)
output = extern.run(cmd)

Expand Down Expand Up @@ -283,7 +282,6 @@ def test_evaluate_genome_files_input(self):
f"--output test "
f"--conda-prefix {path_to_conda} "
f"--dryrun "
f"--snakemake-args \" --quiet\" "
)
output = extern.run(cmd)

Expand Down
3 changes: 1 addition & 2 deletions test/test_iterate.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from bird_tool_utils import in_tempdir
import extern
import subprocess
from snakemake.io import load_configfile
from snakemake.common.configfile import load_configfile
import re

path_to_data = os.path.join(os.path.dirname(os.path.realpath(__file__)),'data')
Expand Down Expand Up @@ -372,7 +372,6 @@ def test_iterate_genome_files_input(self):
f"--output test "
f"--conda-prefix {path_to_conda} "
f"--dryrun "
f"--snakemake-args \" --quiet\" "
)
output = extern.run(cmd)

Expand Down
5 changes: 1 addition & 4 deletions test/test_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import gzip
from bird_tool_utils import in_tempdir
import extern
from snakemake.io import load_configfile
from snakemake.common.configfile import load_configfile

path_to_data = os.path.join(os.path.dirname(os.path.realpath(__file__)),'data')
path_to_conda = os.path.join(path_to_data,'.conda')
Expand Down Expand Up @@ -308,7 +308,6 @@ def test_update_specified_files(self):
f"--output test "
f"--conda-prefix {path_to_conda} "
f"--dryrun "
f"--snakemake-args \" --quiet\" "
)
output = extern.run(cmd)

Expand Down Expand Up @@ -376,7 +375,6 @@ def test_update_sra_download(self):
f"--output test "
f"--conda-prefix {path_to_conda} "
f"--dryrun "
f"--snakemake-args \" --quiet\" "
)
output_comb = extern.run(cmd)

Expand Down Expand Up @@ -584,7 +582,6 @@ def test_update_aviary_run(self):
f"--output test "
f"--conda-prefix {path_to_conda} "
f"--dryrun "
f"--snakemake-args \" --quiet\" "
)
output_comb = extern.run(cmd)

Expand Down
Loading