-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMiXCR.smk
More file actions
31 lines (26 loc) · 989 Bytes
/
MiXCR.smk
File metadata and controls
31 lines (26 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
mixcr_path = "/home/yuet/mixcr-4.1.0/mixcr"
command_temp = "snakemake -s /workspace/yuet/TCR/01.Script/22_Runmixcr_TRB.sm /workspace/yuet/TCR/mixcrResult/PRJNA297261/SRR2549146.TRB.mixcr"
rule all:
input: "/workspace/yuet/TCR/mixcrResult/{projectId}/{runId}.TRB.mixcr"
rule align:
input: "/workspace/yuet/TCR/2.afterQC/{projectId}/{runId}.afterQC.fastq"
output: temp("{projectId}_{runId}.vdjca")
threads: 32
shell:
"""
timeout 10800 {mixcr_path} align -f -s hs -t {threads} {input} {output}
"""
rule assemble:
input: rules.align.output
output: temp("{projectId}_{runId}.clns")
shell:
"""
timeout 10800 {mixcr_path} assemble -f {input} {output}
"""
rule export:
input: rules.assemble.output,
output: "/workspace/yuet/TCR/mixcrResult/{projectId}/{runId}.TRB.mixcr",
shell:
"""
timeout 10800 {mixcr_path} exportClones -o -t -f -c TRB {input} {output}
"""