|
0
|
1 <?xml version="1.0" encoding="UTF-8"?>
|
|
3
|
2 <tool id="samtools_view_header" name="Samtools view header" version="0.1.19.a">
|
|
0
|
3 <description>Show only the header of a BAM or SAM file using samtools.</description>
|
|
|
4 <requirements>
|
|
|
5 <requirement type="package" version="5.9">ncurses</requirement>
|
|
|
6 <requirement type="package" version="0.1.19">samtools</requirement>
|
|
|
7 </requirements>
|
|
3
|
8
|
|
|
9 <version_command>samtools 2>&1 | grep -i "version:"</version_command>
|
|
|
10
|
|
0
|
11 <command>
|
|
|
12 samtools
|
|
|
13 view
|
|
|
14 -H
|
|
|
15 #if $alignment.dataset.ext.lower() == "sam"
|
|
|
16 -S
|
|
|
17 #end if
|
|
|
18 $alignment > $header 2> stderr.txt ;
|
|
|
19
|
|
|
20 cat stderr.txt
|
|
|
21 </command>
|
|
|
22
|
|
|
23 <inputs>
|
|
2
|
24 <param format="sam,bam" name="alignment" type="data" label="Alignment in BAM or SAM format" />
|
|
0
|
25 </inputs>
|
|
|
26
|
|
|
27 <outputs>
|
|
|
28 <data format="tabular" name="header" label="${tool.name} on ${alignment.name}" />
|
|
|
29 </outputs>
|
|
|
30
|
|
|
31 <help>
|
|
2
|
32 **samtools_view_header**
|
|
0
|
33
|
|
|
34 **Input formats**
|
|
|
35
|
|
1
|
36 * BAM
|
|
|
37 * SAM
|
|
|
38
|
|
2
|
39 **Output format**
|
|
|
40
|
|
|
41 The SAM header as defined in the SAM specification. If the output is empty, there was no header in the alignment
|
|
|
42
|
|
|
43
|
|
0
|
44 **Installation**
|
|
2
|
45
|
|
1
|
46 The installation is straight-forward and should go automatically using the Galaxy tool-shed installer.
|
|
0
|
47
|
|
|
48 **License**
|
|
|
49
|
|
1
|
50 * samtools: MIT License
|
|
0
|
51
|
|
3
|
52 Contact
|
|
|
53 -------
|
|
0
|
54
|
|
3
|
55 The tool wrapper has been written by Youri Hoogstrate from the Erasmus
|
|
|
56 Medical Center (Rotterdam, Netherlands) on behalf of the Translational
|
|
|
57 Research IT (TraIT) project:
|
|
|
58
|
|
0
|
59 http://www.ctmm.nl/en/programmas/infrastructuren/traitprojecttranslationeleresearch
|
|
|
60
|
|
3
|
61 More tools by the Translational Research IT (TraIT) project can be found
|
|
|
62 in the following toolsheds:
|
|
|
63
|
|
0
|
64 http://toolshed.dtls.nl/
|
|
3
|
65
|
|
|
66 http://toolshed.g2.bx.psu.edu
|
|
|
67
|
|
|
68 http://testtoolshed.g2.bx.psu.edu/
|
|
0
|
69 </help>
|
|
|
70 </tool> |