-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: Adding somatic neoepitope preparation workflow #495
Open
giacuong171
wants to merge
27
commits into
main
Choose a base branch
from
472-adding-neoepitope-prediction-pipeline
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
72717b8
Adding somatic neoepitope preparation workflow
4eab17a
Satisfying code format
4e08a50
Satisfying black
0c35c66
Satisfying snakefmt
b4b36ba
make isort comfort
f1af42c
update neoepitope prediction
2fcf1bf
Make black satisfy
cfa36ac
Update snappy_pipeline/workflows/somatic_neoepitope_prediction/Snakefile
giacuong171 8d9155d
Update snappy_pipeline/workflows/somatic_neoepitope_prediction/__init…
giacuong171 9776587
Merge branch 'main' into 472-adding-neoepitope-prediction-pipeline
40cb936
Update preparation for somatic neoepitope prediction
e645608
Merge branch '472-adding-neoepitope-prediction-pipeline' of github.co…
23101e8
Update test
0920803
Adding plugins option to VEP
9d8a660
Merge branch 'main' into 472-adding-neoepitope-prediction-pipeline
0d95ea3
Adding plugin options for vep
1d72562
Reformat neoepitope prediction for new snappy version
6d9257c
Satisfies lint
999c6ea
Adding test for somatic neoepitope prediction preparation substep
a140e28
Preparation for pvactool
03bd9e4
Fix HLA_typing pipeline
d43a11b
Adding test for neoepitope prediction
73e08c6
Adding pvacseq pipeline
ceb3ae6
Merge branch 'main' into 472-adding-neoepitope-prediction-pipeline
9670292
make lint happy
76e0c97
Make linting satisfying
03c9714
Reformat hla_typing snakefile
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
99 changes: 99 additions & 0 deletions
99
snappy_pipeline/workflows/somatic_neoepitope_prediction/Snakefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
# -*- coding: utf-8 -*- | ||
"""CUBI Pipeline somatic neoepitope prediction step Snakefile""" | ||
|
||
import os | ||
|
||
from snappy_pipeline import expand_ref | ||
from snappy_pipeline.workflows.somatic_neoepitope_prediction import ( | ||
SomaticNeoepitopePredictionWorkflow, | ||
) | ||
|
||
__author__ = "Pham Gia Cuong" | ||
|
||
|
||
# Configuration =============================================================== | ||
|
||
|
||
configfile: "config.yaml" | ||
|
||
|
||
# Expand "$ref" JSON pointers in configuration (also works for YAML) | ||
config, lookup_paths, config_paths = expand_ref("config.yaml", config) | ||
|
||
# WorkflowImpl Object Setup =================================================== | ||
wf = SomaticNeoepitopePredictionWorkflow(workflow, config, lookup_paths, config_paths, os.getcwd()) | ||
|
||
|
||
localrules: | ||
# Linking files from work/ to output/ should be done locally | ||
somatic_neoepitope_preparation_link_out_run, | ||
|
||
|
||
rule all: | ||
input: | ||
wf.get_result_files(), | ||
|
||
|
||
# Generic linking out --------------------------------------------------------- | ||
|
||
|
||
rule somatic_neoepitope_preparation_link_out_run: | ||
input: | ||
wf.get_input_files("link_out", "run"), | ||
output: | ||
wf.get_output_files("link_out", "run"), | ||
run: | ||
shell(wf.get_shell_cmd("link_out", "run", wildcards)) | ||
|
||
|
||
rule somatic_neoepitope_prediction_pvactools_install: | ||
output: | ||
**wf.get_output_files("pvacseq", "install"), | ||
params: | ||
container="docker://griffithlab/pvactools", | ||
resources: | ||
time=wf.get_resource("pvacseq", "install", "time"), | ||
memory=wf.get_resource("pvacseq", "install", "memory"), | ||
partition=wf.get_resource("pvacseq", "install", "partition"), | ||
log: | ||
**wf.get_log_file("pvacseq", "install"), | ||
wrapper: | ||
wf.wrapper_path("singularity") | ||
|
||
|
||
rule somatic_neoepitope_preparation: | ||
input: | ||
unpack(wf.get_input_files("pvacseq", "prepare")), | ||
output: | ||
**wf.get_output_files("pvacseq", "prepare"), | ||
log: | ||
**wf.get_log_file("pvacseq", "prepare"), | ||
threads: wf.get_resource("pvacseq", "prepare", "threads") | ||
resources: | ||
time=wf.get_resource("pvacseq", "prepare", "time"), | ||
memory=wf.get_resource("pvacseq", "prepare", "memory"), | ||
partition=wf.get_resource("pvacseq", "prepare", "partition"), | ||
tmpdir=wf.get_resource("pvacseq", "prepare", "tmpdir"), | ||
params: | ||
**{"args": wf.get_params("pvacseq", "prepare")}, | ||
wrapper: | ||
wf.wrapper_path("pvactools/combining") | ||
|
||
|
||
rule somatic_neoepitope_prediction: | ||
input: | ||
unpack(wf.get_input_files("pvacseq", "predict")), | ||
output: | ||
**wf.get_output_files("pvacseq", "predict"), | ||
log: | ||
**wf.get_log_file("pvacseq", "predict"), | ||
threads: wf.get_resource("pvacseq", "predict", "threads") | ||
resources: | ||
time=wf.get_resource("pvacseq", "predict", "time"), | ||
memory=wf.get_resource("pvacseq", "predict", "memory"), | ||
partition=wf.get_resource("pvacseq", "predict", "partition"), | ||
tmpdir=wf.get_resource("pvacseq", "predict", "tmpdir"), | ||
params: | ||
**{"args": wf.get_params("pvacseq", "predict")}, | ||
wrapper: | ||
wf.wrapper_path("pvactools/pvacseq") |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why the rules for tools must be put under an
if
statement.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have discussed with Till about this bug. The rule hla_typing_arcashla_run gets evaluated, even that arcashla is not defined. So this is a quick fix for this bug.