Changes

From Genome Analysis Wiki
Jump to navigationJump to search
Line 52: Line 52:  
   // Name of the first allele, typically "A", "C", "G" or "T" for SNPs
 
   // Name of the first allele, typically "A", "C", "G" or "T" for SNPs
 
   String label = info.GetAlleleLabel(1);  
 
   String label = info.GetAlleleLabel(1);  
 +
 +
  // Genotype for a specific individual at a specific marker
 +
  ped[0].markers[0].isKnown();      // Test if genotype is known
 +
  ped[0].markers[0].isHomozygous(); // Test if genotype is homozygous
 +
  ped[0].markers[0][0];            // Index of first allele
 +
  ped[0].markers[0][1];            // Index of second allele
 
   }
 
   }
 
</source>
 
</source>
75

edits

Navigation menu