bed-reader
Read and write the PLINK BED format, simply and efficiently.
Features
- Fast and multi-threaded
- Supports many indexing methods. Slice data by individuals (samples) and/or SNPs (variants).
- The Python-facing API for this library is used by PySnpTools, FaST-LMM, and PyStatGen.
- Supports PLINK 1.9.
Examples
Read genomic data from a .bed file.
use bed_reader;
Read every second individual and SNPs (variants) from 20 to 30.
use bed_reader;
List the first 5 individual (sample) ids, the first 5 SNP (variant) ids, and every unique chromosome. Then, read every value in chromosome 5.
use bed_reader;
cmk See slicing macro s! https://docs.rs/ndarray/latest/ndarray/macro.s.html
cmk how do you show output?
Links
cmk update
- Questions to: fastlmm-dev@python.org
- Bug reports
- Mailing list
- Project Website