Snakemake Workflow for Pughlab CaptCR Pipeline Automation

public public 1yr ago 0 bookmarks

This repository is to automate the pughlab captcr pipeline using a snakemake workflow The pipeline consists of barcode extraction, running mixcr, running QC, and clonetracking

Code Snippets

42
43
44
45
46
47
48
49
shell:
 '''
 python {extract_barcodes}
     --read1 {{input.R1}}
     --read2 {{input.R2}}
     --outfile {{params.outprefix}}
     {{params.barcodes}}
 '''.format(extract_barcodes = config['extract_barcodes_path'])
SnakeMake From line 42 of main/Snakefile
62
63
64
65
66
67
68
shell:
	'''{java}  
	   logdir/{id}.txt  
	   basedir/{input.R1}
	   basedir/{input.R2} 
	   output.vdjca
	   '''.format(java=java_align)
SnakeMake From line 62 of main/Snakefile
79
80
81
82
83
	shell:
               '''{assemble}
	           aligndir/alignments_{id}.vdjca 
		  {output.vdjca_res1}
	       '''.format(assemble=assemble1)
SnakeMake From line 79 of main/Snakefile
 95
 96
 97
 98
 99
100
shell:

       '''{assemble}
          assembledir/rescue1_{id}.vdjca 
	  {output.vdjca_res2}
       '''.format(assemble=assemble1)
SnakeMake From line 95 of main/Snakefile
109
110
111
112
113
shell:
      '''{assemble}
         assembledir/rescue2_{id}.vdjca 
	 {output.vdjca_ext}
      '''.format(assemble=assembleEx)
SnakeMake From line 109 of main/Snakefile
124
125
126
127
128
129
shell:
      '''{assemble}
	 logdir/log_assemble_{id}.txt 
         assembledir/extended_{id}.vdjca
         {output.clns} 
     '''.format(assemble=assemble_f)
SnakeMake From line 124 of main/Snakefile
140
141
142
143
144
145
shell:

	'''export 
	  exportClones --chains TRA
	  assembledir/{id}.clns  {output.clones_A}
	'''
SnakeMake From line 140 of main/Snakefile
153
154
155
156
157
158
159
       shell:

		'''export 
		exportClones --chains TRB
		assembledir  {id}.clns
	        {output.clones_B}
	        ''' 		
SnakeMake From line 153 of main/Snakefile
166
167
168
169
170
shell:

	''' python {parse_log} 
	           -i  logdir  -o logdir
	'''.format(pars_log=confgi['pars_log_path'])
SnakeMake From line 166 of main/Snakefile
181
182
183
184
185
186
shell:

	''' Rscript {mixcr_qc}
	    {input.a1} 
	    {input.a2} 
        '''
SnakeMake From line 181 of main/Snakefile
195
196
197
198
199
200
shell:
	'''Rscript {clonetracker} 
	   clonesdir
	   {param}
	   {type}
	'''.format(param=config['pattern'], type= config['chain])  
SnakeMake From line 195 of main/Snakefile
ShowHide 11 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/arnavaz/captcr-snakemake
Name: captcr-snakemake
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
  • 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 ...