Beispiel #1
0
	def __init__(self, name, sequence, markers):
		"""Class constructor Genotype

		Genotype Class is characterized by :
		Haplotype legacy of class :
			-A name,
			-a sequence, 
			-a size who is the length of markers and
			-the list of there markers
		Genotype specific to class :
			#generate during the 1st run
			-A number of Homozygous (Hmz) markers ('A', 'C', 'G' or 'T') (default = 0) maybe '--' for the new_haplotype,
			-a number of Heterozygous (Htz) markers (ex : '--' or 'A/G'), (default = 0)
			-a list of the Htz indexs in the Genotype object sequence,
			-a list of Haplotype(s) object(s) who are similar to our genotype
			(sum of errors in each markers positions = ... 0 1 ou 2) 
			-the size of this list (default = 0).
			-a list of probable combination of similar haplotypes that allows us to
			obtain the genotype.
			-the size of this list (default = 0).
			-a new haplotype list filled if there is at least 1 similar haplotype and
			no prbable combination.
			-the size of this list (default = 0).
			
			#generate during the 2nd run
			-a new list of probable combination of similar haplotypes that allows us to
			obtain the genotype.Because, we add in similar haplotype list the new haplotype
			created during the first run which are similar to our genotype
			-the size of this list (default = 0).

			something more?

		"""
		#Haplotype legacy of class
		Haplotype.__init__(self, name, sequence, markers)
		#Genotype specific to class
		self._hmz_nb_of_markers = 0
		self._htz_nb_of_markers = 0
		self._index_htz_markers = [] #liste des positions Htz dans seq du genotype (rend plus rapide la comparaison entre haplo possiblement combiné pour donner seq du génotype)
		
		#supp
		self._similar_haplotype = [] #une liste de sequences (eux même des liste de caractères)					 # = half_similarity hérité de Haplotype
		self._number_of_similar_haplotype = 0 #taille de la liste obtenue ci-dessus
		
		self._probable_haplotypes_combinaison = [] #liste de liste (ex: [[haplo1, haplo4], [haplo20, haplo79]])
		self._number_of_probable_haplotypes_combinaison = 0	
		self._lst_of_new_haplotype = [] #une liste de nouveau(x) (pour le moment liste de la séqeunce seul) haplotype(s) créé à partir de l'objet Génotype en question
		self._number_of_new_created_haplotype = 0 #taille de la liste obtenue ci-dessus
		self._probable_haplotypes_combinaison_2_run = [] # nouvelle liste de combinaison 
		self._number_of_probable_haplotypes_combinaison_2_run = 0
Beispiel #2
0
	def __init__(self, name, sequence, markers):
		"""Class constructor Candidat

		Haplotype legacy of class :
			-A name,
			-a sequence, 
			-a size who is the length of markers and
			-the list of there markers



		"""
		#Haplotype legacy of class
		Haplotype.__init__(self, name, sequence, markers)
		#Candidat specific to class
		self._geno_ori = ""
		self._haplo_ori = ""
Beispiel #3
0
	def __init__(self, name, sequence, markers):
		"""Class constructor FastPhase

		Haplotype legacy of class :
			-A name,
			-a sequence, 
			-a size who is the length of markers and
			-the list of there markers



		"""
		#Haplotype legacy of class
		Haplotype.__init__(self, name, sequence, markers)
		#FastPhase specific to class
		self._estimated_freq = ""
		self._estimated_square = ""