Skip to content

Commit

Permalink
finish up genomicranges section
Browse files Browse the repository at this point in the history
  • Loading branch information
jkanche committed Jan 12, 2024
1 parent c1f4a09 commit cdb2495
Show file tree
Hide file tree
Showing 6 changed files with 167 additions and 64 deletions.
4 changes: 3 additions & 1 deletion _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ book:
- part: chapters/representations/index.qmd
chapters:
- chapters/representations/biocframe.qmd
- chapters/representations/iranges.qmd
- chapters/representations/genomicranges.qmd
- part: chapters/extras/index.qmd
chapters:
- chapters/extras/iranges.qmd
- chapters/summary.qmd
- chapters/references.qmd

Expand Down
1 change: 1 addition & 0 deletions chapters/extras/index.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Additional packages
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# `IRanges`: Interval arithmetic
# `IRanges`: Interval arithmetic {.unnumbered}

Python implementation of the [**IRanges**](https://bioconductor.org/packages/IRanges) Bioconductor package.

An `IRanges` holds a **start** position and a **width**, and is typically used to represent coordinates along a genomic sequence. The interpretation of the **start** position depends on the application; for sequences, the **start** is usually a 1-based position, but other use cases may allow zero or even negative values, e.g., circular genomes.

## Installation
`IRanges` uses [nested containment lists](https://github.com/pyranges/ncls) under the hood to perform fast overlap and search based operations.

## Installation {#sec-iranges}
To get started, install the package from [PyPI](https://pypi.org/project/IRanges/)

```bash
Expand Down Expand Up @@ -171,6 +174,8 @@ intersection = x.intersect(y)
print(intersection)
```

----

## Further reading

- [IRanges reference](https://biocpy.github.io/IRanges/api/iranges.html#iranges-package)
Expand Down
4 changes: 2 additions & 2 deletions chapters/representations/biocframe.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ print(out)

## Extracting data

BiocPy classes follow a functional paradigm for accessing or setting properties, with further details available in [@sec-functional].
BiocPy classes follow a functional paradigm for accessing or setting properties, with further details discussed in [functional paragidm](@sec-functional) section.

Properties can be directly accessed from the object:

Expand Down Expand Up @@ -366,7 +366,7 @@ print("\nSubsetting an empty BiocFrame: \n", subset_empty)

----

## Notes
## Further reading

Check out [the reference documentation](https://biocpy.github.io/BiocFrame/) for more details.

Expand Down
Loading

0 comments on commit cdb2495

Please sign in to comment.