comparison fgbio_group_reads_by_umi.xml @ 0:900cd2865768 draft

"planemo upload commit 61f6c8e7f32f170ad7e66e46dd74e8c5d361a722"
author jjohnson
date Sun, 21 Feb 2021 23:40:34 +0000
parents
children 568816308859
comparison
equal deleted inserted replaced
-1:000000000000 0:900cd2865768
1 <tool id="fgbio_group_reads_by_umi" name="fgbio GroupReadsByUmi" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" python_template_version="3.5">
2 <description>Groups reads together that appear to have come from the same original molecule</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements" />
7 <version_command>fgbio --version</version_command>
8 <command detect_errors="exit_code"><![CDATA[
9 fgbio GroupReadsByUmi
10 --input '$input'
11 --strategy=$strategy
12 --output '$output'
13 ## optional settings
14 #if $optional.edits:
15 --edits $optional.edits
16 #end if
17 #if $optional.min_umi_length
18 --min-umi-length $optional.min_umi_length
19 #end if
20 #if $optional.min_map_q:
21 --min-map-q $optional.min_map_q
22 #end if
23 #if $optional.raw_tag
24 --raw-tag=$optional.raw_tag
25 #end if
26 #if $optional.assign_tag
27 --assign-tag=$optional.assign_tag
28 #end if
29 #if $optional.include_non_pf_reads
30 --include-non-pf-reads=$optional.include_non_pf_reads
31 #end if
32 #if $output_counts
33 --family-size-histogram='$family_size_histogram'
34 #end if
35 ]]></command>
36 <inputs>
37 <param name="input" type="data" format="bam" label="Fastq files corresponding to each sequencing read"/>
38 <param argument="--strategy" type="select" label="UMI assignment strategy">
39 <option value="identity">identity</option>
40 <option value="edit">edit</option>
41 <option value="adjacency">adjacency</option>
42 <option value="paired">paired</option>
43 </param>
44 <section name="optional" title="Optional Settings" expanded="false">
45 <param argument="--edits" type="integer" value="" optional="true" label="Allowable number of edits between UMIs"
46 help="Control the matching of non-identical UMIs. Default: 1"/>
47 <param argument="--min-umi-length" type="integer" value="" optional="true" label="The minimum UMI length" >
48 <help>If not specified then all UMIs must have the same length,
49 otherwise discard reads with UMIs shorter than this length
50 and allow for differing UMI lengths.
51 </help>
52 </param>
53 <param argument="--min-map-q" type="integer" value="" optional="true" label="Minimum mapping quality" help="Default: 30"/>
54 <param argument="--raw-tag" type="text" value="" label="The tag containing the raw UMI" help="Default: RX">
55 <expand macro="sam_tag_validator"/>
56 </param>
57 <param argument="--assign-tag" type="text" value="" label="The output tag for UMI grouping" help="Default: MI">
58 <expand macro="sam_tag_validator"/>
59 </param>
60 <param argument="--include-non-pf-reads" type="select" value="true" optional="true" label="Include non-PF reads">
61 <option value="true">Yes</option>
62 <option value="flse">No</option>
63 </param>
64 </section>
65 <param argument="output_counts" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Output tag family size counts"/>
66
67 </inputs>
68 <outputs>
69 <data name="family_size_histogram" format="tabular" >
70 <filter>output_counts == True</filter>
71 </data>
72 <data name="output" format="bam" />
73 </outputs>
74 <help><![CDATA[
75 **fgbio GroupReadsByUmi**
76
77 Groups reads together that appear to have come from the same original molecule. Reads are grouped by template, and then templates are sorted by the 5’ mapping positions of the reads from the template, used from earliest mapping position to latest. Reads that have the same end positions are then sub-grouped by UMI sequence.
78
79 Accepts reads in any order (including unsorted) and outputs reads sorted by:
80
81 - The lower genome coordinate of the two outer ends of the templates
82 - The sequencing library
83 - The assigned UMI tag
84 - Read Name
85
86 Reads are aggressively filtered out so that only high quality reads/mappings are taken forward. Single-end reads must have mapping quality >= min-map-q. Paired-end reads must have both reads mapped to the same chromosome with both reads having mapping quality >= min-mapq. (Note: the MQ tag is required on reads with mapped mates).
87
88 This is done with the expectation that the next step is building consensus reads, where it is undesirable to either:
89
90 - Assign reads together that are really from different source molecules
91 - Build two groups from reads that are really from the same molecule
92 - Errors in mapping reads could lead to both and therefore are minimized.
93
94 Grouping of UMIs is performed by one of three strategies:
95
96 - identity: only reads with identical UMI sequences are grouped together. This strategy may be useful for evaluating data, but should generally be avoided as it will generate multiple UMI groups per original molecule in the presence of errors.
97 - edit: reads are clustered into groups such that each read within a group has at least one other read in the group with <= edits differences and there are inter-group pairings with <= edits differences. Effective when there are small numbers of reads per UMI, but breaks down at very high coverage of UMIs.
98 - adjacency: a version of the directed adjacency method described in umi_tools that allows for errors between UMIs but only when there is a count gradient.
99 - paired: similar to adjacency but for methods that produce template with a pair of UMIs such that a read with A-B is related to but not identical to a read with B-A. Expects the pair of UMIs to be stored in a single tag, separated by a hyphen (e.g. ACGT-CCGG). The molecular IDs produced have more structure than for single UMI strategies, and are of the form {base}/{AB|BA}. E.g. two UMI pairs would be mapped as follows AAAA-GGGG -> 1/AB, GGGG-AAAA -> 1/BA.
100
101 edit, adjacency and paired make use of the --edits parameter to control the matching of non-identical UMIs.
102
103 By default, all UMIs must be the same length. If --min-umi-length=len is specified then reads that have a UMI shorter than len will be discarded, and when comparing UMIs of different lengths, the first len bases will be compared, where len is the length of the shortest UMI. The UMI length is the number of [ACGT] bases in the UMI (i.e. does not count dashes and other non-ACGT characters). This option is not implemented for reads with UMI pairs (i.e. using the paired assigner).
104
105 http://fulcrumgenomics.github.io/fgbio/tools/latest/GroupReadsByUmi.html
106 ]]></help>
107 <expand macro="citations" />
108 </tool>