Changed
- Updated behavior of
.loadofLDMatrix. Now, by default it loads
anLDLinearOperatorobject.- Now the cached loaded data is in the form of a
LDLinearOperatorobject.
- Now the cached loaded data is in the form of a
- Moved a lot of the functionality of converting LD data to
CSRformat
to theLDLinearOperator. - Removed printing where possible in the package and changed it to use
theloggingmodule. - Resolved some issues in how the
pandas-plinkgenotype matrix is
handled in case of splitting by chromosomes/variants. - Removed
fill_nafrom thestandardizemethod instats.transforms.genotype. - Fixed how the package interfaces with
tempfileto properly cleanup
temporary files/directories. - Made the tests for
LDMatrixa bit more comprehensive.
Added
- Added preliminary tests to the CLI scripts (
magenpy_ldandmagenpy_simulate) - Support for block iterator for the
LDMatrix. rank_one_updatefor theLDLinearOperatorclass.- Unified method to map variants to genomic blocks
map_variants_to_genomic_blocks. - Added
summarymethod toLDMatrixto provide a summary of the LD matrix. - Added
__repr__and__repr_html__methods toLDMatrix. - Added functionality to allow slicing of
LDLinearOperatorand outputting
subsets of the data as a numpy array directly. - Added implementation of the
PUMASprocedure for sampling summary data
conditional on the LD matrix. Relevant functions:sumstats_train_test_splitmultivariate_normal_conditional_sampling
- Added a faster intersection implementation
intersect_multiple_arrays. - Added preliminary
bedReaderGenotypeMatrixto support using thebed-reader
package as a backend (still needs more development and testing). - Added convenience method
setup_loggerto set up logging in the package.