<jupyter_start><jupyter_text>We generate random sequence parts for the example assembly:<jupyter_code>import os
os.system('mkdir files')
import dnachisel
part_records = {}
part_data = {
    'p1': 79,
    'p2': 25,
    'pCL': 9,
    'p12': 25,
    'p13': 9,
    'p14': 30,
    'p15': 60,
    'p16': 15,
    'p17': 9,
    'p18': 30,
    'pSV': 60,
    'p22': 15,
    'pWZ': 21,
}
for part, length in part_data.items():
    seq_str = dnachisel.biotools.random_dna_sequence(length)
    
    problem = dnachisel.DnaOptimizationProblem(
    sequence=seq_str,
    constraints=[dnachisel.AvoidPattern("BsmBI_site"),],
    )

    problem.resolve_constraints()

    seq_record = dnachisel.biotools.sequence_to_biopython_record(problem.sequence, id=part, name=part)
    part_records[part] = seq_record

import easy_dna
for part, record in part_records.items():
    filename = part + '.gb'
    path = os.path.join('files', filename)
    easy_dna.write_record(record, target=path)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13941825476429287, 'fraction_numerical': 0.041123370110330994, 'mean_word_length': 3.821256038647343, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '14835', 'license': 'MIT', 'n_tokens_mistral': 423, 'n_tokens_neox': 380, 'n_words': 75, 'path': 'SeqFlipper/files.ipynb', 'repo_name': 'Edinburgh-Genome-Foundry/Examples', 'size': '997'}