How to include strand information in the result when running bedtools complement?
1
0
Entering edit mode
9.8 years ago
biolab ★ 1.4k

Hi everyone,

I am using bedtools complement to find the regions not covered in a GFF file.

Genome file is as follows.

chr1    12222

GFF file likes below.

chr1    db      exon    1       45      .       +       .       ID=gene1
chr1    db      exon    90      450     .       +       .       ID=gene2
chr1    db      exon    1       30      .       -       .       ID=gene99

I run complementBed -i <gff_file> -g <genome_file> and got the following result.

chr1    45      89
chr1    450     12222

This is not what I expected. I hope to get the following information, which includes strand symbol. Could anyone help? Thank you very much!

chr1    45      89       +
chr1    450     12222    + 
chr1    30      12222    -
bedtools • 2.7k views
ADD COMMENT
2
Entering edit mode
9.8 years ago
iraun 6.2k

Sorry but this is the same question you asked some time ago? problem with bedtools complement: how to extract strand information?

ADD COMMENT
0
Entering edit mode

Hi airan, thank you for your comment. Too bad memory I have :) I will separate the strands and then do bedtools.

ADD REPLY
0
Entering edit mode

No problem :)

ADD REPLY

Login before adding your answer.

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