This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Finding downstream Gene Closest To A Given Location

Hi,

I am trying to find genes closest only downstream to a bed file. I am using

bedtools closest -d  -a Seq.bed -b Bed_GTF_neg.bed 

but it is giving me both upstream and downstream regions, is there anyway to get only the downstream regions?

Thanks!

closest bed bedtools gene

1 answer

From the BEDtools 'closest' webpage:

-iu = ignore upstream

Log in to answer this question.