Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 7110c044 authored by BOULLE Olivier's avatar BOULLE Olivier
Browse files

buffer is now the reverse complement of a next payload part

parent 3a152da0
Branches
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment