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
f839029b
Commit
f839029b
authored
5 years ago
by
Remi PLANEL
Browse files
Options
Downloads
Patches
Plain Diff
Change function name from gen_off_targets_convert to gen_off_targets_dict_list
parent
db1ea7ac
No related branches found
No related tags found
No related merge requests found
Pipeline
#28706
passed
5 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
crisprbact/predict.py
+2
-2
2 additions, 2 deletions
crisprbact/predict.py
with
2 additions
and
2 deletions
crisprbact/predict.py
+
2
−
2
View file @
f839029b
...
@@ -157,7 +157,7 @@ def gen_off_target_per_seed_size(
...
@@ -157,7 +157,7 @@ def gen_off_target_per_seed_size(
)
)
if
off_target_df
is
not
None
and
not
off_target_df
.
empty
:
if
off_target_df
is
not
None
and
not
off_target_df
.
empty
:
off_targets
=
slice_off_targets_results
(
off_target_df
)
off_targets
=
slice_off_targets_results
(
off_target_df
)
off_targets_list
=
gen_off_targets_
conver
t
(
off_targets_list
=
gen_off_targets_
dict_lis
t
(
target_id
,
seed_size
,
off_targets
target_id
,
seed_size
,
off_targets
)
)
yield
{
yield
{
...
@@ -173,7 +173,7 @@ def gen_off_target_per_seed_size(
...
@@ -173,7 +173,7 @@ def gen_off_target_per_seed_size(
}
}
def
gen_off_targets_
conver
t
(
target_id
,
seed_size
,
off_targets
):
def
gen_off_targets_
dict_lis
t
(
target_id
,
seed_size
,
off_targets
):
for
j
,
off_t
in
enumerate
(
off_targets
):
for
j
,
off_t
in
enumerate
(
off_targets
):
off_target_dict
=
{
off_target_dict
=
{
"
off_target_id
"
:
str
(
target_id
)
+
"
-
"
+
str
(
seed_size
)
+
"
-
"
+
str
(
j
),
"
off_target_id
"
:
str
(
target_id
)
+
"
-
"
+
str
(
seed_size
)
+
"
-
"
+
str
(
j
),
...
...
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