Skip to content

Commit 56eee14

Browse files
authored
Merge pull request #2 from sunbeam-labs/1-remove-dependency-on-deprecated-sunbeamlib-feature
Move envs to envs/ and add missing parse_blast6 function
2 parents 8174988 + c78fa18 commit 56eee14

13 files changed

+62
-694
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Check Conda Envs
2+
3+
on:
4+
pull_request:
5+
branches: [ main, master ]
6+
push:
7+
branches: [ main, master ]
8+
workflow_dispatch:
9+
inputs:
10+
envs:
11+
description: 'Regex for envs'
12+
required: false
13+
default: 'envs/'
14+
15+
jobs:
16+
check_conda_envs:
17+
name: Check Conda Envs
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout Code
22+
uses: actions/checkout@v4
23+
24+
- name: Check Conda Envs
25+
uses: Ulthran/conda_env_check@v1
26+
with:
27+
envs: "envs/"

.github/workflows/tests.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,7 @@ jobs:
1818
uses: actions/checkout@v3
1919

2020
- name: Test with Sunbeam
21-
uses: sunbeam-labs/sbx_test_action@v0
22-
with:
23-
sunbeam-version: 'dev'
24-
install-options: '-m'
25-
extension-name: 'sunbeam-labs/sbx_assembly'
26-
extension-branch-name: ${{ github.head_ref }}
21+
uses: sunbeam-labs/sbx_test_action@v1
2722

2823
- name: Dump Logs
2924
shell: bash

LICENSE

Lines changed: 0 additions & 674 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

sbx_annotation.smk

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ rule build_diamond_db:
5454
log:
5555
LOG_FP / "build_diamond_db.log",
5656
conda:
57-
"sbx_annotation.yml"
57+
"envs/sbx_annotation.yml"
5858
shell:
5959
"""
6060
diamond makedb --in {input} -d {input} 2>&1 | tee {log}
@@ -75,7 +75,7 @@ rule run_blastn:
7575
db=lambda wildcard: Blastdbs["nucl"][wildcard.db],
7676
threads: Cfg["sbx_annotation"]["threads"]
7777
conda:
78-
"sbx_annotation.yml"
78+
"envs/sbx_annotation.yml"
7979
shell:
8080
"""
8181
blastn \
@@ -103,7 +103,7 @@ rule run_diamond_blastp:
103103
LOG_FP / "run_diamond_blastp_{db}_{orf_finder}_{sample}.log",
104104
threads: Cfg["sbx_annotation"]["threads"]
105105
conda:
106-
"sbx_annotation.yml"
106+
"envs/sbx_annotation.yml"
107107
shell:
108108
"""
109109
if [ -s {input.genes} ]; then
@@ -136,7 +136,7 @@ rule run_diamond_blastx:
136136
LOG_FP / "run_diamond_blastx_{db}_{orf_finder}_{sample}.log",
137137
threads: Cfg["sbx_annotation"]["threads"]
138138
conda:
139-
"sbx_annotation.yml"
139+
"envs/sbx_annotation.yml"
140140
shell:
141141
"""
142142
if [ -s {input.genes} ]; then
@@ -166,7 +166,7 @@ rule blast_report:
166166
output:
167167
ANNOTATION_FP / "{blast_prog}" / "{db}" / "{query}" / "report.tsv",
168168
conda:
169-
"sbx_annotation.yml"
169+
"envs/sbx_annotation.yml"
170170
script:
171171
"scripts/blast_report.py"
172172

@@ -212,7 +212,7 @@ rule aggregate_results:
212212
nucl=Blastdbs["nucl"],
213213
prot=Blastdbs["prot"],
214214
conda:
215-
"sbx_annotation.yml"
215+
"envs/sbx_annotation.yml"
216216
script:
217217
"scripts/aggregate_results.py"
218218

0 commit comments

Comments
 (0)