Hi everyone,
I'd like to extract intronic sequences for my study species using R. For that, I was planning to use the GenomicFeatures
package. I got to the point when I have a GRanges
object that I produced using intronicParts(
) which, I suppose, contains intron ranges. How should I proceed to get intron sequences in a fasta format? I did not find an answer in the manual: https://bioconductor.org/packages/release/bioc/manuals/GenomicFeatures/man/GenomicFeatures.pdf
Thank you in advance!
getSeq will return a Biostrings object, which you can save as a fasta using
Biostrings::writeXStringSet
, if you want to skip using seqinr.Hi! I tried using
getSeq
but got the following error:Isn't this weird given it requires an
XStringSet
object?I don't know what to do about the error.
As a workaround, you can also do something like this:
Thank you! Works well after adapting to my case.