comparison genebed_maf_to_fasta.xml @ 0:be26293ade92 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genebed_maf_to_fasta/ commit 8d55cabcec17915d959f672ecacfa851df1f4ca4-dirty"
author dave
date Fri, 24 Jul 2020 12:35:57 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:be26293ade92
1 <tool id="GeneBed_Maf_Fasta2" name="Stitch Gene blocks" version="1.0.1">
2 <description>given a set of coding exon intervals</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <command>
7 <![CDATA[
8 #if $maf_source_type.maf_source == "cached"
9 #set $tab = '\t'
10 echo "$maf_source_type.mafType.fields.name${tab}$maf_source_type.mafType.fields.value${tab}$maf_source_type.mafType.fields.indexed_for${tab}$maf_source_type.mafType.fields.exists_in_maf${tab}$maf_source_type.mafType.fields.path" >> ./maf_indexes.loc &&
11 #end if
12
13 python '$__tool_directory__/interval_maf_to_merged_fasta.py'
14 #if $maf_source_type.maf_source == "user"
15 --mafSource='$maf_source_type.mafFile' --mafIndex='$maf_source_type.mafFile.metadata.maf_index'
16 #else
17 --mafSource=./maf_indexes.loc
18 #end if
19 --geneBED
20 --dbkey=$dbkey
21 --species=$maf_source_type.species
22 --interval_file='$input1'
23 --output_file='$out_file1'
24 --mafSourceType=$maf_source_type.maf_source
25 --mafIndexFileDir=.
26 --overwrite_with_gaps=$overwrite_with_gaps
27 ]]>
28 </command>
29 <inputs>
30 <param name="input1" type="data" format="bed" label="Gene BED File">
31 <validator type="unspecified_build" />
32 <validator type="expression" message="Input must be in BED12 format.">value.metadata.columns &gt;= 12</validator> <!-- allow 12+ columns, not as strict as possible. TODO: only list bed files with 12+ columns -->
33 </param>
34 <expand macro="maf_source" />
35 <param name="overwrite_with_gaps" type="select" label="Split into Gapless MAF blocks" help="When set to Yes, blocks are divided around gaps appearing in any species. This will prevent gaps occurring in the interior of the sequence for an aligning species from overwriting a nucleotide found for the same position in a lower-scoring block.">
36 <option value="True" selected="true">No</option>
37 <option value="False">Yes</option>
38 </param>
39 </inputs>
40 <outputs>
41 <data format="fasta" name="out_file1" />
42 </outputs>
43 <tests>
44 <test>
45 <param name="input1" dbkey="hg38" value="maf_to_fasta-in1.bed"/>
46 <param name="maf_source" value="cached"/>
47 <param name="maf_identifier" value="test"/>
48 <param name="species" value="hg38,eulFla1,mm10"/>
49 <param name="overwrite_with_gaps" value="True"/>
50 <output name="out_file1" file="maf_to_fasta-out1.fasta" />
51 </test>
52 <test>
53 <param name="input1" dbkey="hg38" value="maf_to_fasta-in2.bed"/>
54 <param name="maf_source" value="user"/>
55 <param name="maf_file" dbkey="hg38" value="maf_to_fasta-in2.maf"/>
56 <param name="species" value="hg38,eulFla1,mm10"/>
57 <param name="overwrite_with_gaps" value="True"/>
58 <output name="out_file1" file="maf_to_fasta-out2.fasta" />
59 </test>
60 </tests>
61 <help>
62 **What it does**
63
64 The coding sequence of genes are usually composed of several coding exons. Each of these coding exons is an individual genomic region, which when concatenated with each other constitutes the coding sequence. A single genomic region can be covered by multiple alignment blocks. In many cases it is desirable to stitch these alignment blocks together. This tool accepts a list of gene-based intervals, in the Gene BED format. For every interval it performs the following:
65
66 * finds all MAF blocks that overlap the coding regions;
67 * sorts MAF blocks by alignment score;
68 * stitches blocks together and resolves overlaps based on alignment score;
69 * outputs alignments in FASTA format.
70 </help>
71 <expand macro="citations" />
72 </tool>