Closed pauline-ng closed 5 months ago
I was able to get the Rscripts running by assigning the dataframes the same levels. Code like below was added to
subscripts/annotate-off-targets.R
subscripts/annotate-targets.R
levelsa = levels (a[[4]])
levelsb = levels (b[[1]])
union_levels <- union (levelsa, levelsb)
a[,4] <- factor (a[,4], levels=union_levels)
b[,1] <- factor (b[,1], levels=union_levels)
Hi Pauline,
Thank you very much for reporting the error and trying OFF-PEAK. I realised the errors can simply be corrected by adding "stringsAsFactors = FALSE" in all scripts. It was forced in the environment where we tested OFF-PEAK. I have update all scirpts accordingly.
Please, do not hesitate to report any other issues.
Best, Mathieu
Hi,
I'm excited to try OFF-PEAK! I'm getting an error :
I dug deeper and it's failing at:
Rscript $here/subscripts/annotate-targets.R $file.$name.exons.sort.merge.bed $targets.$name.merged.bed $file.$name.exons.sort.merge.ontar.bed $file.$name.exons.sort.merge.offtar.bed
My target_bed has only 3 columns (chrom, start, end). Any clue what's going wrong?
(Edited because I realized I was looking at the wrong R script)
Thanks