Skip to content

Commit

Permalink
Merge pull request #10 from Nanostring-Biostats/ProtqcVignette
Browse files Browse the repository at this point in the history
modify plot in the vignette and add plot factor in code
  • Loading branch information
rvitancol committed Sep 30, 2020
2 parents 4ec7fd7 + c2584fa commit 141db54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Binary file modified DSPPlugProtQC/eval-normalization-options-vignette.docx
Binary file not shown.
7 changes: 4 additions & 3 deletions DSPPlugProtQC/evaluate_normalization_options.R
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
### functions to draw plots helping select normalization factors:
# note: this code assumes the input of ERCC-normalized data for nCounter output


# Please enter additional factor(s) you would like to plot:
plot_factor <- c("Enter factor Here" ,"etc")

# main function called by DSP-DA:
main <- function(dataset, segmentAnnotations, targetAnnotations, outputFolder) {

#### preliminaries ----------------------------------

# which columns of segmentAnnotations to color plots by:
# colorby = choose_annotation_columns(annot = segmentAnnotations)
colorby <- c("ScanName", "SegmentName")
colorby <- intersect(c("ScanName", "SegmentName", plot_factor),
colnames(segmentAnnotations))

# define the color scheme:
cols <- assign_colors(annot = segmentAnnotations[, colorby, drop = FALSE])
Expand Down

0 comments on commit 141db54

Please sign in to comment.