NAME
Bio::PopGen::TagHaplotype.pm - Haplotype tag object.
SYNOPSIS
use Bio::PopGen::TagHaplotype;my $obj = Bio::PopGen::TagHaplotype -> new($hap);
DESCRIPTION
This module take as input a haplotype and try toe get the minimal set of SNP that define the haplotype. This module can be use alone. But due to the tagging haplotype process is exponential one. My suggestion is that before to use this module you pass your data under Select.mp module also on this folder. In any case if, you provide an haplotype the module will try to find the answer to your question.
CONSTRUCTORS
my $obj = Bio::PopGen::TagHaplotype -> new($hap);were $hap is the reference to an array of array with the haplotype.$hap= [[0, 0, 0],[1, 0, 0],[0, 1, 1]];
FEEDBACK
Mailing Lists
User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to the Bioperl mailing list. Your participation is much appreciated.
[email protected] - General discussionhttp://bioperl.org/wiki/Mailing_lists - About the mailing lists
Support
Please direct usage questions or support issues to the mailing list:
rather than to the module maintainer directly. Many experienced and reponsive experts will be able look at the problem and quickly address it. Please include a thorough description of the problem with code and data examples if at all possible.
Reporting Bugs
Report bugs to the Bioperl bug tracking system to help us keep track of the bugs and their resolution. Bug reports can be submitted via the web:
https://github.com/bioperl/bioperl-live/issues
AUTHOR - Pedro M. Gomez-Fabre
Email pgf18872-at-gsk-dot-com
new
Title : newFunction: constructor of the class.Returns : self hashArgs : input haplotype (array of array)Status : public
haplotype_block
Title : haplotype_blockUsage : my $haplotype_block = $TagHaplotype->haplotype_block();Function: Get the haplotype block for a haplotype tagging selectionReturns : reference of arrayArgs : reference of array with haplotype pattern
input_block
Title : input_blockUsage : $obj->input_block()Function: returns haplotype block. By now will produce the same output than$self->haplotype_block. but for compatibility, this method is kept.This method is deprecated.Returns : reference to array of array with the haplotype input valueArgs : noneStatus : public
tag_list
Title : tag_listUsage : $obj->tag_list()Function: returns the list of SNPs combination that identify thehaplotype. All combinations are displayed as arraysReturns : reference to array of array.Args : noneStatus : public
tag_length
Title : tag_lengthUsage : $obj->tag_length()Function: returns the length of the tag.Returns : scalarArgs : noneStatus : public
_scan_snp
Title : _scan_snpUsage : internalFunction: scan sets increasing the length until find a non degeneratedpattern.Returns : scalarArgs : noneStatus : private
_gen_comb
Title : _gen_combUsage : internalFunction: we supply the length of the haplotype and the length of theword we need to find and the functions returns the possiblelist of combinations.Returns : scalarArgs : noneStatus : private
_generateCombinations
Title : _generateCombinationsUsage : internalFunction: Recursive function that produce all combinations for a seti.e.:1, 2, 3, 4and word of B<3> will produce:1, 2, 31, 2, 41, 3, 42, 3, 4Returns :Args : noneStatus : private
_scan_combinations
Title : _scan_combinationsUsage : internalFunction: take the haplotype and a list of possible combinationfor that length. Generate a subset and scan it to find ifthe information is enough to define the haplotype set.Returns :Args : noneStatus : private