Snakemake workflow to perform tandem mass tag (TMT) analysis using the Trans Proteomic Pipeline (TPP)

public public 1yr ago 0 bookmarks

Snakemake workflow to perform tandem mass tag (TMT) analysis using the Trans Proteomic Pipeline (TPP)

alt text

Code Snippets

77
78
shell:
    "decoyFastaGenerator.pl {params.i} DECOY {params.o}"
SnakeMake From line 77 of main/Snakefile
105
106
107
108
109
110
shell:
    "sed 's/SAMPLE_NAME/{wildcards.sample}/g' {params.t} > {wildcards.sample}_tandem.params && "
    "sed 's/OUTPUT_DIR/" + basename(OUT_DIR) + "/g' {params.x} > taxonomy_{wildcards.sample}.xml && "
    "tandem {wildcards.sample}_tandem.params > {params.l} 2>&1 && "
    "mv {wildcards.sample}.tandem " + basename(OUT_DIR) + "/tandem/ &&"
    "rm {wildcards.sample}_tandem.params taxonomy_{wildcards.sample}.xml"
SnakeMake From line 105 of main/Snakefile
132
133
shell:
    "Tandem2XML {params.i} {params.o} > {params.l} 2>&1"
SnakeMake From line 132 of main/Snakefile
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
    shell:
        'comet'
        ' -P{params.t}'
        ' -D{params.d}'
        ' -N{wildcards.sample}'
        ' {params.i}'
        ' > {params.l} 2>&1'
        ' && mv {wildcards.sample}.pep.xml ' + join('/data', basename(OUT_DIR), 'comet')

##--------------------------------------------------------------------------------------##
##--------------------------------------------------------------------------------------##

rule PeptideProphet:
    input:
        pepXML = expand(join(OUT_DIR, '{engine}', '{sample}.pep.xml'), sample = SAMPLES, engine = ENGINES)
    output:
        PepProph = join(OUT_DIR, '{engine}', 'PepProph', 'xinteract.pep.xml')
    params:
        o = join('/data', basename(OUT_DIR), '{engine}', 'PepProph', 'xinteract.pep.xml'),
        l = join('/data', basename(OUT_DIR), basename(LOGS_DIR), '{engine}_PepProph.log'),
        d = join('/data', basename(OUT_DIR), 'database_plus_decoy.fa'),
        c = "/data/params/condition.xml"
    singularity:
        "docker://spctools/tpp"
    message:
        """  ------  Runing PeptideProphet search for combined mzMLs from {wildcards.engine} ------  """
    threads:
        16
    resources:
        mem_mb=32000
    shell:
        'xinteract'
        ' -N{params.o}'
        ' -p0.0'
        ' -l7'
        ' -PPM'
        ' -OAP'
SnakeMake From line 159 of main/Snakefile
224
225
226
227
228
229
230
shell:
    'InterProphetParser'
    ' THREADS=8'
    ' DECOY={params.d}'
    ' {params.i}'
    ' {params.o}'
    ' > {params.l} 2>&1'
SnakeMake From line 224 of main/Snakefile
255
256
257
258
259
260
261
262
263
264
265
266
shell:
    'ProteinProphet'
    ' {params.i}'
    ' {params.o}'
    ' IPROPHET'
    ' NOGROUPWTS'
    ' PLOTPNG'
    ' EXCELPEPS'
    ' EXCEL.90'
    ' LIBRA{params.c}'
    ' > {params.l} 2>&1'
    ' && mv quantitation.tsv {params.q}'
SnakeMake From line 255 of main/Snakefile
288
289
290
291
292
293
294
295
shell:
    'InterProphetParser'
    ' THREADS=8'
    ' DECOY={params.d}'
    ' {params.ic}'
    ' {params.it}'
    ' {params.o}'
    ' > {params.l} 2>&1'
SnakeMake From line 288 of main/Snakefile
317
318
319
320
321
322
323
324
325
326
327
328
shell:
    'ProteinProphet'
    ' {params.i}'
    ' {params.o}'
    ' IPROPHET'
    ' NOGROUPWTS'
    ' PLOTPNG'
    ' EXCELPEPS'
    ' EXCEL.90'
    ' LIBRA{params.c}'
    ' > {params.l} 2>&1'
    ' && mv quantitation.tsv {params.q}'
SnakeMake From line 317 of main/Snakefile
ShowHide 8 more snippets with no or duplicated tags.

Login to post a comment if you would like to share your experience with this workflow.

Do you know this workflow well? If so, you can request seller status , and start supporting this workflow.

Free

Created: 1yr ago
Updated: 1yr ago
Maitainers: public
URL: https://github.com/YazBraimah/TPP_TMT_proteomics_pipeline
Name: tpp_tmt_proteomics_pipeline
Version: 1
Badge:
workflow icon

Insert copied code into your website to add a link to this workflow.

Downloaded: 0
Copyright: Public Domain
License: None
Keywords:
  • Future updates

Related Workflows

cellranger-snakemake-gke
snakemake workflow to run cellranger on a given bucket using gke.
A Snakemake workflow for running cellranger on a given bucket using Google Kubernetes Engine. The usage of this workflow ...