cancerdatasci / ceres

Computational correction of copy-number effect in CRISPR-Cas9 essentiality screens
BSD 3-Clause "New" or "Revised" License
27 stars 14 forks source link

Accepting sgRNAs with length != 20 #2

Closed joshdempster closed 6 years ago

joshdempster commented 6 years ago

Currently, CERES assumes that sgRNAs have 20 nts before the PAM in the function guideAlignments. However, some libraries use 19 nt guides. Ideally this could be solved by taking the alignment end rather than the beginning for positive strand alignments. Simple hack that worked for me instead: add an argument guide_length to the guideAlignments call signature. guide_length can be determined in map_guide_to_locus by checking the number of characters in the first entry in guides (assumes all guides are the same length).

j-g-b commented 6 years ago

Thanks Josh!