diff options
author | Arun Isaac | 2022-06-08 17:52:21 +0530 |
---|---|---|
committer | Arun Isaac | 2022-06-08 17:52:21 +0530 |
commit | a13bc14927b78c2eefe9ddaaa36a1df08fd123b1 (patch) | |
tree | 0e7a41175000f6f5028e2322487aa003753a7b4b | |
parent | c80b776f39cb342550c365d599a91109aeb7a090 (diff) | |
download | gn-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.gmi | 3 |
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)) ``` |