diff options
-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)) ``` |