Skip to content

Commit

Permalink
Merge pull request #132 from BIH-CEI/19-improve-gh-pages-doc-further
Browse files Browse the repository at this point in the history
finally it worksss
  • Loading branch information
frehburg authored Oct 2, 2024
2 parents 4266a41 + 7893f0d commit 1081663
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 30 deletions.
14 changes: 5 additions & 9 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
.. phenopacket_mapper documentation master file, created by
sphinx-quickstart on Mon Jul 22 10:25:34 2024.
.. Phenopacket Mapper documentation master file, created by
sphinx-quickstart on Thu Jan 01 2024.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
===========================
Phenopacket Mapper
===========================
The documentation is structured as follows:
Welcome to Phenopacket Mapper's documentation!
===============================================

.. toctree::
:maxdepth: 2
:caption: Contents:
:numbered:

installation
quickstart

apidocs/modules

Indices and tables
==================
Expand Down
10 changes: 3 additions & 7 deletions docs/installation.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
Installation
============

This file is still a work in progress.
To install the phenopacket_mapper library, run:

.. toctree::
:maxdepth: 2
:caption: Contents:
:numbered:
.. code-block:: bash
installation
quickstart
pip install phenopacket_mapper
13 changes: 6 additions & 7 deletions docs/quickstart.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
Quickstart
==========

This file is still a work in progress.
This is a quickstart guide to help you get started with phenopacket_mapper.

.. toctree::
:maxdepth: 2
:caption: Contents:
:numbered:
Step 1: Do this...

installation
quickstart
.. code-block:: python
from phenopacket_mapper import preprocess
preprocess(...)
7 changes: 3 additions & 4 deletions src/phenopacket_mapper/data_standards/data_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,9 @@ def preprocess(
value to it. E.g.:
```python
def preprocess_method(values, method, **kwargs):
...
field1, field2 = values
# do something with values
return "preprocessed_values" + kwargs["arg1"] + kwargs["arg2"]
field1, field2 = values
# do something with values
return "preprocessed_values" + kwargs["arg1"] + kwargs["arg2"]
dataset.preprocess(["field_1", "field_2"], preprocess_method, arg1="value1", arg2="value2")
```
Expand Down
5 changes: 2 additions & 3 deletions src/phenopacket_mapper/mapping/mapper.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
from typing import List, Union, Dict

from phenopackets import Phenopacket
from phenopackets.schema.v2.core.base_pb2 import OntologyClass

from phenopacket_mapper.data_standards import CodeSystem, Coding
from phenopacket_mapper.data_standards.data_model import DataModel, DataSet, DataField, DataFieldValue
from phenopacket_mapper.data_standards import CodeSystem
from phenopacket_mapper.data_standards.data_model import DataModel, DataSet, DataField
from phenopacket_mapper.mapping import PhenopacketElement, map_single


Expand Down

0 comments on commit 1081663

Please sign in to comment.