You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Amplicon/Illumina/Workflow_Documentation/SW_AmpIllumina-B/workflow_code/visualizations/Illumina-R-visualizations.R
+10-26Lines changed: 10 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -13,34 +13,18 @@ library(grid)
13
13
## R visualization script for Illumina paired-end amplicon data ##
Copy file name to clipboardExpand all lines: Amplicon/Illumina/Workflow_Documentation/SW_AmpIllumina-B/workflow_code/visualizations/README.md
+13-23Lines changed: 13 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -21,49 +21,39 @@ ___
21
21
22
22
### 1. Set up the execution environment
23
23
24
-
To ensure that manual execution outputs that are consistent with those of the Snakemake workflow, the script should be executed from a Conda environment created using the [R_visualizations.yaml](/Amplicon/Illumina/Workflow_Documentation/SW_AmpIllumina-B/workflow_code/envs/R_visualizations.yaml/) environment file.
24
+
The script should be executed from a Conda environment created using the [R_visualizations.yaml](/Amplicon/Illumina/Workflow_Documentation/SW_AmpIllumina-B/workflow_code/visualizations/R_visualizations.yaml) environment file.
25
25
26
26
<br>
27
27
28
28
___
29
29
30
30
### 2. Run the visualization script manually
31
31
32
-
To manually execute the script, the following variables:`runsheet_file`, `sample_info`, `counts`, `taxonomy`, `final_outputs_dir`, `assay_suffix`, and `output_prefix`, must be explicitly assigned with appropriate values. For manual execution, the lines within the Snakemake Configuration section should be commented out or removed. These lines are used for capturing variables during execution as part of the Snakemake workflow.
32
+
To run the script, the variables `runsheet_file`, `sample_info`, `counts`, `taxonomy`, `assay_suffix`, `plots_dir`, and `output_prefix` must be specified. The script can be manually executed via the command line by providing positional arguments.
33
33
34
-
Additionally, the `RColorBrewer_Palette` variable can be modified. This variable determines the color palette from the RColorBrewer package that is applied to the plots.
34
+
Additionally, the `RColorBrewer_Palette` variable can be modified in the script. This variable determines the color palette from the RColorBrewer package that is applied to the plots.
35
35
36
36
```R
37
-
####### Manual Configuration ########
38
-
# To run the script manually:
39
-
# 1. Uncomment and populate lines 23-30
40
-
# 2. Comment out the Snakemake configuration section (lines 35-42).
*`sample_info` – specifies the text file containing the IDs of each sample used, required for running the SW_AmpIllumina workflow (output from [run_workflow.py](/Amplicon/Illumina/Workflow_Documentation/SW_AmpIllumina-B/README.md#5-additional-output-files))
76
66
*`counts` – specifies the ASV counts table (output from [GL-DPPD-7104-B step 5g](/Amplicon/Illumina/Pipeline_GL-DPPD-7104_Versions/GL-DPPD-7104-B.md#5g-generating-and-writing-standard-outputs))
77
67
*`taxonomy` – specifies the taxonomy table (output from [GL-DPPD-7104-B step 5g](/Amplicon/Illumina/Pipeline_GL-DPPD-7104_Versions/GL-DPPD-7104-B.md#5g-generating-and-writing-standard-outputs))
78
-
*`final_outputs_dir` – specifies the path where output files will be saved
68
+
*`plots_dir` – specifies the path where output files will be saved
79
69
*`assay_suffix` – specifies a string that is prepended to the start of the output file names. Default: ""
80
70
*`output_prefix` – specifies a string that is appended to the end of the output file names. Default: "_GLAmpSeq"
81
71
*`RColorBrewer_Palette` – specifies the RColorBrewer palette that will be used for coloring in the plots. Options include "Set1", "Accent", "Dark2", "Paired", "Pastel1", "Pastel2", "Set2", and "Set3". Default: "Set1"
0 commit comments