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

feat: Adding somatic neoepitope preparation workflow #495

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
72717b8
Adding somatic neoepitope preparation workflow
Apr 4, 2024
4eab17a
Satisfying code format
Apr 4, 2024
4e08a50
Satisfying black
Apr 4, 2024
0c35c66
Satisfying snakefmt
Apr 4, 2024
b4b36ba
make isort comfort
Apr 4, 2024
f1af42c
update neoepitope prediction
May 22, 2024
2fcf1bf
Make black satisfy
May 22, 2024
cfa36ac
Update snappy_pipeline/workflows/somatic_neoepitope_prediction/Snakefile
giacuong171 Jun 4, 2024
8d9155d
Update snappy_pipeline/workflows/somatic_neoepitope_prediction/__init…
giacuong171 Jun 4, 2024
9776587
Merge branch 'main' into 472-adding-neoepitope-prediction-pipeline
Jun 11, 2024
40cb936
Update preparation for somatic neoepitope prediction
Jun 18, 2024
e645608
Merge branch '472-adding-neoepitope-prediction-pipeline' of github.co…
Jun 18, 2024
23101e8
Update test
Jun 18, 2024
0920803
Adding plugins option to VEP
Jul 1, 2024
9d8a660
Merge branch 'main' into 472-adding-neoepitope-prediction-pipeline
Jul 1, 2024
0d95ea3
Adding plugin options for vep
Jul 3, 2024
1d72562
Reformat neoepitope prediction for new snappy version
Jul 3, 2024
6d9257c
Satisfies lint
Jul 3, 2024
999c6ea
Adding test for somatic neoepitope prediction preparation substep
Jul 5, 2024
a140e28
Preparation for pvactool
Jul 11, 2024
03bd9e4
Fix HLA_typing pipeline
Jul 11, 2024
d43a11b
Adding test for neoepitope prediction
Jul 15, 2024
73e08c6
Adding pvacseq pipeline
Jul 17, 2024
ceb3ae6
Merge branch 'main' into 472-adding-neoepitope-prediction-pipeline
Jul 17, 2024
9670292
make lint happy
Jul 17, 2024
76e0c97
Make linting satisfying
Jul 17, 2024
03c9714
Reformat hla_typing snakefile
Jul 17, 2024
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
63 changes: 63 additions & 0 deletions snappy_pipeline/workflows/somatic_neoepitope_prediction/Snakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# -*- coding: utf-8 -*-
"""CUBI Pipeline tumor mutational burden step Snakefile"""
giacuong171 marked this conversation as resolved.
Show resolved Hide resolved

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
neoepitope_preparation_link_out_run,


rule all:
input:
wf.get_result_files(),


# Generic linking out ---------------------------------------------------------


rule 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 neoepitope_preparation:
input:
**wf.get_input_files("neoepitope_preparation", "run"),
output:
**wf.get_output_files("neoepitope_preparation", "run"),
log:
**wf.get_log_file("neoepitope_preparation", "run"),
threads: wf.get_resource("neoepitope_preparation", "run", "threads")
resources:
time=wf.get_resource("neoepitope_preparation", "run", "time"),
memory=wf.get_resource("neoepitope_preparation", "run", "memory"),
partition=wf.get_resource("neoepitope_preparation", "run", "partition"),
tmpdir=wf.get_resource("neoepitope_preparation", "run", "tmpdir"),
wrapper:
wf.wrapper_path("pvactools/combining")
Loading
Loading