2
|
1 <tool id="star_fusion" name="Star Fusion" version="1.0.0" profile="17.05">
|
0
|
2 <description>Fusion-finding Pipeline Using the STAR Aligner</description>
|
|
3 <requirements>
|
|
4 <requirement type="package" version="1.1.0">star-fusion</requirement>
|
|
5 </requirements>
|
|
6 <command detect_errors="default">
|
2
|
7 <![CDATA[
|
|
8 STAR-Fusion
|
|
9 --genome_lib_dir "${genome_ref_lib.fields.path}"
|
|
10 --left_fq "${left_input}
|
|
11 --right_fq "${right_input}
|
|
12 --output_dir subdir
|
|
13 ]]>
|
0
|
14 </command>
|
|
15 <stdio>
|
|
16 <exit_code range="1:" level="fatal" description="Error returned from pipeline" />
|
|
17 </stdio>
|
|
18 <regex match="Must investigate error above."
|
|
19 source="stderr"
|
|
20 level="fatal"
|
|
21 description="Unknown error encountered" />
|
|
22 <inputs>
|
|
23 <param format="fastq" name="left_input" type="data" label="Left/Forward strand reads" help=""/>
|
|
24 <param format="fastq" name="right_input" type="data" label="Right/Reverse strand reads" help=""/>
|
|
25 <param name="genome_ref_lib" type="select" label="Select a reference genome">
|
|
26 <options from_data_table="ctat_genome_ref_libs">
|
|
27 <filter type="sort_by" column="2" />
|
|
28 <validator type="no_options" message="No indexes are available" />
|
|
29 </options>
|
|
30 </param>
|
|
31
|
|
32 </inputs>
|
|
33 <outputs>
|
|
34 <data format="txt" name="starfusion_log" label="${tool.name} on ${on_string}: log" from_work_dir="subdir/Log.out"/>
|
|
35 <data format="bam" name="aligned_bam" label="${tool.name} on ${on_string}: Aligned Bam" from_work_dir="subdir/Aligned.sortedByCoord.out.bam"/>
|
|
36 <data format="tabular" name="candidates" label="${tool.name} on ${on_string}: Fusion candidates" from_work_dir="subdir/star-fusion.fusion_candidates.final.abridged"/>
|
|
37 <data format="tabular" name="chimeric_junc" label="${tool.name} on ${on_string}: Chimeric.out.junction" from_work_dir="subdir/Chimeric.out.junction"/>
|
|
38 </outputs>
|
|
39 <tests>
|
|
40 <test>
|
|
41 <param name="left_input" value="StarFusion/reads_1.fq.gz" />
|
|
42 <param name="right_input" value="StarFusion/reads_2.fq.gz" />
|
|
43 <!--
|
|
44 <param name="left_input" value="reads.left.simPE.fq" />
|
|
45 <param name="right_input" value="reads.right.simPE.fq" />
|
|
46 -->
|
|
47 <!--
|
|
48 <output name="aligned_bam" file="SF_out_aligned.bam" />
|
|
49 <output name="candidates" file="SF_out_fusion_candidates.dat" />
|
|
50 <output name="chimeric_junc" file="SF_out_chimeric.junction" />
|
|
51 <output name="starfusion_log" file="SF_out.log" />
|
|
52 -->
|
|
53 <output name="starfusion_log">
|
|
54 <assert_contents>
|
|
55 <has_line_matching expression=".+" />
|
|
56 <has_line line="ALL DONE!" />
|
|
57 </assert_contents>
|
|
58 </output>
|
|
59 <output name="aligned_bam">
|
|
60 <assert_contents>
|
|
61 <has_line_matching expression=".+" />
|
|
62 <!-- The following checks for the magic number at the start of the bam file -->
|
|
63 <!-- At first I thought "\x8B\x1F" was the number, but it turns out the file
|
|
64 produced by the StarFusion test had that sequence in the file somewhere else.
|
|
65 -->
|
|
66 <has_text_matching expression="\x1F\x8B" />
|
|
67 </assert_contents>
|
|
68 </output>
|
|
69 <output name="candidates">
|
|
70 <assert_contents>
|
|
71 <has_line_matching expression=".+" />
|
|
72 <has_line line="#fusion_name	JunctionReads	SpanningFrags	Splice_type	LeftGene	LeftBreakpoint	RightGene	RightBreakpoint	Long_double_anchor_support" />
|
|
73 </assert_contents>
|
|
74 </output>
|
|
75 <output name="chimeric_junc">
|
|
76 <assert_contents>
|
|
77 <has_line_matching expression=".+" />
|
|
78 <has_line_matching expression="^chr20.*" />
|
|
79 </assert_contents>
|
|
80 </output>
|
|
81 </test>
|
|
82 </tests>
|
|
83 <help>
|
|
84 .. class:: infomark
|
|
85
|
|
86 STAR-Fusion is a component of the Trinity Cancer Transcriptome Analysis Toolkit (CTAT). STAR-Fusion uses the STAR aligner to identify candidate fusion transcripts supported by Illumina reads. STAR-Fusion further processes the output generated by the STAR aligner to map junction reads and spanning reads to a reference annotation set. Please read more here_.
|
|
87
|
|
88 .. _here: https://github.com/STAR-Fusion/STAR-Fusion/wiki
|
|
89
|
|
90 </help>
|
|
91 </tool>
|