You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!isFALSE(demultiplexed)){ # if demultiplexed is TRUE or a string path
47
47
if(isTRUE(demultiplexed)){ # if demultiplexed is TRUE
48
48
49
-
mcols(readGrgList[[counter]])$BC<- case_when(grepl("^[^_]+_[^#]+#", names(readGrgList[[counter]]), perl=TRUE) ~ sub("_.*", "", names(readGrgList[[counter]])), # a checkpoint to see whether BC is contained in the name, with specific format BC_UMI#READNAME,
mcols(readGrgList[[counter]])$CB<- case_when(grepl("^[^_]+_[^#]+#", names(readGrgList[[counter]]), perl=TRUE) ~ sub("_.*", "", names(readGrgList[[counter]])), # a checkpoint to see whether CB is contained in the name, with specific format CB_UMI#READNAME,
mcols(readGrgList[[counter]])$UMI<- case_when(grepl("^[^_]+_[^#]+#", names(readGrgList[[counter]]), perl=TRUE) ~ sub("^[^_]+_([^#]+)#.*$", "\\1", names(readGrgList[[counter]])), # a checkpoint to see whether UMI is contained in the name, with specific format BC_UMI#READNAME,
mcols(readGrgList[[counter]])$UMI<- case_when(grepl("^[^_]+_[^#]+#", names(readGrgList[[counter]]), perl=TRUE) ~ sub("^[^_]+_([^#]+)#.*$", "\\1", names(readGrgList[[counter]])), # a checkpoint to see whether UMI is contained in the name, with specific format CB_UMI#READNAME,
0 commit comments