From 97b42e633757fd5d57ca520a6feef410e0e168e1 Mon Sep 17 00:00:00 2001 From: niekwit <41302859+niekwit@users.noreply.github.com> Date: Thu, 9 Jan 2025 14:42:01 +0000 Subject: [PATCH] updated comments --- workflow/scripts/crisprcleaner.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workflow/scripts/crisprcleaner.R b/workflow/scripts/crisprcleaner.R index d9f3b43..64e2661 100644 --- a/workflow/scripts/crisprcleaner.R +++ b/workflow/scripts/crisprcleaner.R @@ -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)