From accb8400e69a9383dcfc95ae1e1db25cedf873fc Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Thu, 9 Jun 2022 16:50:24 +0530 Subject: topics: genotype-database: Use new functional interface. * topics/genotype-database.gmi: Use new functional interface. --- topics/genotype-database.gmi | 8 ++++---- 1 file 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)) ``` -- cgit 1.4.1