comparison hicup2juicer.xml @ 0:f8cb84c49623 draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/hicup commit 50173a1994a72d9774fd46777de94dd02d35bd42
author bgruening
date Mon, 24 Oct 2022 16:09:44 +0000
parents
children b4e7244246e2
comparison
equal deleted inserted replaced
-1:000000000000 0:f8cb84c49623
1 <tool id="hicup2juicer" name="Hicup to juicer converter" version="@VERSION@+galaxy0">
2 <description></description>
3 <macros>
4 <import>hicup_macros.xml</import>
5 </macros>
6 <expand macro="requirements_hicup" />
7 <command detect_errors="exit_code"><![CDATA[
8 #if $input_file.ext != 'sam':
9 #set ext='bam'
10 #else:
11 #set ext='sam'
12 #end if
13 ln -s '$input_file' input.$ext &&
14 hicup2juicer input.$ext
15 ]]>
16 </command>
17 <inputs>
18 <param name="input_file" type="data" format="qname_sorted.bam,sam" label="Output of HiCUP to convert" />
19 </inputs>
20 <outputs>
21 <data name="output" format="tabular" label="${tool.name} on ${on_string}: Pairs in juicebox format" from_work_dir="*.prejuicer" />
22 </outputs>
23 <tests>
24 <test expect_num_outputs="1">
25 <param name="input_file" value="dataset1_2.hicup.bam"/>
26 <output name="output" value="dataset1_2.hicup.bam.prejuicer"/>
27 </test>
28 </tests>
29 <help><![CDATA[
30
31 HiCUP homepage: www.bioinformatics.babraham.ac.uk/projects/hicup
32
33 The hicup2juicer script converts HiCUP BAM/SAM files to a format compatible
34 with Juicer and JuiceBox( https://github.com/aidenlab/juicer ).
35 Outputfiles generated by this script may be converted to Juicer ".hic" files
36 using the "pre" command as described at: https://github.com/aidenlab/juicer/wiki/Pre
37
38 The script does not use restriction site coordinates when generating output.
39
40 FUNCTION
41
42 HiCUP generates SAM/BAM files of mapped, filtered paired-end reads
43 constituting the sequenced valid Hi-C di-tags. These may then be analysed by a
44 variety of specialised tools, but before this is possible the datasets will
45 need parsing into an appropriate format.
46
47 The hicup2juicer script converts HiCUP BAM/SAM files to a tab-delimited format
48 comprising 7 columns, with read pairs on the same line:
49
50 <readname> <str1> <chr1> <pos1> <frag1> <str2> <chr2> <pos2> <frag2> <mapq1> <mapq2>
51 str = strand (0 for forward, anything else for reverse)
52 chr = chromosome (must be a chromosome in the genome)
53 pos = position
54 frag = restriction site fragment
55 mapq = mapping quality score
56
57 Column1: Readpair index number (starting at 1)
58 Column2: forward read strand (0 = positive strand, 1 = negative strand)
59 Column3: forward read chromosome name
60 Column4: forward read position
61 Column5: forward read fragment id (set to the dummy value 0)
62 Column6: reverse read strand (0 = positive strand, 1 = negative strand)
63 Column7: reverse read chromosome name
64 Column8: reverse read position
65 Column9: reverse read fragment id (set to the dummy value 1)
66 Column10: forward read MAPQ score
67 Column11: reverse read MAPQ score
68
69
70 COMMAND LINE OPTIONS
71
72 --help Print help message and exit
73 --version Print the program version and exit
74 --zip Write output to a gzip file
75
76 Full instructions on running the pipeline can be found at:
77 www.bioinformatics.babraham.ac.uk/projects/hicup
78
79 Steven Wingett, Babraham Institute, Cambridge, UK
80 ]]>
81 </help>
82 <expand macro="citation_hicup" />
83 </tool>