Skip to content

Commit 036b1bd

Browse files
committed
Fixed Rscript run method
1 parent 565a0c6 commit 036b1bd

File tree

1 file changed

+4
-5
lines changed
  • Amplicon/Illumina/Workflow_Documentation/NF_AmpIllumina-B/workflow_code/modules

1 file changed

+4
-5
lines changed

Amplicon/Illumina/Workflow_Documentation/NF_AmpIllumina-B/workflow_code/modules/ancombc.nf

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ nextflow.enable.dsl = 2
1111

1212
process ANCOMBC {
1313

14-
tag "Running ANCOMBC ${params.ancombc_version} for differential abundance testing"
14+
tag "Running ANCOMBC ${params.ancombc_version} for differential abundance testing..."
1515

1616
input:
1717
tuple val(group), val(samples_column)
@@ -21,15 +21,14 @@ process ANCOMBC {
2121

2222
output:
2323
path("Plots/"), emit: plots
24-
path("differential_abundance_${params.assay_suffix}.csv"), emit: table
24+
path("differential_abundance${params.assay_suffix}.csv"), emit: table
2525
path("versions.txt"), emit: version
2626

2727
script:
2828
def script_name = params.ancombc_version == 1 ? "pairwise_ancombc1.R" : "pairwise_ancombc2.R"
2929
"""
30-
cp `which ${script_name}` . && chmod +x ./${script_name}
31-
Rscript ./${script_name} \\
32-
--out-file "differential_abundance_${params.assay_suffix}.csv" \\
30+
${script_name} \\
31+
--out-file "differential_abundance${params.assay_suffix}.csv" \\
3332
--metadata-table '${metadata}' \\
3433
--feature-table '${asv_table}' \\
3534
--taxonomy-table '${taxonomy}' \\

0 commit comments

Comments
 (0)