add strand info to a bed file
1
0
Entering edit mode
8.8 years ago
bioguy24 ▴ 230

Is there a script/tool that can add strand (+/-) information to the fourth column of a bed file? I have a bed file (first few lines below) of 45,000 targets each chromosome, start, and stop. Thank you :).

Target Bed

chr1    955542    955763
chr1    957570    957852
chr1    976034    976270
picard • 3.4k views
ADD COMMENT
3
Entering edit mode
8.8 years ago
sed 's/$/\t+/' < input.bed > output.bed
ADD COMMENT
0
Entering edit mode

Works great... thank you :)

As I am learning these techniques do you mind briefly explaining how this works? Thank you very much.

ADD REPLY
1
Entering edit mode
ADD REPLY

Login before adding your answer.

Traffic: 2136 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