RFMix-reader is a Python package designed to efficiently read and process output files generated by RFMix, a popular tool for estimating local ancestry in admixed populations. The package employs a lazy loading approach, which minimizes memory consumption by reading only the loci that are accessed by the user, rather than loading the entire dataset into memory at once.
Project description
rfmix-reader
rfmix-reader
is a Python package designed to efficiently read and process output
files generated by RFMix, a popular tool for estimating local ancestry in admixed
populations. The package employs a lazy loading approach, which minimizes memory
consumption by reading only the loci that are accessed by the user, rather than
loading the entire dataset into memory at once.
Install
rfmix-reader
can be installed using pip:
pip install rfmix-reader
Key Features
Lazy Loading
- Reads data on-the-fly as requested, reducing memory footprint.
- Ideal for working with large RFMix output files that may not fit entirely in memory.
Efficient Data Access
- Provides convenient access to specific loci or regions of interest.
- Allows for selective loading of data, enabling faster processing times.
Seamless Integration
- Designed to work seamlessly with existing Python data analysis workflows.
- Facilitates downstream analysis and manipulation of RFMix output data.
Whether you're working with large-scale genomic datasets or have limited computational resources, RFMix-reader offers an efficient and memory-conscious solution for reading and processing RFMix output files. Its lazy loading approach ensures optimal resource utilization, making it a valuable tool for researchers and bioinformaticians working with admixed population data.
Usage
This works similarly to pandas-plink
:
from rfmix_reader import read_rfmix
file_path = "examples/two_popuations/"
loci, rf_q, admix = read_rfmix(file_path)
Authors
Citation
Please cite: XXXX.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for rfmix_reader-0.1.4-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e5795e4c6acf697387b3b7c00f2c0f31297f828f11286533f8d3036e4028b14 |
|
MD5 | cdcb95167deb0dda035ce513118461cb |
|
BLAKE2b-256 | 7eb4834ec9758024873d09e9e619949ec5eddf9cf4cf21fe0e3758c3201b922d |