Mercurial > repos > iuc > lumpy_sv
annotate lumpy_sv.xml @ 1:88b35d91a662 draft default tip
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit 41cb10683d89fa20e122f4c60b8f5bf0e3c390d8"
author | iuc |
---|---|
date | Sat, 10 Jul 2021 07:40:44 +0000 |
parents | 477a07f387e0 |
children |
rev | line source |
---|---|
0
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
1 <tool id="lumpy_sv" name="LUMPY" version="@WRAPPER_VERSION@"> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
2 <description>is a probabilistic framework for structural variant discovery</description> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
3 <macros> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
4 <import>macros.xml</import> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
5 <xml name="pe_options"> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
6 <param name="read_length" type="integer" value="101" label="Length of sequenced reads" help="" /> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
7 <param name="min_non_overlap" type="integer" value="101" label="Number of base pair positions that must be unique to each end of a read pair" help="Some library preps are created with large reads and small library sizes such that read overlap, in all over cases overlapping reads tends to be a sign of an error. We typically set this to read length (pairs cannot overlap)." /> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
8 <param name="discordant_z" type="integer" value="5" label="Number of standard deviations away from the mean to be considered as a normal library size" help="" /> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
9 <param name="back_distance" type="integer" value="10" label="Distance into the read to add to the breakpoint interval" help="" /> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
10 <param name="min_mapping_threshold" type="integer" value="20" label="Minimum mapping quality (reported from the aligner) that a read must have to be considered" help="A quality of 1 will filter all reads with two or more equally good mappings." /> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
11 <param name="weight" type="integer" value="1" label="Weight of each piece of evidence from this sample" help="" /> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
12 </xml> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
13 <xml name="sr_options"> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
14 <param name="sr_back_distance" type="integer" value="10" label="Distance around the +/- of the split to include in the breakpoint interval" help="A distance of 20 will created a breakpoint interval of size 40 centered at the split." /> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
15 <param name="sr_min_mapping_threshold" type="integer" value="20" label="Minimum mapping quality (reported from the aligner) that a read must have to be considered" help="A quality of 1 will filter all reads with two or more equally good mappings." /> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
16 <param name="sr_weight" type="integer" value="1" label="Weight of each piece of evidence from this sample" help="" /> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
17 </xml> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
18 </macros> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
19 <requirements> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
20 <requirement type="package" version="@TOOL_VERSION@">lumpy-sv</requirement> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
21 </requirements> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
22 <command detect_errors="exit_code"><![CDATA[ |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
23 python '$configure_job' > lumpy_job.sh && |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
24 chmod u+x lumpy_job.sh && |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
25 cat lumpy_job.sh && |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
26 ./lumpy_job.sh > '$result' |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
27 ]]></command> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
28 <configfiles> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
29 <configfile name="configure_job"><![CDATA[ |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
30 ## The Python script that gets put together here, will emit a shell script |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
31 ## with the necessary commands for a traditional (non-express) LUMPY workflow. |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
32 ## After running the python code, the resulting shell script is all that's |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
33 ## needed to run LUMPY with all user-specified settings. |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
34 import os |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
35 import pysam |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
36 |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
37 preproc_cmds = [] |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
38 lumpy_cmd_parts = ['lumpy -mw ${general.mw} -tt ${general.tt} ${general.e}'] |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
39 |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
40 ## symlink in all input bams, and there index files if available |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
41 full_bams = [] |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
42 disc_bams = [] |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
43 split_bams = [] |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
44 #for $n,$bam_file in enumerate($input_bams): |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
45 ## main input files are collated BAMs without index |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
46 os.symlink('$bam_file', 'f${n}.bam') |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
47 full_bams.append('f${n}.bam') |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
48 #end for |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
49 #if $discordant_alns: |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
50 #for $n, $disc_file in enumerate($discordant_alns): |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
51 os.symlink('$disc_file', 'd${n}.bam') |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
52 os.symlink('$disc_file.metadata.bam_index', 'd${n}.bam.bai') |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
53 disc_bams.append('d${n}.bam') |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
54 #end for |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
55 #end if |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
56 #if $split_alns: |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
57 #for $n, $split_file in enumerate($split_alns): |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
58 os.symlink('$split_file', 's${n}.bam') |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
59 os.symlink('$split_file.metadata.bam_index', 's${n}.bam.bai') |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
60 split_bams.append('s${n}.bam') |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
61 #end for |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
62 #end if |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
63 if not disc_bams and not split_bams: |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
64 raise Exception('Either discordant or split alignments are required as input') |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
65 |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
66 ## make pe and sr params available in the Python code |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
67 #set $pe_rg_specs = {} |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
68 #for $per_rg_pe in $pe.rg_specific: |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
69 #silent $pe_rg_specs[str($per_rg_pe.rg_id)] = { |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
70 'read_len': int($per_rg_pe.read_length), |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
71 'min_non_overlap': int($per_rg_pe.min_non_overlap), |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
72 'discordant_z': int($per_rg_pe.discordant_z), |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
73 'back_distance': int($per_rg_pe.back_distance), |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
74 'min_mapping_threshold': int($per_rg_pe.min_mapping_threshold), |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
75 'weight': int($per_rg_pe.weight) |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
76 } |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
77 #end for |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
78 #silent $pe_rg_specs[None] = { |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
79 'read_len': int($pe.default.read_length), |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
80 'min_non_overlap': int($pe.default.min_non_overlap), |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
81 'discordant_z': int($pe.default.discordant_z), |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
82 'back_distance': int($pe.default.back_distance), |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
83 'min_mapping_threshold': int($pe.default.min_mapping_threshold), |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
84 'weight': int($pe.default.weight) |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
85 } |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
86 pe_rg_specs = $pe_rg_specs |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
87 |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
88 #set $sr_sm_specs = {} |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
89 #for $per_sm_sr in $sr.sm_specific: |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
90 #silent $sr_sm_specs[str($per_sm_sr.rg_sm)] = { |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
91 'back_distance': int($per_sm_sr.sr_back_distance), |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
92 'min_mapping_threshold': int($per_sm_sr.sr_min_mapping_threshold), |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
93 'weight': int($per_sm_sr.sr_weight) |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
94 } |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
95 #end for |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
96 |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
97 #silent $sr_sm_specs[None] = { |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
98 'back_distance': int($sr.default.sr_back_distance), |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
99 'min_mapping_threshold': int($sr.default.sr_min_mapping_threshold), |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
100 'weight': int($sr.default.sr_weight) |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
101 } |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
102 sr_sm_specs = $sr_sm_specs |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
103 |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
104 ## discover read groups and samples defined in any of the input files |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
105 ## the main input files are used to build a catalogue of read groups and |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
106 ## samples to work with. |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
107 ## For each combination of RG ID and SM, the input that has those reads is |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
108 ## recorded |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
109 known_rg_records = {} |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
110 for bam_file in full_bams: |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
111 ibam = pysam.AlignmentFile(bam_file, 'rb') |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
112 for rg_record in ibam.header['RG']: |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
113 known_rg_records[(rg_record['ID'], rg_record['SM'])] = bam_file |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
114 ibam.close() |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
115 print('# Available read groups and samples in input BAMs:') |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
116 print('# RG\tSample') |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
117 for r, s in known_rg_records: |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
118 print('# {0}\t{1}'.format(r, s)) |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
119 |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
120 ## Lumpy can analyze *discordant pairs* per read group. |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
121 ## We only use read groups that we've also seen in any of the main inputs. |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
122 ## For these read groups, we retrieve the main input BAM that has the read |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
123 ## group and use the file to generate paired-end stats with the help of LUMPY's |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
124 ## pairend_distro script. |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
125 ## The paired-end stats (emitted as numbered .histo files, but also to stdout) |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
126 ## are then used as part of the actual LUMPY command, i.e. in the value of the |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
127 ## -pe option. |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
128 n = 0 |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
129 for discordant_file in disc_bams: |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
130 dbam = pysam.AlignmentFile(discordant_file, 'rb') |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
131 sample_info = {} |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
132 for rg_record in dbam.header['RG']: |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
133 if (rg_record['ID'], rg_record['SM']) in known_rg_records: |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
134 if rg_record['SM'] not in sample_info: |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
135 sample_info[rg_record['SM']] = [] |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
136 sample_info[rg_record['SM']].append({'ID': rg_record['ID'], 'bam_for_stats': known_rg_records[(rg_record['ID'], rg_record['SM'])]}) |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
137 dbam.close() |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
138 for sample in sample_info: |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
139 for rg_info in sample_info[sample]: |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
140 rg_specs = pe_rg_specs.get(rg_info['ID'], pe_rg_specs[None]) |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
141 preproc_cmds.append( |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
142 ## calculate pe stats, store the main output in distinct |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
143 ## -histo files per read group and capture stdout in |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
144 ## shell variables, one per read-group. |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
145 "pe_var_{0}=\$(samtools view -r '{1}' '{2}' | tail -n+${general.stat_tail_n} | pairend_distro.py -r {3} -X 4 -N 10000 -o rg{0}.histo | tr '\t' ',') &&" |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
146 .format(n, rg_info['ID'], rg_info['bam_for_stats'], rg_specs['read_len']) |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
147 ) |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
148 ## reuse the .histo files and the captured stdout in the value |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
149 ## of LUMPY's -pe option |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
150 lumpy_cmd_parts.append( |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
151 '-pe id:{0},' |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
152 'read_group:{1},' |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
153 'bam_file:{2},' |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
154 'histo_file:rg{3}.histo,' |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
155 '\$pe_var_{3},' |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
156 'read_length:{read_len},' |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
157 'min_non_overlap:{min_non_overlap},discordant_z:{discordant_z},back_distance:{back_distance},weight:{weight},min_mapping_threshold:{min_mapping_threshold}' |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
158 .format(sample, rg_info['ID'], discordant_file, n, **rg_specs) |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
159 ) |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
160 n += 1 |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
161 |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
162 ## *Split-reads* get analyzed on a per-sample level. |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
163 ## Again, we only use samples that we've seen in the main inputs before. |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
164 ## The names of these samples and the correponding split-reads bam files are |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
165 ## used directly in the -sr option value of the LUMPY main command. |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
166 for split_file in split_bams: |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
167 sbam = pysam.AlignmentFile(split_file, 'rb') |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
168 for rg_record in sbam.header['RG']: |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
169 if (rg_record['ID'], rg_record['SM']) in known_rg_records: |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
170 sm_specs = sr_sm_specs.get(rg_record['SM'], sr_sm_specs[None]) |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
171 lumpy_cmd_parts.append( |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
172 '-sr id:{0},' |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
173 'bam_file:{1},' |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
174 'back_distance:{back_distance},weight:{weight},min_mapping_threshold:{min_mapping_threshold}' |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
175 .format(rg_record['SM'], split_file, **sm_specs) |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
176 ) |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
177 sbam.close() |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
178 print('\n'.join(preproc_cmds)) |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
179 print(' '.join(lumpy_cmd_parts)) |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
180 ]]></configfile> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
181 </configfiles> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
182 <inputs> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
183 <param name="input_bams" type="data" format="qname_sorted.bam" multiple="true" label="BAM input dataset" /> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
184 <param name="discordant_alns" type="data" format="bam" multiple="true" optional="true" label="Discordant reads input" /> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
185 <param name="split_alns" type="data" format="bam" multiple="true" optional="true" label="Split alignments input" /> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
186 <!--<param name="input_bedpe_file" type="data" format="bed" multiple="false" label="BEDPE file" help="Position sorted bedpe file containing the breakpoint intervals for this sample." />--> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
187 <!-- General options --> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
188 <section name="general" title="General options" expanded="false"> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
189 <!--<param name="g" type="data" label="Genome file (-g)" help="Defines chromosome order" />--> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
190 <param name="e" type="boolean" truevalue="-e" falsevalue="" |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
191 label="Show evidence for each call (-e)" help="" /> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
192 <!--<param name="w" type="integer" value="1000000" label="File read windows size (-w)" help="Default 1000000" />--> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
193 <param name="mw" type="integer" value="4" label="Minimum weight across all samples for a call (-mw)" help="" /> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
194 <!--<param name="msw" type="integer" value="1" label="Minimum per-sample weight for a call (-msw)" help="" />--> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
195 <param name="tt" type="integer" value="0" label="Trim threshold (-tt)" help="" /> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
196 <!--<param name="x" type="boolean" checked="true" label="Exclude bed file (-x)" help="" />--> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
197 <!--<param name="t" type="text" value="" label="Temp file prefix, must be to a writeable directory (-t)" help="" />--> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
198 <!--<param name="P" type="boolean" checked="false" label="Output probability curve for each variant (-P)" help="" />--> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
199 <!--<param name="b" type="boolean" checked="false" label="output as BEDPE instead of VCF (-b)" help="" />--> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
200 <param name="stat_tail_n" type="integer" min="1" value="100000" label="stat_tail_n" help="" /> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
201 </section> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
202 <!-- PE options --> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
203 <section name="pe" title="Paired-end options (-pe)" expanded="false"> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
204 <repeat name="rg_specific" title="Read group-specific settings" default="0" min="0" |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
205 help="Define paired-end options to be applied to one specific read group."> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
206 <param name="rg_id" type="text" |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
207 label="Read group to apply settings to" |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
208 help="All settings below will only be applied to reads belonging to the specified read group. The value provided here must correspond to one of the read group IDs defined in the main input and the discordant pairs datasets." /> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
209 <expand macro="pe_options" /> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
210 </repeat> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
211 <section name="default" title="Default settings for unconfigured read groups" expanded="true"> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
212 <expand macro="pe_options" /> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
213 </section> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
214 </section> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
215 <!-- SR options --> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
216 <section name="sr" title="Split-read options (-sr)" expanded="false"> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
217 <repeat name="sm_specific" title="Sample-specific settings" default="0" min="0" |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
218 help="Define split-reads options to be applied to one specific sample."> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
219 <param name="rg_sm" type="text" |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
220 label="Sample to apply settings to" |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
221 help="All settings below will only be applied to reads of the specified sample. The value provided here must correspond to one of the read group SM values defined in the main input and the split-reads datasets." /> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
222 <expand macro="sr_options" /> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
223 </repeat> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
224 <section name="default" title="Default settings for unconfigured samples" expanded="true"> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
225 <expand macro="sr_options" /> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
226 </section> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
227 </section> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
228 <!-- BEDPE options --> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
229 <!--<section name="bedpe" title="BEDPE options (-bedpe)" expanded="false">--> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
230 <!--<param name="bedpe_back_distance" type="integer" value="10" label="Distance into the read to add to the breakpoint interval" help="" />--> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
231 <!--<param name="bedpe_weight" type="integer" value="1" label="Weight of each piece of evidence from this sample" help="" />--> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
232 <!--</section>--> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
233 </inputs> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
234 <outputs> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
235 <data name="result" format="vcf" label="${tool.name} on ${on_string}" /> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
236 </outputs> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
237 <tests> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
238 <test> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
239 <param name="input_bams" ftype="qname_sorted.bam" value="blasted.bam" /> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
240 <param name="discordant_alns" ftype="bam" value="discordants.bam" /> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
241 <section name="general"> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
242 <param name="e" value="false" /> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
243 <param name="stat_tail_n" value="1" /> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
244 </section> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
245 <section name="pe"> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
246 <section name="default"> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
247 <param name="weight" value="2" /> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
248 </section> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
249 </section> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
250 <output name="result" ftype="vcf" file="sample.vcf" /> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
251 </test> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
252 </tests> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
253 <help><![CDATA[ |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
254 LUMPY |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
255 ============= |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
256 |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
257 A probabilistic framework for structural variant discovery. |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
258 |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
259 For more information see the LUMPY documentation_. |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
260 |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
261 .. _documentation: https://github.com/arq5x/lumpy-sv |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
262 |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
263 ]]></help> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
264 <expand macro="citations" /> |
477a07f387e0
"planemo upload for repository https://github.com/arq5x/lumpy-sv commit cce17262b21b0964c31eb983bac5e89ae92b8ee9"
iuc
parents:
diff
changeset
|
265 </tool> |