Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CRISPRbact
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David BIKARD
CRISPRbact
Commits
aa7ca893
Commit
aa7ca893
authored
5 years ago
by
Remi PLANEL
Browse files
Options
Downloads
Patches
Plain Diff
Add todo
parent
8944ddde
No related branches found
No related tags found
No related merge requests found
Pipeline
#25691
failed
5 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
crisprbact/off_target.py
+3
-0
3 additions, 0 deletions
crisprbact/off_target.py
with
3 additions
and
0 deletions
crisprbact/off_target.py
+
3
−
0
View file @
aa7ca893
...
@@ -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
))
)
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment