@@ -424,27 +424,27 @@ by pairing (overlapping) CDS and exon intervals with the same ``Parent`` value:
424424 index | Chromosome Start End Strand Feature
425425 int64 | str int64 int64 str category
426426 ------- --- --------------------- ------- ------- -------- ----------
427- 0 | rna-DGYR_LOCUS13733 1 382 + CDS
428- 1 | rna-DGYR_LOCUS13734 258 484 + CDS
429- 2 | rna-DGYR_LOCUS13734 484 625 + CDS
430- 3 | rna-DGYR_LOCUS13734 625 798 + CDS
427+ 4 | rna-DGYR_LOCUS13733 1 382 + CDS
428+ 11 | rna-DGYR_LOCUS13734 258 484 + CDS
429+ 12 | rna-DGYR_LOCUS13734 484 625 + CDS
430+ 13 | rna-DGYR_LOCUS13734 625 798 + CDS
431431 ... | ... ... ... ... ...
432- 52 | rna-DGYR_LOCUS12552-2 139 237 + CDS
433- 53 | rna-DGYR_LOCUS12552-2 237 337 + CDS
434- 54 | rna-DGYR_LOCUS12552-2 337 520 + CDS
435- 55 | rna-DGYR_LOCUS12552-2 520 640 + CDS
432+ 146 | rna-DGYR_LOCUS12552-2 139 237 + CDS
433+ 147 | rna-DGYR_LOCUS12552-2 237 337 + CDS
434+ 148 | rna-DGYR_LOCUS12552-2 337 520 + CDS
435+ 149 | rna-DGYR_LOCUS12552-2 520 640 + CDS
436436 PyRanges with 56 rows, 5 columns, and 1 index columns.
437437 Contains 17 chromosomes and 1 strands.
438438
439439 >>> cds_local[cds_local.Chromosome == some_id]
440440 index | Chromosome Start End Strand Feature
441441 int64 | str int64 int64 str category
442442 ------- --- --------------------- ------- ------- -------- ----------
443- 51 | rna-DGYR_LOCUS12552-2 97 139 + CDS
444- 52 | rna-DGYR_LOCUS12552-2 139 237 + CDS
445- 53 | rna-DGYR_LOCUS12552-2 237 337 + CDS
446- 54 | rna-DGYR_LOCUS12552-2 337 520 + CDS
447- 55 | rna-DGYR_LOCUS12552-2 520 640 + CDS
443+ 145 | rna-DGYR_LOCUS12552-2 97 139 + CDS
444+ 146 | rna-DGYR_LOCUS12552-2 139 237 + CDS
445+ 147 | rna-DGYR_LOCUS12552-2 237 337 + CDS
446+ 148 | rna-DGYR_LOCUS12552-2 337 520 + CDS
447+ 149 | rna-DGYR_LOCUS12552-2 520 640 + CDS
448448 PyRanges with 5 rows, 5 columns, and 1 index columns.
449449 Contains 1 chromosomes and 1 strands.
450450
@@ -454,30 +454,30 @@ With the similar logic, we can easily map the start and stop codon positions to
454454 index | Chromosome Start End Strand Feature
455455 int64 | str int64 int64 str str
456456 ------- --- --------------------- ------- ------- -------- ---------
457- 0 | rna-DGYR_LOCUS13733 1 4 + start
458- 1 | rna-DGYR_LOCUS13734 258 261 + start
459- 2 | rna-DGYR_LOCUS13734 484 487 + start
460- 3 | rna-DGYR_LOCUS13734 625 628 + start
457+ 4 | rna-DGYR_LOCUS13733 1 4 + start
458+ 11 | rna-DGYR_LOCUS13734 258 261 + start
459+ 12 | rna-DGYR_LOCUS13734 484 487 + start
460+ 13 | rna-DGYR_LOCUS13734 625 628 + start
461461 ... | ... ... ... ... ...
462- 52 | rna-DGYR_LOCUS12552-2 139 142 + start
463- 53 | rna-DGYR_LOCUS12552-2 237 240 + start
464- 54 | rna-DGYR_LOCUS12552-2 337 340 + start
465- 55 | rna-DGYR_LOCUS12552-2 520 523 + start
462+ 146 | rna-DGYR_LOCUS12552-2 139 142 + start
463+ 147 | rna-DGYR_LOCUS12552-2 237 240 + start
464+ 148 | rna-DGYR_LOCUS12552-2 337 340 + start
465+ 149 | rna-DGYR_LOCUS12552-2 520 523 + start
466466 PyRanges with 56 rows, 5 columns, and 1 index columns.
467467 Contains 17 chromosomes and 1 strands.
468468
469469 >>> cds.slice_ranges(- 3 ).assign(Feature = ' stop' ).map_to_local(exons, ref_on = ' Parent' , match_by = ' Parent' )
470470 index | Chromosome Start End Strand Feature
471471 int64 | str int64 int64 str str
472472 ------- --- --------------------- ------- ------- -------- ---------
473- 0 | rna-DGYR_LOCUS13733 379 382 + stop
474- 1 | rna-DGYR_LOCUS13734 481 484 + stop
475- 2 | rna-DGYR_LOCUS13734 622 625 + stop
476- 3 | rna-DGYR_LOCUS13734 795 798 + stop
473+ 4 | rna-DGYR_LOCUS13733 379 382 + stop
474+ 11 | rna-DGYR_LOCUS13734 481 484 + stop
475+ 12 | rna-DGYR_LOCUS13734 622 625 + stop
476+ 13 | rna-DGYR_LOCUS13734 795 798 + stop
477477 ... | ... ... ... ... ...
478- 52 | rna-DGYR_LOCUS12552-2 234 237 + stop
479- 53 | rna-DGYR_LOCUS12552-2 334 337 + stop
480- 54 | rna-DGYR_LOCUS12552-2 517 520 + stop
481- 55 | rna-DGYR_LOCUS12552-2 637 640 + stop
478+ 146 | rna-DGYR_LOCUS12552-2 234 237 + stop
479+ 147 | rna-DGYR_LOCUS12552-2 334 337 + stop
480+ 148 | rna-DGYR_LOCUS12552-2 517 520 + stop
481+ 149 | rna-DGYR_LOCUS12552-2 637 640 + stop
482482 PyRanges with 56 rows, 5 columns, and 1 index columns.
483483 Contains 17 chromosomes and 1 strands.
0 commit comments