Thanks for the code modification Ying. After running it, I got the following warning messages (five times - presumably one for each of my 5 samples):
Warning messages: 1: In .Seqinfo.mergexy(x, y) : Each of the 2 combined objects has sequence levels not in the other: - in 'x': Chromosome - in 'y': NC_016810.1 Make sure to always combine/compare objects based on the same reference genome (use suppressWarnings() to suppress this warning).
cross posted on SE: http://seqanswers.com/forums/showthread.php?t=35329
Post is no longer on SE: http://seqanswers.com/forums/showthread.php?t=35329
Have you tried just doing
parents <- elementMetadata(gffsub)$Parent). Anyway, you're not creating an actual dataframe, which would seem to be the root of your problem.as a sidenote,
mcols()will do the same thing aselementMetadata()Thanks guys!
I have tried mcols and Parents <- elementMetadata(gffsub)$Parent;
Going further using the following code threw errors (obviously because countDF = NULL):