How To Use Bedtools Windows To Overlap Upstream For Positive Strand Strand
1
0
Entering edit mode
8.5 years ago
roll ▴ 330

Hi,

I am trying to use bedtools windows. It has been explained in the manual of the bedtools but I am still bit confused and thought a confirmation would be good. And I have no biological background.

I have divided my bedfile into two, based on the strand information(For example, posStrand.bed and negStrand.bed).

I would like to screen overlaps of LINEs within 5000bp upstream of my postStrand.bed file.

  1. In this case shall I use -l or -r option from bedtools window?
  2. since all are on + strand, do I need to use the -sw option?
bedtools strand windows • 3.7k views
ADD COMMENT
0
Entering edit mode
8.5 years ago

genome coordinates are always the same, it's you who decide whether to move in the increasing or in the decreasing direction. if you have already split your bedfile into positive and negative strand coordinates, and considering that the positive strand moves from 5' to 3' and that upstream is strictly moving in the 5' direction, if you are interested in upstream only windows you should use the -l (left coordinates) option with posStrand.bed and the -r (right coordinates) option with negStrand.bed. the -sw option is just a way of defining the same window to the left and to the right at the same time, which is not what you're looking for.

ADD COMMENT
0
Entering edit mode

thank you, this is great

ADD REPLY

Login before adding your answer.

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