Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Synthesis_Modules
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Admin message
GitLab upgrade completed. Current version is 17.11.4.
Show more breadcrumbs
dnarXiv
Synthesis_Modules
Commits
7110c044
Commit
7110c044
authored
1 year ago
by
BOULLE Olivier
Browse files
Options
Downloads
Patches
Plain Diff
buffer is now the reverse complement of a next payload part
parent
3a152da0
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
eBlocks_design.py
+3
-3
3 additions, 3 deletions
eBlocks_design.py
with
3 additions
and
3 deletions
eBlocks_design.py
+
3
−
3
View file @
7110c044
...
...
@@ -170,7 +170,7 @@ def add_bsaI(block_dict: dict, output_path: str = None) -> dict:
def
add_buffer
(
block_dict
:
str
,
output_path
:
str
=
None
)
->
dict
:
"""
add a buffering zone around each block
just pick some payload of an
other block, the buffer will be removed in biology
just pick some payload of another block, the buffer will be removed in biology
buff1 + B1 + buff2
...
buff19
+
B10
+
buff20
...
...
@@ -187,8 +187,8 @@ def add_buffer(block_dict: str, output_path: str = None) -> dict:
for
i
,
frag_name
in
enumerate
(
list
(
block_dict
.
keys
())):
mid_block_index
=
len
(
block_list
[
i
+
1
])
//
2
start_buffer
=
block_list
[
i
+
1
][
mid_block_index
-
buffer_size
:
mid_block_index
-
1
]
stop_buffer
=
block_list
[
i
+
1
][
mid_block_index
:
mid_block_index
+
buffer_size
-
1
]
start_buffer
=
dfr
.
reverse_complement
(
block_list
[
i
+
1
][
mid_block_index
-
buffer_size
:
mid_block_index
-
1
]
)
stop_buffer
=
dfr
.
reverse_complement
(
block_list
[
i
+
1
][
mid_block_index
:
mid_block_index
+
buffer_size
-
1
]
)
#the addition of the buffer can create homopolymere
#set a base different from extremity and start of buffer in between
...
...
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