summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2022-06-09 16:50:24 +0530
committerArun Isaac2022-06-09 16:51:04 +0530
commitaccb8400e69a9383dcfc95ae1e1db25cedf873fc (patch)
treea68c833da8875287942e156529c6ca3fb3f175ff
parent74e1271830ddd1eb1d44c09c68c8b5b55e914813 (diff)
downloadgn-gemtext-accb8400e69a9383dcfc95ae1e1db25cedf873fc.tar.gz
topics: genotype-database: Use new functional interface.
* topics/genotype-database.gmi: Use new functional interface.
-rw-r--r--topics/genotype-database.gmi8
1 files changed, 4 insertions, 4 deletions
diff --git a/topics/genotype-database.gmi b/topics/genotype-database.gmi
index 13c321e..ea3db7c 100644
--- a/topics/genotype-database.gmi
+++ b/topics/genotype-database.gmi
@@ -13,8 +13,8 @@ genenetwork3 includes a tiny Python library to read the built genodb database. H
```
from gn3 import genodb
-with genodb.GenotypeDatabase('/tmp/bxd') as db:
- matrix = db.matrix()
- print(matrix.row(17))
- print(matrix.column(13))
+with genodb.open('/tmp/bxd') as db:
+ matrix = genodb.matrix(db)
+ print(genodb.row(matrix, 17))
+ print(genodb.column(matrix, 13))
```