Sorry if I'm asking a stupid question...
I'm trying to get sequences from a data frame "DINU" which contains chromosome name, start, and end positions. I have run it in R using windows before, and it works perfectly. But somehow because of the format of chromosome name, it doesn't work in Mac. Here is my scripts.
> subseq(DINU$Chr[i],start=200,end=400)
Error in .Call2("solve_user_SEW", refwidths, start, end, width, translate.negative.coord, :
solving row 1: 'allow.nonnarrowing' is FALSE and the supplied start (200) is > refwidth + 1
> subseq(chr2L,start=200,end=400)
201-letter "DNAString" instance
seq: ATTGCAACGTTAAATACAGCACAATATATGATCG...TATGATCGCGTATGCGAGAGTAGTGCCAACATAT
> DINU$Chr[i]
[1] "chr2L"
As its shown, the function cannot recognize chromosome name from the data frame, but the format is a character as it required in its description.
> class(DINU$Chr[i])
[1] "character"
Thank you for any idea in advance