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
bb240b9c
Commit
bb240b9c
authored
5 years ago
by
Remi PLANEL
Browse files
Options
Downloads
Patches
Plain Diff
Can set seed size
parent
4882f642
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#23258
passed
5 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
crisprbact/predict.py
+4
-2
4 additions, 2 deletions
crisprbact/predict.py
pyproject.toml
+1
-1
1 addition, 1 deletion
pyproject.toml
with
5 additions
and
3 deletions
crisprbact/predict.py
+
4
−
2
View file @
bb240b9c
...
...
@@ -43,7 +43,7 @@ def find_targets(seq):
)
def
on_target_predict
(
seq
,
genome
=
None
):
def
on_target_predict
(
seq
,
genome
=
None
,
seed_size
=
7
):
seq
=
seq
.
upper
()
# make uppercase
seq
=
re
.
sub
(
r
"
\s
"
,
""
,
seq
)
# removes white space
...
...
@@ -63,11 +63,13 @@ def on_target_predict(seq, genome=None):
)
X
=
X
.
reshape
(
X
.
shape
[
0
],
-
1
)
preds
=
predict
(
X
)
for
i
,
target
in
enumerate
(
alltargets
):
target
.
update
({
"
pred
"
:
preds
[
i
]})
target
.
update
({
"
seed_size
"
:
seed_size
})
if
genome
:
off_target_df
=
compute_off_target_df
(
target
[
"
guide
"
],
7
,
records
,
genome_features
target
[
"
guide
"
],
seed_size
,
records
,
genome_features
)
off_target_list
=
[]
features
=
off_target_df
.
loc
[
0
:,
"
features
"
]
...
...
This diff is collapsed.
Click to expand it.
pyproject.toml
+
1
−
1
View file @
bb240b9c
[tool.poetry]
name
=
"crisprbact"
version
=
"0.2.
0
"
version
=
"0.2.
1
"
license
=
"GPL-3.0"
description
=
"Tools to design and analyse CRISPRi experiments"
authors
=
[
"David Bikard <david.bikard@pasteur.fr>"
,
"Remi Planel <rplanel@pasteur.fr>"
]
...
...
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