annotate getfastaBed.xml @ 40:a68aa6c1204a draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 29bd1be4655cd26052095a49a8e188d2572b703b"
author iuc
date Thu, 09 Sep 2021 13:04:07 +0000
parents 3e38c9b3214f
children 7ab85ac5f64b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
39
3e38c9b3214f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 1e25e8d0bd1ebeb2b94c4bbdff222e56defc1fc2"
iuc
parents: 34
diff changeset
1 <tool id="bedtools_getfastabed" name="bedtools GetFastaBed" version="@TOOL_VERSION@" profile="@PROFILE@">
4
607c0576c6ab planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6692e3a4fa1bf6e9a407735afdbb2454ed32b316
iuc
parents: 1
diff changeset
2 <description>use intervals to extract sequences from a FASTA file</description>
39
3e38c9b3214f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 1e25e8d0bd1ebeb2b94c4bbdff222e56defc1fc2"
iuc
parents: 34
diff changeset
3 <expand macro="bio_tools" />
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
4 <macros>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
5 <import>macros.xml</import>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
6 </macros>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
7 <expand macro="requirements" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
8 <expand macro="stdio" />
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
9 <command><![CDATA[
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
10 #if str($fasta_source.fasta_source_selector) == 'history':
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
11 #set $fasta_file = $fasta_source.fasta
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
12 #else
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
13 #set $fasta_file = $fasta_source.fasta_id.fields.path
40
a68aa6c1204a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 29bd1be4655cd26052095a49a8e188d2572b703b"
iuc
parents: 39
diff changeset
14 ln -s '${fasta_file}.fai' 'input.fasta.fai' &&
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
15 #end if
40
a68aa6c1204a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 29bd1be4655cd26052095a49a8e188d2572b703b"
iuc
parents: 39
diff changeset
16 ln -s '$fasta_file' 'input.fasta' &&
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
17 bedtools getfasta
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
18 $name
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
19 $tab
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
20 $strand
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
21 $split
40
a68aa6c1204a "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 29bd1be4655cd26052095a49a8e188d2572b703b"
iuc
parents: 39
diff changeset
22 -fi 'input.fasta'
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
23 -bed '$input'
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
24 -fo '$output'
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
25 ]]></command>
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
26 <inputs>
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
27 <param name="input" argument="-bed" type="data" format="@STD_BEDTOOLS_INPUTS@" label="@STD_BEDTOOLS_INPUT_LABEL@ file" />
10
c78cf6fe3018 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 44bebb8a97d64015cbba59f0663e2541035112b6
iuc
parents: 4
diff changeset
28 <conditional name="fasta_source">
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
29 <param name="fasta_source_selector" type="select" label="Choose the source for the FASTA file">
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
30 <option value="history" selected="true">History</option>
10
c78cf6fe3018 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 44bebb8a97d64015cbba59f0663e2541035112b6
iuc
parents: 4
diff changeset
31 <option value="preloaded">Server indexed files</option>
c78cf6fe3018 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 44bebb8a97d64015cbba59f0663e2541035112b6
iuc
parents: 4
diff changeset
32 </param>
c78cf6fe3018 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 44bebb8a97d64015cbba59f0663e2541035112b6
iuc
parents: 4
diff changeset
33 <when value="history">
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
34 <param name="fasta" argument="-fi" type="data" format="fasta" label="FASTA file" />
10
c78cf6fe3018 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 44bebb8a97d64015cbba59f0663e2541035112b6
iuc
parents: 4
diff changeset
35 </when>
c78cf6fe3018 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 44bebb8a97d64015cbba59f0663e2541035112b6
iuc
parents: 4
diff changeset
36 <when value="preloaded">
c78cf6fe3018 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 44bebb8a97d64015cbba59f0663e2541035112b6
iuc
parents: 4
diff changeset
37 <param name="fasta_id" type="select">
23
13400f3c3ec5 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 6418f2e58def1a81b3aa7c04cb5dc33decea1a96
iuc
parents: 11
diff changeset
38 <options from_data_table="fasta_indexes" />
11
7308cc546a36 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 19967671ddd4e750f53d71274e5c12325a402811
iuc
parents: 10
diff changeset
39 </param>
10
c78cf6fe3018 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 44bebb8a97d64015cbba59f0663e2541035112b6
iuc
parents: 4
diff changeset
40 </when>
c78cf6fe3018 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit 44bebb8a97d64015cbba59f0663e2541035112b6
iuc
parents: 4
diff changeset
41 </conditional>
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
42 <param argument="-name" type="boolean" truevalue="-name" falsevalue="" checked="false"
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
43 label="Use the 'name' column in the BED file for the FASTA headers in the output FASTA file" />
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
44 <param argument="-tab" type="boolean" truevalue="-tab" falsevalue="" checked="false"
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
45 label="Report extract sequences in a tab-delimited format instead of in FASTA format" />
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
46 <param name="strand" argument="-s" type="boolean" truevalue="-s" falsevalue="" checked="false"
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
47 label="Force strandedness"
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
48 help="If the feature occupies the antisense strand, the sequence will be reverse complemented" />
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
49 <expand macro="split" />
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
50 </inputs>
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
51 <outputs>
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
52 <data name="output" format="fasta">
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
53 <change_format>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
54 <when input="tab" value="-tab" format="tabular" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
55 </change_format>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
56 </data>
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
57 </outputs>
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
58 <tests>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
59 <test>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
60 <param name="input" value="nucBed1.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
61 <param name="fasta" value="nucBed1.fasta" ftype="fasta" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
62 <param name="tab" value="False" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
63 <param name="split" value="False" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
64 <output name="output" file="getfastaBed_result1.bed" ftype="fasta" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
65 </test>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
66 <test>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
67 <param name="input" value="nucBed1.bed" ftype="bed" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
68 <param name="fasta" value="nucBed1.fasta" ftype="fasta" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
69 <param name="tab" value="True" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
70 <param name="split" value="False" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
71 <output name="output" file="getfastaBed_result2.tabular" ftype="tabular" />
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
72 </test>
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
73 </tests>
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
74 <help><![CDATA[
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
75 **What it does**
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
76
1
82aac94b06c3 Uploaded
iuc
parents: 0
diff changeset
77 bedtools getfasta will extract the sequence defined by the coordinates in a BED interval and create a new FASTA entry in the output file for each extracted sequence. By default, the FASTA header for each extracted sequence will be formatted as follows: “>chrom>:&lt;start>-&lt;end>”.
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
78
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
79 .. image:: $PATH_TO_IMAGES/getfasta-glyph.png
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
80
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
81 .. class:: warningmark
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
82
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
83 1. The headers in the input FASTA file must exactly match the chromosome column in the BED file.
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
84
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
85 2. You can use the UNIX fold command to set the line width of the FASTA output. For example, fold -w 60 will make each line of the FASTA file have at most 60 nucleotides for easy viewing.
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
86
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
87 @REFERENCES@
34
dde39ba9c031 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/bedtools commit b68002321ade5e160c556517a98ffb70f068be95
iuc
parents: 32
diff changeset
88 ]]></help>
0
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
89 <expand macro="citations" />
b8348686a0b9 Imported from capsule None
iuc
parents:
diff changeset
90 </tool>