Cleaning bed and wig files

This script removes transposon insertions in .bed and .wig files that were mapped outside the chromosomes, creates consistent naming for chromosomes and change the header of files with custom headers.

How to use the code in the same script


#%%
if __name__ == '__main__':
        cleanfiles(filepath=filepath, custom_header=custom_header, split_chromosomes=split_chromosomes)