Skip to content

Commit

Permalink
added separate rules for MHC-II prediction tools download
Browse files Browse the repository at this point in the history
  • Loading branch information
riasc committed Feb 27, 2024
1 parent 03219c0 commit 6e5e861
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions workflow/rules/prioritization.smk
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
rule download_prediction_affinity_tools:
rule download_mhcI_ba_tools:
output:
directory("workflow/scripts/mhc_i/")
message:
"Downloading MHC I prediction tools"
log:
"logs/download_prediction_affinity_tools.log"
"logs/download_mhc-I_ba_tools.log"
conda:
"../envs/basic.yml"
shell:
Expand All @@ -13,6 +13,21 @@ rule download_prediction_affinity_tools:
| tar xz -C workflow/scripts/
"""

rule download_mhcII_ba_tools:
output:
directory("workflow/scripts/mhc_ii/")
message:
"Downloading MHC II prediction tools"
log:
"logs/download_mhc-II_ba_tools.log"
conda:
"../envs/basic.yml"
shell:
"""
curl -L -o - https://downloads.iedb.org/tools/mhcii/3.1/IEDB_MHC_II-3.1.tar.gz \
| tar xz -C workflow/scripts/ > {log} 2>&1
"""

rule download_prediction_binding_affinity_tools:
output:
directory("workflow/scripts/immunogenicity/")
Expand All @@ -38,7 +53,8 @@ rule prioritization:
annotation="resources/refs/genome_tmp.gtf",
counts="results/{sample}/quantification/allcounts.txt",
mhcI_ba="workflow/scripts/mhc_i/",
mhcI_im="workflow/scripts/immunogenicity/"
mhcI_im="workflow/scripts/immunogenicity/",
mhcII_ba="workflow/scripts/mhc_ii/"
output:
directory("results/{sample}/prioritization/"),
message:
Expand Down

0 comments on commit 6e5e861

Please sign in to comment.