Closed benediktrauscher closed 7 years ago
Hi Benedikt,
This problem happens because the target location (cut site) isn't correctly specified. For your set up, the target location is base 22. This is specified using the target.loc parameter in readsToTarget
:
crispr_set <- readsToTarget(paste0(srt_bm_fnames, '.bam'), target = gdl, reference = ref,
name = basename(fq_fnames), target.loc = 22)
What is a bit confusing to me is that the default value for target.loc
is 17, so from your code above I would expect the guide box to be shifted 5 bases to the left of the actual cut site. Your figure is what I would expect to see if target.loc
was set to 0. Are you using the latest version of CrispRVariants from Bioconductor?
Helen
Hi Helen,
thank you for your prompt reply. I have now figured out the bug in my code: The function parameter 'name' in my code needs to actually be 'names'. Writing 'name' instead of 'names' will always result in a target location of 0, no matter what the target.loc-parameter is set to (tested with CrispRVariants v1.2.0 on R 3.3.2).
Thank you for developing this useful tool!
Best regards
Benedikt
Hello,
I'm trying to plot InDels of a CRISPR experiment using CrispRVariants and I'm mostly successful. However, in the final plot the black window that indicates the guide position and cutting site are shifted to the left even though the alignment itself looks perfectly fine:
Any idea what I could be doing wrong? My code looks like so
I would much appreciate any help.
Many thanks
Benedikt