Cutting part of a column in a bed file
1
0
Entering edit mode
6.4 years ago

Hello everyone!! I have the whole first column of a bed file (its a genome annotation file) that I want to cut a part of the text. I have "chr12" or whatever chr+number, but I need it to be only the number of the chromosome (like "12"). How can I correct that? if it is with sed, which command should I use?

I have:

chr1    123456  123789
chr1    123790  123890
chr1    123891  124569

I need:

1   123456  123789
1   123790  123890
1   123891  124569

Thanks everyone!!

bed edit cut • 2.4k views
ADD COMMENT
3
Entering edit mode
ADD COMMENT
0
Entering edit mode

ok, thanks a lot!!!!!!

ADD REPLY

Login before adding your answer.

Traffic: 2217 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6