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

fix(ci): update black to rev 22.3.0 #523

Merged
merged 13 commits into from
May 7, 2022
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ jobs:
- name: Test rule ${{ matrix.rule }} on ${{ matrix.technology }} ${{ matrix.seq_method }} data
uses: snakemake/[email protected]
with:
stagein: mamba env create -f workflow/envs/trinity.yaml -n trinity
directory: .tests
snakefile: workflow/Snakefile
args: "-pr --use-conda --show-failed-logs --cores 2 --resources ncbi_api_requests=1 --conda-cleanup-pkgs cache --conda-frontend mamba ${{ matrix.rule }}"
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repos:
- id: snakefmt

- repo: https://github.com/psf/black
rev: 21.12b0
rev: 22.3.0
hooks:
- id: black
- id: black-jupyter
Expand Down
5 changes: 4 additions & 1 deletion workflow/envs/trinity.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
channels:
- bioconda
- conda-forge
- defaults
dependencies:
- trinity =2.12
- trinity =2.13
# ensure that we use a bowtie2 that already contains fixed dependency constraints
- bowtie2 =2.4.5
2 changes: 1 addition & 1 deletion workflow/rules/benchmarking.smk
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ rule assembly_comparison_trinity:
"../envs/trinity.yaml"
shell:
"(Trinity --left {input.fastq1} --max_memory 16G --right {input.fastq2} --CPU {threads} --seqType fq --output {params.outdir} && "
"mv {params.outdir}/Trinity.fasta {output} ) > {log} 2>&1"
"mv {params.outdir}.Trinity.fasta {output} ) > {log} 2>&1"


rule assembly_comparison_velvet:
Expand Down
4 changes: 1 addition & 3 deletions workflow/scripts/evaluate-strain-call-error.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ def load_pangolin_df(i, path):
columns={"lineage": "target_id", "scorpio_support": "est_fraction"},
inplace=True,
)
pangolin_df.drop(
columns=["taxon", "pangoLEARN_version", "qc_status", "note"], inplace=True
)
pangolin_df.drop(columns=["taxon", "qc_status", "note"], inplace=True)
pangolin_df["mix"] = i
return pangolin_df

Expand Down