Skip to content
Snippets Groups Projects
Unverified Commit 4f86c17e authored by Robert Forkel's avatar Robert Forkel Committed by GitHub
Browse files

Update README.md

parent 22489387
No related branches found
No related tags found
No related merge requests found
......@@ -24,20 +24,20 @@ a `list` of `newick.Node` objects.
```
- Reading from a `file`-like object:
```python
>>> import io
>>> from newick import load
>>> with io.open('fname', encoding='utf8') as fp:
... trees = load(fp)
```
```python
>>> import io
>>> from newick import load
>>> with io.open('fname', encoding='utf8') as fp:
... trees = load(fp)
```
- Reading from a path:
```python
>>> from newick import read
>>> trees = read('fname')
>>> import pathlib
>>> trees = read(pathlib.Path('fname'))
```
```python
>>> from newick import read
>>> trees = read('fname')
>>> import pathlib
>>> trees = read(pathlib.Path('fname'))
```
### Supported Newick dialects
......@@ -93,7 +93,7 @@ A tree may be assembled using the factory methods of the `Node` class:
## Manipulating trees
- Diyplaying tree topology in the terminal:
- Displaying tree topology in the terminal:
```python
>>> import newick
>>> tree = newick.loads('(b,(c,(d,(e,(f,g))h)i)a)')[0]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment