Skip to content

Commit

Permalink
Remove coverage calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
kweav authored Feb 8, 2024
1 parent 655a7fb commit 093262f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions R/00-setup_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ setup_data <- function(counts = NULL, pg_metadata = NULL, sample_metadata = NULL
# Calculate the counts per sample
new_data$counts_per_sample <- apply(counts, 2, sum)

# Calculate the coverage per pgRNA
new_data$coverage <- new_data$counts_per_sample/nrow(counts)

# Transform the data
new_data$transformed_data$count_norm <- apply(counts, 2, function(x) -log10((x+1)/sum(x)))
new_data$transformed_data$cpm <- apply(counts, 2, function(x) (x/new_data$counts_per_sample)*1e6)
Expand Down

0 comments on commit 093262f

Please sign in to comment.