Skip to content

Commit

Permalink
fixed incorrect headers
Browse files Browse the repository at this point in the history
  • Loading branch information
lweber21 committed Aug 12, 2024
1 parent 85c12f0 commit 7c15716
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/setup/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ IGHA2
!!! note "isotype labeling"
Be sure that the labels used in the encoding file exactly match the labeling syntax in the input data. There is no standard convention for isotype labels, e.g., IgM, M, IghM and IGHM, and therefore the convention must be provided by the user.

### Output
#### Output

The main output from the `preprocess` sub-command is the a pickled dictionary storing `Clonotype` objects for each retained clonotype in the data. This output file will be used as the input to the `fit` sub-command.


### Example
#### Example

Here is an example of how to run the preprocess sub-command.

Expand Down
5 changes: 3 additions & 2 deletions docs/setup/package.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ Specifically, in the above examples `best_trees` is a dictionary, with clonotype

A B cell lineage tree for tribal is a rooted tree with nodes labeled by BCR sequences (concentated heavy and optional light chains) and by isotypes. The [LineageTree](../api/lineagetree.md) class also holds the current SHM parsimony score (`shm_obj`) and CSR likelihood (`csr_obj`).

A `LineageTree` can be visualized as a `png` or `pdf` via the [draw](../api/lineage_tree.md) function. Nodes are colored by the isotype via the default `color_encoding`.
A `LineageTree` can be visualized as a `png` or `pdf` via the [draw](../api/lineagetree.md) function. Nodes are colored by the isotype via the default `color_encoding`.

```python
color_encoding = {
Expand Down Expand Up @@ -348,5 +348,6 @@ Lastly, a CSV file with the objective values of each [LineageTree](../api/lineag

```python
from tribal import lineage_tree_list
lineage_tree_list.write("objectives.csv")
isotypes = ['IGHM', 'IGHG3', 'IGHG1', 'IGHA1','IGHG2','IGHG4','IGHE','IGHA2']
lineage_tree_list.write("objectives.csv", isotype_encoding=isotypes)
```
8 changes: 4 additions & 4 deletions tribal/lineage_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,8 @@ def write(self, outpath:str, isotype_encoding=None, tree_label=None):
----------
outpath : str
the path to file the files should be written.
clonotype : Clonotype, optional
the corresponding clonotype object for the lineage tree.
isotype_encoding : list, optional
the ordered isotype labels
"""
if tree_label is None:
tree_label = ""
Expand Down Expand Up @@ -579,8 +579,8 @@ def write_all(self, outpath, isotype_encoding=None):
----------
outpath : str
the path to where the files should be written.
clonotypes : dict
the corresponding Clonotype object for the LineageTreeList
isotype_encoding : list
the ordered isotype labeles
"""
for i,lt in enumerate(self):
lt.write(outpath,isotype_encoding=isotype_encoding, tree_label=i)
Expand Down

0 comments on commit 7c15716

Please sign in to comment.