From a13bc14927b78c2eefe9ddaaa36a1df08fd123b1 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Wed, 8 Jun 2022 17:52:21 +0530 Subject: topics: genotype-database: Document reading columns. * topics/genotype-database.gmi: Document reading columns in Python. --- topics/genotype-database.gmi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/topics/genotype-database.gmi b/topics/genotype-database.gmi index c3f7691..13c321e 100644 --- a/topics/genotype-database.gmi +++ b/topics/genotype-database.gmi @@ -9,11 +9,12 @@ To convert a plain text GeneNetwork genotype file `BXD.geno` to a genodb genotyp ``` => https://git.genenetwork.org/GeneNetwork/cl-gn cl-gn -genenetwork3 includes a tiny Python library to read the built genodb database. Here is a sample invocation reading row 17 from a database at `/tmp/bxd`. +genenetwork3 includes a tiny Python library to read the built genodb database. Here is a sample invocation reading row 17 and column 13 from a database at `/tmp/bxd`. ``` from gn3 import genodb with genodb.GenotypeDatabase('/tmp/bxd') as db: matrix = db.matrix() print(matrix.row(17)) + print(matrix.column(13)) ``` -- cgit v1.2.3