Skip to content
Snippets Groups Projects
Commit aa7ca893 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

Add todo

parent 8944ddde
No related branches found
No related tags found
No related merge requests found
Pipeline #25691 failed
...@@ -18,6 +18,7 @@ def get_off_target_pos(guide, recs, seed_size): ...@@ -18,6 +18,7 @@ def get_off_target_pos(guide, recs, seed_size):
# + ori # + ori
offs_plus = re.finditer(guide[-seed_size:] + "[ATGC]GG", str(rec.seq)) offs_plus = re.finditer(guide[-seed_size:] + "[ATGC]GG", str(rec.seq))
offs = [match.span() + (match.end(), "+", rec.id) for match in offs_plus] offs = [match.span() + (match.end(), "+", rec.id) for match in offs_plus]
# TODO: comparer guide avec rec.seq[match.start():match.end()]
# - ori # - ori
offs_minus = re.finditer( offs_minus = re.finditer(
"CC[ATGC]" + rev_comp(guide[-seed_size:]), str(rec.seq) "CC[ATGC]" + rev_comp(guide[-seed_size:]), str(rec.seq)
...@@ -25,6 +26,8 @@ def get_off_target_pos(guide, recs, seed_size): ...@@ -25,6 +26,8 @@ def get_off_target_pos(guide, recs, seed_size):
offs += [ offs += [
match.span() + (match.start(), "-", rec.id) for match in offs_minus match.span() + (match.start(), "-", rec.id) for match in offs_minus
] ]
# comparer guide avec rec.seq[match.start():match.end()].reverse_complement()
# comparer les positions identique à partir de la fin et d'affilé.
offs_dict = dict( offs_dict = dict(
zip(["start", "end", "pampos", "strand", "recid"], zip(*offs)) zip(["start", "end", "pampos", "strand", "recid"], zip(*offs))
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment