-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.nf
More file actions
56 lines (42 loc) · 2 KB
/
Copy pathmain.nf
File metadata and controls
56 lines (42 loc) · 2 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
// Import processes from modules
include { transdecoder_process } from './modules/transdecoder.nf'
include { comet_search } from './modules/comet_search.nf'
include { merge_databases } from './modules/merge_db.nf'
include { qc_and_trim } from './modules/qc_and_trim.nf'
include { rnaseq_wrapper } from './modules/rnaseq_wrapper.nf'
include { gffread_transcripts } from './modules/gffread_transcripts.nf'
include { gffcompare } from './modules/gffcompare.nf'
include { stringtie_mixed } from './modules/stringtie_mixed.nf'
// Define input parameters
params.reads = "data/reads/*.fastq.gz"
params.fasta = "data/reference/proteome.fasta"
params.outdir = "results"
params.msraw = "data/ms/*.mzML"
params.samplesheet = "data/samplesheet.csv"
params.comet_params = "params/comet.params"
params.fasta1Unzip = "data/reference/Homo_sapiens.GRCh38.dna.toplevel.fa"
params.fasta1 = "data/reference/Homo_sapiens.GRCh38.dna.toplevel.fa.gz"
params.genome1 = "data/genome/Homo_sapiens.GRCh38.114.chr.gtf.gz"
params.genomeUnzip = "data/genome/Homo_sapiens.GRCh38.114.chr.gtf"
workflow {
comet_params = file(params.comet_params, checkIfExists: true)
reads_ch = channel.fromPath(params.reads)
fasta_ch = channel.fromPath(params.fasta)
ms_ch = channel.fromPath(params.msraw)
samplesheet_ch = channel.fromPath(params.samplesheet)
fasta1_ch = channel.fromPath(params.fasta1)
genome1_ch = channel.fromPath(params.genome1)
rnaseq_out = rnaseq_wrapper(
samplesheet_ch,
fasta1_ch,
genome1_ch
)
genome1_unzip = file(params.genomeUnzip, checkIfExists: true)
stringtie_results = stringtie_mixed("THP1_R", rnaseq_out.sorted_bam, genome1_unzip)
gff = gffcompare(stringtie_results.gtf, genome1_unzip)
ref_fa = file(params.fasta1Unzip, checkIfExists: true)
transcripts = gffread_transcripts(gff.novel, ref_fa)
translated = transdecoder_process(transcripts)
}