Entering edit mode
2.8 years ago
Kai_Qi
▴
130
Hi:
I have an output file from IRFinder to compare intron retention. It contains the chromosome, strand, intron start site, intron end site.
Now I would like to get the coordinates of the upstream/downstream exon starting and ending site. If there a way to get it done?
Thanks, Kai
If you have coordinates you could take a GTF file, extract only the exons, and then use something like
bedtools closest
to get the closest exons.I have used the following ways to sort the exons:
Then I have convert the csv files into bed file and using my intron containing bedfile to finish the bedtools closest command:
The exons coordinates I used is:
Then I typed:
my aim is too get a file like this:
Where is the problem of my code so that I got an error?
Thanks
I think the error is clear, your file is not properly sorted. Use either
bedtools sort
orsort -k1,1 -k2,2n
to do that.