Skip to content

Commit

Permalink
updated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
niekwit committed Jan 9, 2025
1 parent 17dded0 commit 97b42e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workflow/scripts/crisprcleaner.R
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ if (!library.name %in% available.libs) {
# Remove chr from chromosome name
full.annotations$CHRM <- gsub("chr", "", full.annotations$CHRM)

# Check if any non-existing chromosome are in annotations
# Check if any non-existing chromosome exist in annotations
# This would happen with sgRNAs targeting non-genomic sequences, eg. EGFP
# Otherwise it will confuse CRISPRcleanR
non.real.chr <- setdiff(unique(full.annotations$CHRM), c(1:24,"X","Y"))
non.real.chr.count <- length(non.real.chr)
if (non.real.chr.count > 0) {
# Convert any non-real chromosome to an integer
# Assign these chromosomes a number higher than 24
# This is to avoid confusing CRISPRcleanR
print(paste("Non-existing chromosomes found in annotations:", paste(non.real.chr, collapse = ", ")))
print("Assigning them a chromosome number higher than 24")
new.chr.names <- 25:(24 + non.real.chr.count)
Expand Down

0 comments on commit 97b42e6

Please sign in to comment.