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
c88c9fed
Commit
c88c9fed
authored
5 years ago
by
Remi PLANEL
Browse files
Options
Downloads
Patches
Plain Diff
One entry per feature
parent
467fc209
No related branches found
No related tags found
No related merge requests found
Pipeline
#23373
passed
5 years ago
Stage: test
Stage: deploy
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
crisprbact/cli.py
+1
-1
1 addition, 1 deletion
crisprbact/cli.py
crisprbact/predict.py
+22
-9
22 additions, 9 deletions
crisprbact/predict.py
pyproject.toml
+1
-1
1 addition, 1 deletion
pyproject.toml
with
24 additions
and
11 deletions
crisprbact/cli.py
+
1
−
1
View file @
c88c9fed
from
crisprbact.predict
import
on_target_predict
from
Bio
import
SeqIO
from
Bio
import
SeqIO
import
click
import
click
from
crisprbact.predict
import
on_target_predict
class
Config
(
object
):
class
Config
(
object
):
...
...
This diff is collapsed.
Click to expand it.
crisprbact/predict.py
+
22
−
9
View file @
c88c9fed
...
@@ -71,16 +71,29 @@ def on_target_predict(seq, genome=None, seed_size=7):
...
@@ -71,16 +71,29 @@ def on_target_predict(seq, genome=None, seed_size=7):
off_target_df
=
compute_off_target_df
(
off_target_df
=
compute_off_target_df
(
target
[
"
guide
"
],
seed_size
,
records
,
genome_features
target
[
"
guide
"
],
seed_size
,
records
,
genome_features
)
)
off_target_list
=
[]
off_targets_list
=
[]
features
=
off_target_df
.
loc
[
0
:,
"
features
"
]
off_targets
=
off_target_df
.
loc
[
for
feat
in
features
:
0
:,
[
"
start
"
,
"
end
"
,
"
pampos
"
,
"
features
"
]
for
x
in
feat
:
]
features_dict
=
{}
for
index
,
off_t
in
enumerate
(
off_targets
.
values
.
tolist
()):
for
k
,
feat
in
x
.
qualifiers
.
items
():
off_target_dict
=
{
"
off_target_start
"
:
off_t
[
0
],
"
off_target_end
"
:
off_t
[
1
],
"
pampos
"
:
off_t
[
2
],
}
for
feat
in
off_t
[
3
]:
feature_dict
=
{
"
feat_strand
"
:
feat
.
location
.
strand
,
"
feat_start
"
:
feat
.
location
.
start
,
"
feat_end
"
:
feat
.
location
.
end
,
"
feat_type
"
:
feat
.
type
,
}
for
k
,
feat
in
feat
.
qualifiers
.
items
():
if
k
!=
"
translation
"
:
if
k
!=
"
translation
"
:
feature
s
_dict
[
k
]
=
"
::
"
.
join
(
feat
)
feature_dict
[
k
]
=
"
::
"
.
join
(
feat
)
off_target_list
.
append
(
feature
s
_dict
)
off_target
s
_list
.
append
(
{
**
feature
_dict
,
**
off_target
_dict
}
)
target
.
update
({
"
off_targets
"
:
off_target_list
})
target
.
update
({
"
off_targets
"
:
off_target
s
_list
})
else
:
else
:
target
.
update
({
"
off_targets
"
:
[]})
target
.
update
({
"
off_targets
"
:
[]})
return
alltargets
return
alltargets
...
...
This diff is collapsed.
Click to expand it.
pyproject.toml
+
1
−
1
View file @
c88c9fed
[tool.poetry]
[tool.poetry]
name
=
"crisprbact"
name
=
"crisprbact"
version
=
"0.
2.1
"
version
=
"0.
3.0
"
license
=
"GPL-3.0"
license
=
"GPL-3.0"
description
=
"Tools to design and analyse CRISPRi experiments"
description
=
"Tools to design and analyse CRISPRi experiments"
authors
=
[
"David Bikard <david.bikard@pasteur.fr>"
,
"Remi Planel <rplanel@pasteur.fr>"
]
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