|
- task mixcr {
-
- File read1
- File read2
-
- String sample
- String base = sub(basename(read1),"\\.\\S+$", "")
- String docker
- String cluster_config
- String disk_size
-
- command <<<
- mixcr align -t 12 -p rna-seq -s hsa -OallowPartialAlignments=true ${read1} ${read2} ${base}.vdjca
- mixcr assemblePartial ${base}.vdjca ${base}_rescued_1.vdjca
- mixcr assemblePartial ${base}_rescued_1.vdjca ${base}_rescued_2.vdjca
- mixcr extend ${base}_rescued_2.vdjca ${base}_rescued_2_extended.vdjca
- mixcr assemble ${base}_rescued_2_extended.vdjca ${base}.clns
- mixcr exportClones ${base}.clns ${base}.txt
- mixcr exportClones -c TCR ${base}.clns ${base}.TCR.txt
- mixcr exportClones -c TRB ${base}.clns ${base}.TRB.txt
- mixcr exportClones -c TRA ${base}.clns ${base}.TRA.txt
- mixcr exportClones -c TRD ${base}.clns ${base}.TRD.txt
- mixcr exportClones -c TRG ${base}.clns ${base}.TRG.txt
- mixcr exportClones -c IG ${base}.clns ${base}.BCR.txt
- mixcr exportClones -c IGH ${base}.clns ${base}.IGH.txt
-
- >>>
-
- runtime {
- docker:docker
- cluster: cluster_config
- systemDisk: "cloud_ssd 40"
- dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
- }
- output {
- File align_out = base + ".vdjca"
- File assemble_rescued_1_out = base + "_rescued_1.vdjca"
- File assemble_rescued_2_out = base + "_rescued_2.vdjca"
- File assemble_rescued_extended_out = base + "_rescued_2_extended.vdjca"
- File clns_out = base + ".clns"
- File clones_out = base + ".txt"
- File tcr_out = base + ".TCR.txt"
- File trb_out = base + ".TRB.txt"
- File tra_out = base + ".TRA.txt"
- File trd_out = base + ".TRD.txt"
- File trg_out = base + ".TRG.txt"
- File bcr_out = base + ".BCR.txt"
- File igh_out = base + ".IGH.txt"
- }
- }
|