Skip to content

Commit

Permalink
altCol=TRUE not supported anymore -> FALSE
Browse files Browse the repository at this point in the history
  • Loading branch information
valscherz committed Mar 3, 2020
1 parent 795f91a commit b93a691
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion build_n_validate_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ echo $3
docker build . \
-t metagenlab/amplicon_pipeline:$VERSION \
-f ./Dockerfile \
--no-cache \
--build-arg GITHUB_AT=$GITHUBAT \
--build-arg TEST_CPU=$CPU && \
docker build . \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dna_quant_barplots_fct <- function(count_table_df, figures_save_dir, grouping_co
### Distinct colors
set.seed(2)
ColList <- unique(count_table_df[[filling_column]])
ColPalette <- distinctColorPalette(altCol = TRUE, k = length(unique(count_table_df[[filling_column]])))
ColPalette <- distinctColorPalette(altCol = FALSE, k = length(unique(count_table_df[[filling_column]])))
names(ColPalette) = ColList
colors_palette <- ColPalette
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ qPCR_dna_quant_barplots_fct <- function(count_table_df, figures_save_dir, groupi
### Distinct colors
set.seed(2)
ColList <- unique(count_table_df[[filling_column]])
ColPalette <- distinctColorPalette(altCol = TRUE, k = length(unique(count_table_df[[filling_column]])))
ColPalette <- distinctColorPalette(altCol = FALSE, k = length(unique(count_table_df[[filling_column]])))
names(ColPalette) = ColList
colors_palette <- ColPalette
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ barplots_fct <- function(melted_dataframe, sample_label, grouping_column, groupi
else if (distinct_colors == TRUE) {
set.seed(1)
ColList <- unique(threshod_filtered_abs_no_zero[[t]])
ColPalette <- distinctColorPalette(altCol = TRUE, k = length(unique(threshod_filtered_abs_no_zero[[t]])))
ColPalette <- distinctColorPalette(altCol = FALSE, k = length(unique(threshod_filtered_abs_no_zero[[t]])))
names(ColPalette) = ColList
colors_palette <- ColPalette

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ barplots_fct <- function(melted_dataframe, sample_label, grouping_column, groupi
else if (distinct_colors == TRUE) {
set.seed(8)
ColList <- unique(threshod_filtered_abs_no_zero[[t]])
ColPalette <- distinctColorPalette(altCol = TRUE, k = length(unique(threshod_filtered_abs_no_zero[[t]])))
ColPalette <- distinctColorPalette(altCol = FALSE, k = length(unique(threshod_filtered_abs_no_zero[[t]])))
names(ColPalette) = ColList
colors_palette <- ColPalette
colors_palette[filtering_tag] <- "#d3d3d3" # Set the filtered in balck
Expand Down
2 changes: 1 addition & 1 deletion rules/5_visualization/scripts/barplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@
set.seed(4)
ColList <- unique(threshod_filtered_abs_no_zero[[plotting_tax_ranks]])
print(length(unique(threshod_filtered_abs_no_zero[[plotting_tax_ranks]])))
ColPalette <- distinctColorPalette(altCol = TRUE, k = length(unique(threshod_filtered_abs_no_zero[[plotting_tax_ranks]])))
ColPalette <- distinctColorPalette(altCol = FALSE, k = length(unique(threshod_filtered_abs_no_zero[[plotting_tax_ranks]])))
names(ColPalette) = ColList
colors_palette <- ColPalette
colors_palette[filtering_tag] <- "#d3d3d3" # Set the filtered in balck
Expand Down

0 comments on commit b93a691

Please sign in to comment.