Get upstream and downstream exon's starting site and ending site of an retained introns
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
• 1,686 views
•
link
0 answers
No answers yet.
Log in to answer this question.
If you have coordinates you could take a GTF file, extract only the exons, and then use something like
bedtools closestto 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 sortorsort -k1,1 -k2,2nto do that.