Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the docs #33

Merged
merged 6 commits into from
Feb 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Copyright (C) 2024 Roberto Rossini <roberros@uio.no>
#
# SPDX-License-Identifier: MIT

cff-version: 1.2.0
message: 'If you use this software, please cite it using the metadata from this file.'
authors:
- given-names: Roberto
family-names: Rossini
orcid: 'https://orcid.org/0000-0003-3096-1470'
email: roberros@uio.no
affiliation: 'Department of Biosciences, University of Oslo'
title: hictkpy
abstract: 'Python bindings for hictk.'
doi: '10.5281/zenodo.8220299'
url: 'https://github.com/paulsengroup/hictkpy'
repository-code: 'https://github.com/paulsengroup/hictkpy'
type: software
license: MIT
preferred-citation:
type: article
authors:
- given-names: Roberto
family-names: Rossini
orcid: 'https://orcid.org/0000-0003-3096-1470'
email: roberros@uio.no
affiliation: 'Department of Biosciences, University of Oslo'
- given-names: Jonas
family-names: Paulsen
orcid: 'https://orcid.org/0000-0002-7918-5495'
email: jonas.paulsen@ibv.uio.no
affiliation: 'Department of Biosciences, University of Oslo'
doi: '10.1101/2023.11.26.568707'
url: 'https://doi.org/10.1101/2023.11.26.568707'
journal: 'Cold Spring Harbor Laboratory'
year: 2023
month: 11
title: 'hictk: blazing fast toolkit to work with .hic and .cool files'
abstract: 'We developed hictk, a toolkit that can transparently operate on .hic and .cool files with excellent performance. The toolkit is written in C++ and consists of a C++ library with Python bindings as well as CLI tools to perform common operations directly from the shell, including converting between .hic and .mcool formats. We benchmark the performance of hictk and compare it with other popular tools and libraries. We conclude that hictk significantly outperforms existing tools while providing the flexibility of natively working with both file formats without code duplication.'
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,23 @@ The complete documentation for hictkpy API is available [here](https://hictkpy.r

If you use hictkpy in you reaserch, please cite the following publication:

Preprint available soon.
Roberto Rossini, Jonas Paulsen hictk: blazing fast toolkit to work with .hic and .cool files.
_bioRxiv_ __2023.11.26.568707__. [https://doi.org/10.1101/2023.11.26.568707](https://doi.org/10.1101/2023.11.26.568707)

<details>
<summary>BibTex</summary>

```bibtex
@misc{hictk,
author = {Roberto Rossini},
year = {2023},
note = {https://github.com/paulsengroup/hictk},
title = {hictk: blazing fast toolkit to work with .hic and .cool files}
@article {hictk,
author = {Roberto Rossini and Jonas Paulsen},
title = {hictk: blazing fast toolkit to work with .hic and .cool files},
elocation-id = {2023.11.26.568707},
year = {2023},
doi = {10.1101/2023.11.26.568707},
publisher = {Cold Spring Harbor Laboratory},
URL = {https://www.biorxiv.org/content/early/2023/11/27/2023.11.26.568707},
eprint = {https://www.biorxiv.org/content/early/2023/11/27/2023.11.26.568707.full.pdf},
journal = {bioRxiv}
}
```

Expand Down
26 changes: 9 additions & 17 deletions docs/hictkpy.rst → docs/api/cooler.rst
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
..
Copyright (C) 2024 Roberto Rossini <roberros@uio.no>
SPDX-License-Identifier: MIT

Python API
==========

.. py:module:: hictkpy
.. py:currentmodule:: hictkpy


.. autofunction:: is_cooler

.. autofunction:: is_hic

.. autoclass:: File
:members:
:special-members: __init__

.. autoclass:: PixelSelector
:members:
Cooler API
##########

.. py:module:: hictkpy.cooler
.. py:currentmodule:: hictkpy.cooler
Expand All @@ -27,3 +15,7 @@ Python API
.. autoclass:: SingleCellFile
:members:
:special-members: __init__

.. autoclass:: FileWriter
:members:
:special-members: __init__
21 changes: 21 additions & 0 deletions docs/api/generic.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
..
Copyright (C) 2024 Roberto Rossini <roberros@uio.no>
SPDX-License-Identifier: MIT

Generic API
===========

.. py:module:: hictkpy
.. py:currentmodule:: hictkpy


.. autofunction:: is_cooler

.. autofunction:: is_hic

.. autoclass:: File
:members:
:special-members: __init__

.. autoclass:: PixelSelector
:members:
13 changes: 13 additions & 0 deletions docs/api/hic.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
..
Copyright (C) 2024 Roberto Rossini <roberros@uio.no>
SPDX-License-Identifier: MIT

Hi-C API
########

.. py:module:: hictkpy.hic
.. py:currentmodule:: hictkpy.hic

.. autoclass:: FileWriter
:members:
:special-members: __init__
15 changes: 15 additions & 0 deletions docs/api/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
..
Copyright (C) 2024 Roberto Rossini <roberros@uio.no>
SPDX-License-Identifier: MIT

Python API Reference
####################

hictkpy API is structured as follows:

.. toctree::
:maxdepth: 1

generic
cooler
hic
20 changes: 12 additions & 8 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,17 @@ discourse:

.. code-block:: bibtex

@misc{hictk,
author = {Roberto Rossini},
year = {2023},
note = {https://github.com/paulsengroup/hictk},
title = {hictk: blazing fast toolkit to work with .hic and .cool files}
}

@article {hictk,
author = {Roberto Rossini and Jonas Paulsen},
title = {hictk: blazing fast toolkit to work with .hic and .cool files},
elocation-id = {2023.11.26.568707},
year = {2023},
doi = {10.1101/2023.11.26.568707},
publisher = {Cold Spring Harbor Laboratory},
URL = {https://www.biorxiv.org/content/early/2023/11/27/2023.11.26.568707},
eprint = {https://www.biorxiv.org/content/early/2023/11/27/2023.11.26.568707.full.pdf},
journal = {bioRxiv}
}

.. only:: not latex

Expand All @@ -62,4 +66,4 @@ discourse:
:caption: API Reference
:maxdepth: 1

hictkpy
api/index