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