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