Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.

If guide seq is wrong, do not crash instead run without guide seq #21

Closed
Imoteph opened this issue Jul 21, 2017 · 3 comments
Closed

If guide seq is wrong, do not crash instead run without guide seq #21

Imoteph opened this issue Jul 21, 2017 · 3 comments

Comments

@Imoteph
Copy link

Imoteph commented Jul 21, 2017

Thanks for the software and the recent addition of allowing outies for flash ! TOP 👍

Would you maybe as well considering following change as well in the Core code?

                     if not cut_points:
                         #CHANGE ADDED here (add warning and default values instead of a crash)
                         #raise SgRNASequenceException('The guide sequence/s provided is(are) not present in the amplicon sequence! \n\nPlease check your input!')
                         warn('The guide sequence/s provided is(are) not present in the amplicon sequence! \n\nPlease check your input!, running now without guide_sequence!!')
                         cut_points=[]
                         sgRNA_intervals=[]
                         offset_plots=[]
                     else:
                         info('Cut Points from guide seq:%s' % cut_points)

This helps for throughput analysis. I know that the downstream calculation values are off, but the resulting allele_frequency_tsv should not be affected at all. What do you think?

@lucapinello
Copy link
Owner

Hi Imoteph,

yeah I thought about this option. In a previous version of CRISPResso I had this logic impemented but this created a lot of confusion, since people don't usually read the full log (especially if you are using the CRISPRessoPooled with multiple guides). I think it is better to be explicit in this case, since if you design the experiment you should know the sgRNA sequence and if you are providing the wrong one it is better to stop the execution to be on the safe side.

The allele_frequency_tsv will show the same rows but the classification of modified or unmodified may be different.

@Imoteph
Copy link
Author

Imoteph commented Jul 28, 2017

Hi lucapinello,

Thanks for your answer! I already were thinking you would say this. But in our case we have to deal with some flexibility regarding the guide_seq which could contain one or two (not around the PAM site) SNPs. Therefore I changed this into a warning instead of crashing. But I am thinking already to modify it towards a more fuzzy search (allowing one or two SNPs) of the guide_seq, which would allow as well the correct classification. I will let you know, when I find time to do this, maybe this can be included as well as additional option.

@lucapinello
Copy link
Owner

lucapinello commented Jul 28, 2017 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants