-
Notifications
You must be signed in to change notification settings - Fork 21
/
JAFFA_assembly.groovy
executable file
·31 lines (28 loc) · 1.12 KB
/
JAFFA_assembly.groovy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/***********************************************************
** This is the JAFFA pipeline file for fusion detection
** via read assembly. Run like so:
** bpipe run <path_to_this_file> <path_to_fastq_files>
** See our website for details on running options:
** https://code.google.com/p/jaffa-project/.
**
** Author: Nadia Davidson <[email protected]>
** Last Update: 6th Feb 2014
*********************************************************/
//these are the commands we will check for at the start of every run.
//commands="trimmomatic oases velveth velvetg R bowtie2 blat fasta_formatter samtools"
codeBase = file(bpipe.Config.config.script).parentFile.absolutePath
load codeBase+"/JAFFA_stages.groovy"
// The actual pipeline.
if(readLayout=="single"){ fastqInputFormat="%.gz" }
run{ run_check + fastqInputFormat * [
prepare_reads +
run_assembly +
align_transcripts_to_annotation +
filter_transcripts +
extract_fusion_sequences +
map_reads +
get_spanning_reads +
align_transcripts_to_genome +
get_final_list
] + compile_all_results
}