Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deduper review! #4

Open
maddygriz opened this issue Oct 27, 2018 · 0 comments
Open

Deduper review! #4

maddygriz opened this issue Oct 27, 2018 · 0 comments

Comments

@maddygriz
Copy link

Looks good just a couple suggestions.

  1. Can you sort by RNAME and position? Then the original positions will come in a logical order all on the same chromosome.

  2. With your adjust_position function, you say "only adjust if the first letter isn't an M" but what if there is an indel in the middle of the read?

  3. I think you are thinking of the CIGAR string backward. You keep the position the same with the Ms. The examples in the adjust position should be 50 and 60. The first one will be the same since there is no soft clipping at the beginning and the second one will add 5 because of the soft clipping. If this doesn't make sense I can try and explain it either over slack or in person next week.

  4. The ID technique is cool but I think it might be better implemented as a dictionary and the ID is the key. This will be faster than searching through a set.

  5. Your functions look like good standalone pieces of code, but I have a feeling you will need a few more like get_UMI out of the header specifically.

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

No branches or pull requests

1 participant