Entering edit mode
Is this expected?
> gns <- genes(TxDb.Mmusculus.UCSC.mm10.knownGene) > gns2 <- keepStandardChromosomes(gns) > seqlevels(gns) [1] "chr1" "chr2" "chr3" [4] "chr4" "chr5" "chr6" [7] "chr7" "chr8" "chr9" [10] "chr10" "chr11" "chr12" [13] "chr13" "chr14" "chr15" [16] "chr16" "chr17" "chr18" [19] "chr19" "chrX" "chrY" [22] "chrM" "chr1_GL456210_random" "chr1_GL456211_random" [25] "chr1_GL456212_random" "chr1_GL456213_random" "chr1_GL456221_random" [28] "chr4_GL456216_random" "chr4_GL456350_random" "chr4_JH584292_random" [31] "chr4_JH584293_random" "chr4_JH584294_random" "chr4_JH584295_random" [34] "chr5_GL456354_random" "chr5_JH584296_random" "chr5_JH584297_random" [37] "chr5_JH584298_random" "chr5_JH584299_random" "chr7_GL456219_random" [40] "chrX_GL456233_random" "chrY_JH584300_random" "chrY_JH584301_random" [43] "chrY_JH584302_random" "chrY_JH584303_random" "chrUn_GL456239" [46] "chrUn_GL456359" "chrUn_GL456360" "chrUn_GL456366" [49] "chrUn_GL456367" "chrUn_GL456368" "chrUn_GL456370" [52] "chrUn_GL456372" "chrUn_GL456378" "chrUn_GL456379" [55] "chrUn_GL456381" "chrUn_GL456382" "chrUn_GL456383" [58] "chrUn_GL456385" "chrUn_GL456387" "chrUn_GL456389" [61] "chrUn_GL456390" "chrUn_GL456392" "chrUn_GL456393" [64] "chrUn_GL456394" "chrUn_GL456396" "chrUn_JH584304" > seqlevels(gns2) [1] "chrX" "chrM" "chr4" "chr1" "chr2" "chr3" "chr5" "chr6" "chr7" [10] "chr8" "chr9" "chr10" "chr11" "chr12" "chr13" "chr14" "chr15" "chr16" [19] "chr17" "chr18" "chr19" "chrY"
I expected that the seqlevels for gns2 would retain the ordering of the original GRanges object.
Thanks,
Jim
Hi Sonali,
You are using the latest devel version. I have the latest release version.