Skip to content

Commit

Permalink
syntax typo
Browse files Browse the repository at this point in the history
  • Loading branch information
fruce-ki committed Jul 27, 2022
1 parent f3959ab commit dcf11df
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions barcoding_results_template.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ library(ggridges)
library(RColorBrewer)
library(patchwork)
# params <- list(counts = opt$countsFile, summaries = opt$summariesFile, hammdist=opt$hammingFile, samples = opt$covars, outpref = file.path(opt$resultsDir, sub('.txt|.tsv', '', basename(opt$countsFile))), refsamps=opt$refsamps, abund_thresh=opt$abund_thresh, count_thresh=opt$count_thresh, extra_bc= opt$extrabc, hammdist = opt$hammdist )
# ggplot2 theme.
gth <- theme(axis.line.x= element_line(),
axis.line.y= element_line(),
Expand Down Expand Up @@ -558,7 +556,7 @@ my_pairwise_internal_corels <- function(mat, samples = samples_tidy$Sample, meth
}
cplots <- my_pairwise_internal_corels(mat = cf[,2:length(cf)], method='spearman', prefix=paste0(params$outpref, '_spearman'))
print( cplots[["frnc"]] + cplots[["drc"]] )
print( cplots[["sfrnc"]] + cplots[["sdrc"]] )
```

# Distribution of barcode abundances
Expand Down Expand Up @@ -748,7 +746,7 @@ tmp <- rbind(tmp, cbind(fillup, data.frame(bc_id=-Inf, Reads=0, count_Good=NA,re
# Assign colours
elem <- as.character(unique(tmp$sharedFillGrp[!is.na(tmp$sharedFillGrp) & ! tmp$sharedFillGrp %in% c('notshared', 'fillup')]))
if (length(elem) > 0)){
if (length(elem) > 0) {
elemcol <- getPalette(length(elem))
names(elemcol) <- elem
} else {
Expand Down Expand Up @@ -801,7 +799,7 @@ tmp <- rbind(tmp, cbind(fillup, data.frame(bc_id=-Inf, Reads=0, count_Good=NA,re
# Assign colours
elem <- as.character(unique(tmp$sharedFillTrt[!is.na(tmp$sharedFillTrt) & ! tmp$sharedFillTrt %in% c('notshared', 'fillup')]))
if (length(elem) > 0)){
if (length(elem) > 0) {
elemcol <- getPalette(length(elem))
names(elemcol) <- elem
} else {
Expand Down

0 comments on commit dcf11df

Please sign in to comment.