Mercurial > repos > malex > bayesase
comparison create_sam_file_with_features.xml @ 0:e979cb57a5d5 draft default tip
"planemo upload for repository https://github.com/McIntyre-Lab/BayesASE/tree/main/galaxy commit 9b70598ef46a73632d9e0fa0c6ce6776fb5e9d6a"
author | malex |
---|---|
date | Thu, 14 Jan 2021 21:51:36 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e979cb57a5d5 |
---|---|
1 <tool id="base_create_new_sam_file" name="Create new SAM file" version="21.1.13"> | |
2 <description> with features of interest in RNAME field</description> | |
3 <macros> | |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="requirements"/> | |
7 <command> | |
8 <![CDATA[ | |
9 awk -v OFS=' ' 'FNR==NR{a[$1,$2]=$7; next} {$3=a[$3,$4]}1' '$BED3' '$SAMFILE' | awk -F'\t' '$3!=""' > '$NEWSAM' | |
10 ]]> | |
11 </command> | |
12 <inputs> | |
13 <param name="BED3" type="data" format="tabular" label="BED file generated from the Remove Reads That Do Not Overlap tool" /> | |
14 <param name="SAMFILE" type="data" format="sam" label="Input SAM file containing Uniquely Mapped Reads" | |
15 help=" SAM file to convert chromosome names to feature IDs in RNAME field" /> | |
16 </inputs> | |
17 <outputs> | |
18 <data name="NEWSAM" format="sam" label="${tool.name} on ${on_string}: New SAM file with features instead of chrom" /> | |
19 </outputs> | |
20 <tests> | |
21 <test> | |
22 <param name="BED3" value="align_and_counts_test_data/drop_nonintersecting_reads_for_BASE.tabular" ftype="tabular"/> | |
23 <param name="SAMFILE" value="align_and_counts_test_data/W1118_G1_unique_sam_for_BASE.sam" ftype="sam"/> | |
24 <output name="NEWSAM" file="align_and_counts_test_data/W1118_G1_create_new_SAM_file_with_features_BASE_test_data.sam" ftype="sam"/> | |
25 </test> | |
26 </tests> | |
27 <help><![CDATA[ | |
28 **Tool Description** | |
29 | |
30 This tool reformats the SAM file containing uniquely mapping reads using the multi-column BED file created by the *Remove reads that do not overlap with a feature for BASE* tool. | |
31 The resulting SAM file contains the name of genic features in the 'chrom' field. | |
32 | |
33 | |
34 ---------------------------------------------------------------------------------------------- | |
35 | |
36 **Inputs** | |
37 | |
38 -The tool has two required inputs: | |
39 | |
40 **BED File** | |
41 The tool requires a BED file of reads overlapping genic features of interest. | |
42 The *Remove reads that do not overlap with a feature for BayesASE* tool creates this BED file. | |
43 | |
44 Example input BED file | |
45 | |
46 +---------------+---------+---------+---------+---------+------------+------------+ | |
47 | Chrom | Start | End | Name | Score | Strand |ThickStart | | |
48 +===============+=========+=========+=========+=========+============+============+ | |
49 | X | 2190 | 2245 | X | 1 | 2300 |l(1)G0196 | | |
50 +---------------+---------+---------+---------+---------+------------+------------+ | |
51 | 2R | 1502 | 1834 | 2R | 50 |19000 |Mapmodulin | | |
52 +---------------+---------+---------+---------+---------+------------+------------+ | |
53 | |
54 **Unique SAM File** | |
55 Input the SAM file containing alignments for all uniquely mapping reads. This file can be created by the **BWASplitSAM** tool. | |
56 | |
57 **Outputs** | |
58 The tool outputs a new SAM file with the genic feature (ThickStart column in BED file) in the RNAME field instead of the chromosome name. | |
59 | |
60 ]]></help> | |
61 <citations> | |
62 <citation type="bibtex">@ARTICLE{Miller20BASE, | |
63 author = {Brecca Miller, Alison M. Morse, Elyse Borgert, Zihao Liu, Kelsey Sinclair, Gavin Gamble, Fei Zou, Jeremy Newman, Luis Leon Novello, Fabio Marroni, Lauren M. McIntyre}, | |
64 title = {Testcrosses are an efficient strategy for identifying cis regulatory variation: Bayesian analysis of allele imbalance among conditions (BASE)}, | |
65 journal = {????}, | |
66 year = {submitted for publication} | |
67 }</citation> | |
68 </citations> | |
69 </tool> |