calc.seq.depth: Sequencing depth

Description Usage Arguments See Also Examples

View source: R/depth.seq.R

Description

bar plot visualizing sequencing depth

Usage

1
2
3
4
5
6
7
calc.seq.depth(
  countsTable,
  metadata,
  sample.id = "SampleID",
  print = T,
  save = F
)

Arguments

countsTable

input matrix containing normalized gRNA counts with gRNA ids as row names

metadata

input dataframe containing sample names and other identifiers or data

sample.id

string identifying column name in metadata containing sample IDs

print

logical - do you want to print the plot to plots

save

logical - do you want to save the plot to pdf

See Also

ggplot which this function uses to plot

Examples

1
2
3
4
5
y <- matrix(rnorm(100*9, mean = 10, sd = 1),100,9)
colnames(y) <- paste0('sample.',1:9)
metadata <- data.frame(sample = paste0('sample.',1:9), batch = c("A","A","A","B","B","B","C","C","C"))
calc.seq.depth(y)
...

christensensm/COMPOSE documentation built on Dec. 22, 2020, 3:43 a.m.