Skip to content

Commit

Permalink
add compatibility for the latest lncPipeReporter
Browse files Browse the repository at this point in the history
  • Loading branch information
likelet committed Aug 1, 2018
1 parent d27ed7a commit 2ea7a6b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions LncRNAanalysisPipe.nf
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ if (!params.merged_gtf) {
else if (params.qctools == 'fastp'){
Channel.fromFilePairs(reads, size: params.singleEnd ? 1 : 2)
.ifEmpty {
exit 1, print_red("Cannot find any reads matching: !{reads}\nPlz check your fasta_ref string in nextflow.config file \n")
exit 1, print_red("Cannot find any reads matching: ${reads}\nPlz check your fasta_ref string in nextflow.config file \n")
}
.set { reads_for_fastqc}
process Run_FastP {
Expand Down Expand Up @@ -860,7 +860,7 @@ else {
else if (params.qctools == 'afterqc'){
Channel.fromFilePairs(reads, size: params.singleEnd ? 1 : 2)
.ifEmpty {
exit 1, print_red("Cannot find any reads matching: !{reads}\nPlz check your fasta_ref string in nextflow.config file \n")
exit 1, print_red("Cannot find any reads matching: ${reads}\nPlz check your fasta_ref string in nextflow.config file \n")
}
.set { reads_for_fastqc}
process Run_afterQC {
Expand Down Expand Up @@ -894,7 +894,7 @@ else {
else if (params.qctools == 'fastp'){
Channel.fromFilePairs(reads, size: params.singleEnd ? 1 : 2)
.ifEmpty {
exit 1, print_red("Cannot find any reads matching: !{reads}\nPlz check your fasta_ref string in nextflow.config file \n")
exit 1, print_red("Cannot find any reads matching: ${reads}\nPlz check your fasta_ref string in nextflow.config file \n")
}
.set { reads_for_fastqc}
process Run_FastP {
Expand Down Expand Up @@ -929,7 +929,7 @@ else {
else{
Channel.fromFilePairs(reads, size: params.singleEnd ? 1 : 2)
.ifEmpty {
exit 1, print_red("Cannot find any reads matching: !{reads}\nPlz check your fasta_ref string in nextflow.config file \n")
exit 1, print_red("Cannot find any reads matching: ${reads}\nPlz check your fasta_ref string in nextflow.config file \n")
}
.into{readPairs_for_discovery; readPairs_for_kallisto;fastqc_for_waiting}
}
Expand Down Expand Up @@ -1512,9 +1512,9 @@ if(!params.merged_gtf) {
file "*" into final_output
shell:
file_tag = "Generating report ..."
'''
Rscript -e "library(LncPipeReporter);run_reporter(input='.', output = 'reporter.html',output_dir='./LncPipeReports',theme = 'npg',cdf.percent = !{lncRep_cdf_percent},max.lncrna.len = !{lncRep_max_lnc_len},min.expressed.sample = !{lncRep_min_expressed_sample}, ask = FALSE)"
'''
"""
Rscript -e "library(LncPipeReporter);run_reporter(input='.', output = 'reporter.html',output_dir='./LncPipeReports',de.method=\'${detools}\',theme = 'npg',cdf.percent = ${lncRep_cdf_percent},max.lncrna.len = ${lncRep_max_lnc_len},min.expressed.sample = ${lncRep_min_expressed_sample}, ask = FALSE)"
"""
}
}else{
process Run_LncPipeReporter {
Expand All @@ -1533,9 +1533,9 @@ if(!params.merged_gtf) {
file "*" into final_output
shell:
file_tag = "Generating report ..."
'''
Rscript -e "library(LncPipeReporter);run_reporter(input='.', output = 'reporter.html',output_dir='./LncPipeReports',de.method=!{detools},theme = 'npg',cdf.percent = !{lncRep_cdf_percent},max.lncrna.len = !{lncRep_max_lnc_len},min.expressed.sample = !{lncRep_min_expressed_sample}, ask = FALSE)"
'''
"""
Rscript -e "library(LncPipeReporter);run_reporter(input='.', output = 'reporter.html',output_dir='./LncPipeReports',de.method=\'${detools}\',theme = 'npg',cdf.percent = ${lncRep_cdf_percent},max.lncrna.len = ${lncRep_max_lnc_len},min.expressed.sample = ${lncRep_min_expressed_sample}, ask = FALSE)"
"""
}
}

Expand Down

0 comments on commit 2ea7a6b

Please sign in to comment.