How can I number all exons and then subsequently subdivide all exons into bins in a GFF file?
0
0
Entering edit mode
4.4 years ago
lasra • 0

I have a GFF file that looks something like this:

Chr1 exon 100 200 + parent=gene_1

Chr1 exon 400 500 + parent=gene_1

Chr1 exon 1000 2000 + parent=gene_2

Chr1 exon 4000 5000 + parent=gene_2

I need to renumber the exons and divide them into bins--similar to the example below this. In this example, I am dividing them into 2 bins per exon:

Chr1 exon_1 bin_1 100 150 + parent=gene_1

Chr1 exon_1 bin_2 151 200 + parent=gene_1

Chr1 exon_2 bin_1 400 450 + parent=gene_1

Chr1 exon_2 bin_2 451 500 + parent=gene_1

Chr1 exon_1 bin_1 1000 1500 + parent=gene_2

Chr1 exon_1 bin_2 1501 2000 + parent=gene_2

Chr1 exon_2 bin_1 4000 4500 + parent=gene_2

Chr1 exon_2 bin_2 4501 5000 + parent=gene_2

I am trying to make a plot showing the spatial distribution of methylation across exons, introns, etc in my genome (similar to Fig1F). I'll edit my original post to add this in there.

Does anyone know how I can transform a regular GFF file where you both number and subdivide features (in this case, exons)? I am fairly new to bioinformatics, and I am not sure where to start. I appreciate any advice. Thanks!

WGBS ChIP-Seq • 671 views
ADD COMMENT
1
Entering edit mode

Can you add some context for why you want to do this? Perhaps there can be an alternate easier solution that can be suggested.

ADD REPLY
0
Entering edit mode

Sure and thanks.

I am trying to make a plot showing the spatial distribution of methylation across exons, introns, etc in my genome (similar to Fig1 F). I'll edit my original post to add this in there.

ADD REPLY

Login before adding your answer.

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