jbloomlab / dms_tools2

software for the analysis and visualization of deep mutational scanning data
GNU General Public License v3.0
31 stars 20 forks source link

unconfirmed bug in python code #59

Open adalisan opened 3 years ago

adalisan commented 3 years ago

I was reading through the code, and I think this is likely a bug.

https://github.com/jbloomlab/dms_tools2/blob/234670ca480eeaf04a98335c1cf3ff088ab9ab92/scripts/dms2_bcsubamp#L354

if r2trim is None:
     r2trimconsensus = consensus['R2'][ : r2trim]

if this is true, None would be an index for the string. I think the right side was meant to be consensus['R2'] just like for r1trim. Probably not an issue in a practical sense.

jbloom commented 3 years ago

Yes, you are correct---that is a bug. Feel free to submit a pull request if you'd like, or I can try to fix at some point.