Entering edit mode
                    11.0 years ago
        mujupas
        
    
        ▴
    
    80
    Hi!
I want to make all the intervals in a series of BED files equal to 1bp by taking the middle position of each interval.
Any suggestion about how to do it (possibly also with GNU Parallel?)
Example:
chr1   150   170   +
I'd like to replace it as:
chr1   160   161   +
Thank you in advance!
Ok, thanks a lot, I'll give it a try!
Thanks, it worked.
The only problem is that now the new 1bp BED files are using spaces as separators and not TAB.
I've tried the following command but it doesn't work in replacing spaces with tabs:
Any idea?
Thanks in advance!