5
|
1 <tool name="AddOrReplaceReadGroups" id="picard_AddOrReplaceReadGroups" version="1.126.0">
|
|
2 <description>add or replaces read group information</description>
|
|
3 <requirements>
|
|
4 <requirement type="package" version="1.126.0">picard</requirement>
|
|
5 </requirements>
|
|
6
|
|
7 <macros>
|
|
8 <import>picard_macros.xml</import>
|
|
9 </macros>
|
|
10
|
|
11 <command>
|
|
12 @java_options@
|
|
13 java -jar \$JAVA_JAR_PATH/picard.jar
|
|
14 AddOrReplaceReadGroups
|
|
15 INPUT="${inputFile}"
|
|
16 RGLB="${rglb}"
|
|
17 RGPL="${rgpl}"
|
|
18 RGPU="${rgpu}"
|
|
19 RGSM="${rgsm}"
|
|
20 RGID="${rgid}"
|
|
21
|
|
22 #if str( $rgcn):
|
|
23 RGCN="${rgcn}"
|
0
|
24 #end if
|
5
|
25
|
|
26 #if str( $rgds):
|
|
27 RGDS="${rgds}"
|
|
28 #end if
|
|
29
|
|
30 #if str( $rgpi):
|
|
31 RGPI="${rgpi}"
|
|
32 #end if
|
|
33
|
|
34 #if str( $rgdt):
|
|
35 RGDT="${rgdt}"
|
|
36 #end if
|
|
37
|
|
38 VALIDATION_STRINGENCY="${validation_stringency}"
|
|
39 QUIET=true
|
|
40 VERBOSITY=ERROR
|
|
41 OUTPUT="${outFile}"
|
|
42
|
0
|
43 </command>
|
5
|
44
|
0
|
45 <inputs>
|
5
|
46 <param format="bam,sam" name="inputFile" type="data" label="Select SAM/BAM dataset or dataset collection" help="If empty, upload or import a SAM/BAM dataset" />
|
|
47 <param name="rgid" value="A" type="text" label="Read Group ID" help="RGID; Required" />
|
|
48 <param name="rgsm" value="sample-a" type="text" label="Read Group Sample name" help="RGSM; Required" />
|
|
49 <param name="rglb" value="tumor-a" type="text" label="Read Group library" help="RGLB; Required" />
|
|
50 <param name="rgpl" value="Illumina" type="text" label="Read Group Platform" help="RGPL; Required; e.g., Illumina, 454, IonTorrent, etc" />
|
|
51 <param name="rgpu" value="run-1" type="text" label="Read Group Platform Unit" help="RGPU; Required; e.g., run, barcode, etc" />
|
|
52 <!-- optional params -->
|
|
53 <param name="rgcn" value="" optional="True" type="text" label="Read Group sequencing center name" help="RGCN; Optional" />
|
|
54 <param name="rgds" value="" optional="True" type="text" label="Read Group description" help="RGDS; Optional" />
|
|
55 <param name="rgpi" value="" optional="True" type="integer" label="Read Group predicted insert size" help="RGPI; Optional" />
|
|
56 <param name="rgdt" value="" optional="True" type="text" label="Read Group run date" help="RGDT; Optional; Format=YYYY-MM-DD (eg 1997-07-16)"/>
|
|
57
|
|
58 <expand macro="VS" />
|
|
59
|
0
|
60 </inputs>
|
5
|
61
|
0
|
62 <outputs>
|
5
|
63 <data name="outFile" format="bam" label="${tool.name} on ${on_string}: BAM with replaced/modified readgroups"/>
|
0
|
64 </outputs>
|
5
|
65
|
|
66 <stdio>
|
|
67 <exit_code range="1:" level="fatal"/>
|
|
68 </stdio>
|
|
69
|
0
|
70 <tests>
|
|
71 <test>
|
5
|
72 <param name="inputFile" value="picard_ARRG.bam" />
|
|
73 <param name="rglb" value="tumor-a" />
|
|
74 <param name="rgpl" value="Illumina" />
|
|
75 <param name="rgpu" value="run-1" />
|
|
76 <param name="rgsm" value="sample-a" />
|
|
77 <param name="rgid" value="id-1" />
|
|
78 <output name="outFile" file="picard_ARRG_test1.bam" ftype="bam" />
|
0
|
79 </test>
|
|
80 </tests>
|
|
81 <help>
|
|
82
|
|
83 .. class:: infomark
|
|
84
|
|
85 **Purpose**
|
|
86
|
|
87 Add or Replace Read Groups in an input BAM or SAM file.
|
|
88
|
5
|
89 @dataset_collections@
|
0
|
90
|
5
|
91 @RG@
|
0
|
92
|
5
|
93 @description@
|
0
|
94
|
5
|
95 INPUT=File
|
|
96 I=File Input file (bam or sam). Required.
|
0
|
97
|
5
|
98 OUTPUT=File
|
|
99 O=File Output file (bam or sam). Required.
|
0
|
100
|
5
|
101 SORT_ORDER=SortOrder
|
|
102 SO=SortOrder Optional sort order to output in. If not supplied OUTPUT is in the same order as INPUT.
|
|
103 Default value: null. Possible values: {unsorted, queryname, coordinate}
|
0
|
104
|
5
|
105 RGID=String
|
|
106 ID=String Read Group ID Default value: 1. This option can be set to 'null' to clear the default
|
|
107 value.
|
0
|
108
|
5
|
109 RGLB=String
|
|
110 LB=String Read Group Library Required.
|
0
|
111
|
5
|
112 RGPL=String
|
|
113 PL=String Read Group platform (e.g. illumina, solid) Required.
|
0
|
114
|
5
|
115 RGPU=String
|
|
116 PU=String Read Group platform unit (eg. run barcode) Required.
|
0
|
117
|
5
|
118 RGSM=String
|
|
119 SM=String Read Group sample name Required.
|
0
|
120
|
5
|
121 RGCN=String
|
|
122 CN=String Read Group sequencing center name Default value: null.
|
0
|
123
|
5
|
124 RGDS=String
|
|
125 DS=String Read Group description Default value: null.
|
0
|
126
|
5
|
127 RGDT=Iso8601Date
|
|
128 DT=Iso8601Date Read Group run date Default value: null.
|
0
|
129
|
5
|
130 RGPI=Integer
|
|
131 PI=Integer Read Group predicted insert size Default value: null.
|
0
|
132
|
5
|
133 @more_info@
|
0
|
134 </help>
|
|
135 </tool>
|
|
136
|
|
137
|
|
138
|
|
139
|
|
140
|
|
141
|
|
142
|
|
143
|
|
144
|
|
145
|
|
146
|
|
147
|
5
|
148
|