# from the potentially BCs to be re-assigned exclude the one that are also shared within group
index_to_retain<-which(!rownames(shared_CG_UM_UMSR_first_mt_pcts)%in%union(shared_within_CG_UMSR,shared_within_CG_UM))# if not intragroup sharing is affected
# Note: barcodes shared also within condition are removed from re-assignment ####
for(settinginc("MinPct")){
dir.create(path=setting,showWarnings=F)
if(setting=="Auto"){
custom.cut.param<-FALSE
}else{
custom.cut.param<-TRUE
}
if(setting=="MinCPM"){
MinlogCPMFilter.param<-TRUE
}else{
MinlogCPMFilter.param<-FALSE
}
for(SampleGroupinc("DPlike_Exp2022_05","EXU1_Exp2022_05","EXU2_Exp2022_05","EXU3_Exp2022_05","RITIs_Exp2022_05")){# pickup only groups that contain 1st transplant samples