Entering edit mode
geparada88
▴
10
@geparada88-9603
Last seen 7.7 years ago
Hi
I'm trying to make a Granges objet with all the internal exons of the genes annotated in a GTF file. I using this code:
txdb <- makeTxDbFromGFF("./gencode.vM9.chr_patch_hapl_scaff.annotation.gtf.sed", format="gtf")
exons <- exonsBy(txdb, by="tx")
internal_exons <- lapply(exons, function(x) if (length(x)>=3){x[3:length(x)-1] })
But it running really slow, is there any way to make it more efficient?
You are totally right! I was having problems to use internal_exons as a list. Thanks a lot.