sheltzer-lab / crispr-screening

A Nextflow script which conducts the computational analysis associated with CRISPR screening as done within the Sheltzer Lab.
MIT License
0 stars 0 forks source link

Add defensive programming elements #2

Open rhagenson opened 1 year ago

rhagenson commented 1 year ago

I just had a failure that should have been caught on input, but was not. Example of the malformed input:

sample,time,sequence
...
T13,initial,ACTTGA
...
Ts13,final,AGTTCC
...

The missing "s" in "T13" for "initial" means there was not matching initial/final pair. It would be advantageous to add more defensive programming elements which catch malformed input like this and fail early with reasonable error messages.