Off topic:trouble with GRanges
0
0
Entering edit mode
5.2 years ago
Chironex ▴ 40

I have this GRange list. I would to make some manipulation:

GRanges object with 1498791 ranges and 0 metadata columns:
                                                                                                                              seqnames
                                                                                                                                 <Rle>
        [1] KQ415657.1  isolate UCB-OBI-ISO-001 unplaced genomic scaffold Scaffold5, whole genome shotgun sequence
        [2] KQ415657.1 isolate UCB-OBI-ISO-001 unplaced genomic scaffold Scaffold5, whole genome shotgun sequence
        [3] KQ415657.1  isolate UCB-OBI-ISO-001 unplaced genomic scaffold Scaffold5, whole genome shotgun sequence


               ranges strand
            <IRanges>  <Rle>
        [1]   303-309      *
        [2] 1741-1747      *
        [3] 1972-1978      *

I would rename the strings, and also create columns with start and and, and also define the strand. I would have a result like this but I don't know how to change the names of seqnames

       GRanges object with 1498791 ranges and 0 metadata columns:
  seqnames                            ranges           strand
                                      start   end                                                                                                    
 [1] KQ415657.1                       303     309         +
 [2] KQ415657.1                       1741    1747        +
 [3] KQ415657.1                       1972    1978        +

could you help me?

R • 707 views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 3287 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6