<jupyter_start><jupyter_text>Not organized<jupyter_code>with cd(os.path.join(PATH_ENSEMBLES, ens, 'dmr')):
    f = 'dmr_allc_merged_mCG_cluster_mCHmCG_lv_npc50_k30_rms_results_collapsed.tsv.DMR.bed'
    df_bed = pd.read_table(f, header=None, names=['chr', 'start', 'end', 'num_dms'])
print(df_bed.shape)
df_bed.head()
df_out = df_bed[df_bed['num_dms']>=20]
with cd(os.path.join(PATH_ENSEMBLES, ens, 'dmr')):
    df_out.to_csv('dmr_allc_merged_mCG_cluster_mCHmCG_lv_npc50_k30_rms_results_collapsed_20dms.tsv.DMR.bed', 
                 sep='\t', na_rep='NA', header=False, index=False)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.15472312703583063, 'fraction_numerical': 0.019543973941368076, 'mean_word_length': 7.2, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '9343', 'license': 'MIT', 'n_tokens_mistral': 290, 'n_tokens_neox': 281, 'n_words': 27, 'path': '.ipynb_checkpoints/dmr_round3-checkpoint.ipynb', 'repo_name': 'mukamel-lab/SingleCellFusion_EnhancerPaper', 'size': '614'}