summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2022-06-08 17:52:21 +0530
committerArun Isaac2022-06-08 17:52:21 +0530
commita13bc14927b78c2eefe9ddaaa36a1df08fd123b1 (patch)
tree0e7a41175000f6f5028e2322487aa003753a7b4b
parentc80b776f39cb342550c365d599a91109aeb7a090 (diff)
downloadgn-gemtext-a13bc14927b78c2eefe9ddaaa36a1df08fd123b1.tar.gz
topics: genotype-database: Document reading columns.
* topics/genotype-database.gmi: Document reading columns in Python.
-rw-r--r--topics/genotype-database.gmi3
1 files changed, 2 insertions, 1 deletions
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))
```