Skip to content

Maximum parsimony xor haplotyping by sparse dictionary selection

Notifications You must be signed in to change notification settings

aelmas/xor-haplotyping

Repository files navigation

xor-haplotyping

This package contains the MATLAB implementation of the proposed xor-haplotyping (XHSD) algorithm.

Please see the script textXHSD.m to test XHSD algorithm on CFTR data with the desired parameters.

The main program is sparsehaplotypeSPL.m, which demands as input the genotype data. The genotypes should be located in the columns of the input matrix.

INSTRUCTIONS for saprsehaplotypeSPL.m:

Input Format: L x N matrix corresponding to N individuals with L SNPs that are typed as follows.
0: homozygous-common 00
2: homozygous-mutant 11
1: heterozygous 01 or 10
4: homozygous-hidden (XOR-site) 00 or 11
6: missing data

Parameters:
W = maximum block size in PL method
interest = which individuals to infer haplotypes. Use [1, 2, .., N] as default.
Lmiss= L x N binary matrix where 1 means a missing site.
flagBlock = 1:PL method (default), 2:fixed-length partitioning, 0:no-partition

Output Format: L x N x 2 matrix.
Haplotypes are located in the corresponding columns in dimension 1 (L,N,1) and dimension 2 (L,N,2).


Please cite:
Abdulkadir Elmas, Guido H Jajamovich and Xiaodong Wang
Maximum parsimony xor haplotyping by sparse dictionary selection
BMC Genomics 2013 14:645
https://doi.org/10.1186/1471-2164-14-645

About

Maximum parsimony xor haplotyping by sparse dictionary selection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages