We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposed to create functions to map genotypes, haplotypes and allele counts arrays between different allele indexing schemes.
create_allele_mapping(from_alleles, to_alleles, dtype)
genotypes_map_alleles(gt, mapping)
haplotypes_map_alleles(ht, mapping)
allele_counts_map_alleles(ac, mapping)
This is a porting of functionality from scikit-allel version 1, see create_allele_mapping, haplotype_array_map_alleles, allele_counts_array_map_alleles.
Add tests to ensure map_alleles works with either fixed length string dtype or object dtype.
map_alleles
Use numba for numpy backend implementations of the ..._map_alleles functions.
..._map_alleles
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Proposed to create functions to map genotypes, haplotypes and allele counts arrays between different allele indexing schemes.
Implementation plan
create_allele_mapping(from_alleles, to_alleles, dtype)
public API function to create an allele index mapping given two sets of alleles.genotypes_map_alleles(gt, mapping)
public API function to transform a genotypes array using an allele mapping.haplotypes_map_alleles(ht, mapping)
public API function to transform a haplotypes array using an allele mapping.allele_counts_map_alleles(ac, mapping)
public API function to transform an allele counts array (either 2D or 3D) using an allele mapping.Notes
This is a porting of functionality from scikit-allel version 1, see create_allele_mapping, haplotype_array_map_alleles, allele_counts_array_map_alleles.
Add tests to ensure
map_alleles
works with either fixed length string dtype or object dtype.Use numba for numpy backend implementations of the
..._map_alleles
functions.The text was updated successfully, but these errors were encountered: