Mercurial > repos > devteam > picard
comparison picard_ReplaceSamHeader.xml @ 33:3f254c5ced1d draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/picard commit 9ecbbb878d68a980ba35a90865e524c723ca3ed8
author | iuc |
---|---|
date | Sun, 03 Mar 2024 16:06:11 +0000 |
parents | f9242e01365a |
children |
comparison
equal
deleted
inserted
replaced
32:f9242e01365a | 33:3f254c5ced1d |
---|---|
1 <tool name="ReplaceSamHeader" id="picard_ReplaceSamHeader" version="@TOOL_VERSION@.@WRAPPER_VERSION@"> | 1 <tool name="ReplaceSamHeader" id="picard_ReplaceSamHeader" version="@TOOL_VERSION@.@WRAPPER_VERSION@" profile="@PROFILE@"> |
2 <description>replace header in a SAM/BAM dataset</description> | 2 <description>replace header in a SAM/BAM dataset</description> |
3 <macros> | 3 <macros> |
4 <import>picard_macros.xml</import> | 4 <import>picard_macros.xml</import> |
5 <token name="@WRAPPER_VERSION@">1</token> | 5 <token name="@WRAPPER_VERSION@">0</token> |
6 </macros> | 6 </macros> |
7 <xrefs> | 7 <xrefs> |
8 <xref type="bio.tools">picard_replacesamheader</xref> | 8 <xref type="bio.tools">picard_replacesamheader</xref> |
9 </xrefs> | 9 </xrefs> |
10 <expand macro="requirements" /> | 10 <expand macro="requirements"/> |
11 <command detect_errors="exit_code"><![CDATA[ | 11 <command detect_errors="exit_code"><![CDATA[ |
12 @java_options@ | 12 @java_options@ |
13 @symlink_element_identifier@ | 13 @symlink_element_identifier@ |
14 | 14 |
15 ## Two lines below are due to the fact that picard likes fasta files to have extension .fa | 15 ## Two lines below are due to the fact that picard likes fasta files to have extension .fa |
16 #set $fasta_file="local_fasta.fa" | 16 #set $fasta_file="local_fasta.fa" |
17 ln -s "${inputFile}" "${fasta_file}" && | 17 ln -sf '${inputFile}' '${fasta_file}' && |
18 | 18 |
19 picard | 19 picard ReplaceSamHeader |
20 ReplaceSamHeader | |
21 | 20 |
22 INPUT='$escaped_element_identifier' | 21 --INPUT '$escaped_element_identifier' |
23 HEADER="${header}" | 22 --HEADER '${header}' |
24 OUTPUT="${outFile}" | 23 --OUTPUT '${outFile}' |
25 | 24 |
26 QUIET=true | 25 --QUIET true |
27 VERBOSITY=ERROR | 26 --VERBOSITY ERROR |
28 | 27 |
29 ]]></command> | 28 ]]></command> |
30 <inputs> | 29 <inputs> |
31 <param format="sam,bam" name="inputFile" type="data" label="Select SAM/BAM dataset or dataset collection (header recepient dataset)" help="If empty, upload or import a SAM/BAM dataset"/> | 30 <param format="sam,bam" name="inputFile" type="data" label="Select SAM/BAM dataset or dataset collection (header recepient dataset)" help="If empty, upload or import a SAM/BAM dataset"/> |
32 <param name="header" type="data" format="sam,bam" label="SAM/BAM dataset from which Header will be read (header source dataset)" help="HEADER; If empty, upload or import a SAM/BAM dataset"/> | 31 <param name="header" type="data" format="sam,bam" label="SAM/BAM dataset from which Header will be read (header source dataset)" help="HEADER; If empty, upload or import a SAM/BAM dataset"/> |
33 </inputs> | 32 </inputs> |
34 | 33 <outputs> |
35 <outputs> | 34 <data format="bam" name="outFile" label="${tool.name} on ${on_string}: BAM file with replaced header"/> |
36 <data format="bam" name="outFile" label="${tool.name} on ${on_string}: BAM file with replaced header"/> | 35 </outputs> |
37 </outputs> | 36 <tests> |
38 | 37 <test> |
39 <tests> | 38 <param name="inputFile" value="picard_ReplaceSamHeader.bam" ftype="bam"/> |
40 <test> | 39 <param name="header" value="picard_ReplaceSamHeader_header.bam" ftype="bam"/> |
41 <param name="inputFile" value="picard_ReplaceSamHeader.bam" ftype="bam"/> | 40 <output name="outFile" file="picard_ReplaceSamHeader_test1.bam" ftype="bam"/> |
42 <param name="header" value="picard_ReplaceSamHeader_header.bam" ftype="bam"/> | 41 </test> |
43 <output name="outFile" file="picard_ReplaceSamHeader_test1.bam" ftype="bam"/> | 42 </tests> |
44 </test> | 43 <help> |
45 </tests> | |
46 | |
47 | |
48 <help> | |
49 | 44 |
50 **Purpose** | 45 **Purpose** |
51 | 46 |
52 Replace the SAMFileHeader in a SAM/BAM dataset with the given header. Validation is minimal. It is up to the user to ensure that all the elements referred to in the SAMRecords are present in the new header. Sort order of the two input datasets must be the same. | 47 Replace the SAMFileHeader in a SAM/BAM dataset with the given header. Validation is minimal. It is up to the user to ensure that all the elements referred to in the SAMRecords are present in the new header. Sort order of the two input datasets must be the same. |
53 @dataset_collections@ | 48 @dataset_collections@ |
57 HEADER=File SAM file from which SAMFileHeader will be read. Required. | 52 HEADER=File SAM file from which SAMFileHeader will be read. Required. |
58 | 53 |
59 @more_info@ | 54 @more_info@ |
60 | 55 |
61 </help> | 56 </help> |
62 <expand macro="citations" /> | 57 <expand macro="citations"/> |
63 </tool> | 58 </tool> |