diff options
author | Arun Isaac | 2022-06-09 16:50:24 +0530 |
---|---|---|
committer | Arun Isaac | 2022-06-09 16:51:04 +0530 |
commit | accb8400e69a9383dcfc95ae1e1db25cedf873fc (patch) | |
tree | a68c833da8875287942e156529c6ca3fb3f175ff | |
parent | 74e1271830ddd1eb1d44c09c68c8b5b55e914813 (diff) | |
download | gn-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.gmi | 8 |
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)) ``` |