Mercurial > repos > ldelisle > revertr2orientationinbam
annotate revertR2orientationInBam.xml @ 1:2c86ad672f52 draft default tip
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
author | ldelisle |
---|---|
date | Wed, 19 Oct 2022 08:34:43 +0000 |
parents | |
children |
rev | line source |
---|---|
1
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
1 <tool id="revertR2orientationInBam" name="revertR2orientationInBam" version="0.0.1" profile="16.04"> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
2 <description> Revert the mapped orientation of R2 mates in a bam.</description> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
3 <requirements> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
4 <requirement type="package" version="1.9">samtools</requirement> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
5 </requirements> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
6 <stdio> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
7 <!-- Anything other than zero is an error --> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
8 <exit_code range="1:" /> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
9 <exit_code range=":-1" /> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
10 <!-- In case the return code has not been set propery check stderr too --> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
11 <regex match="Error:" /> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
12 <regex match="Exception:" /> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
13 </stdio> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
14 <command> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
15 <![CDATA[ |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
16 bash $__tool_directory__/revertR2orientationInBam.sh $input $output |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
17 ]]> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
18 </command> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
19 <inputs> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
20 <!-- note unsorted bam includes all derived bam types (inlcuding bam which is sorted) --> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
21 <param name="input" type="data" format="sam,bam" label="Select a sam or bam file."/> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
22 </inputs> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
23 <outputs> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
24 <data format="bam" name="output" label="$input.name with R2 orientation reversed"/> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
25 </outputs> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
26 |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
27 <tests> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
28 <test> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
29 <param name="input" value="input.sam"/> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
30 <output name="output" file="output.bam" ftype="bam"/> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
31 </test> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
32 </tests> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
33 <help> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
34 <![CDATA[ |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
35 This tool is very useful when you have paired-end stranded RNA-seq. |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
36 Using this tool prior to a bedtools genome coverage allow to have strand specific coverage using both mates. |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
37 It uses samtools to convert input to sam format and then awk to modify the flag "reverse strand" for the second mate of pairs. |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
38 ]]> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
39 </help> |
2c86ad672f52
planemo upload commit 89aa8abdc88aa922cab8d9c5f17078ba1e388339-dirty
ldelisle
parents:
diff
changeset
|
40 </tool> |