I have to do something and I kind of lost.
I have 2 tab delimited text files which contains exons coordinates.
the first fie contains the start coordinates (for example):
NM_032291 chr1 + 66999638 67091529 67098752 67101626 NM_001308203 chr1 + 66999251 66999928 67091529 67098752 67105459 67108492
and the second file - contains the end coordinates:
NM_032291 chr1 + 67000051 67091593 67098777 67101698 NM_001308203 chr1 + 66999355 67000051 67091593 67098777 67105516 67108547
I'd like to have multiple bed files for each exon(for example for the first exon):
chr1 66999638 67000051 NM_032291 length + chr1 66999251 66999355 NM_001308203 length +
each gene contains different number of exons - so the number of the columns is unknown.
I believe there is a very simple way to do it , I'v tried awk but without success.