Sib-pair Command: alla


ClassAlgebraic operators and function
Namealla | allb
Arguments <marker>

Return the first or second allele for each individual at the given marker.

Example:

>> count alla D14S53 == 151 or allb D14S53 == 151

Count where "alla D14S53 = = 151 or allb D14S53 = = 151":

Pedigree       Con=T   Num  ASPs Trios    4+
-------------- ----- ----- ----- ----- -----
         Total    19    77     1     3     0

>>  tab D14S53

------------------------------------
Tabulation of "D14S53              "
------------------------------------
  D14S53      Count  Percent
-----------------------------
  144/144        1      5.0
  144/151        6     30.0
  148/151        1      5.0
  149/151        1      5.0
  151/151        6     30.0
  151/155        4     20.0
  151/157        1      5.0
-----------------------------
  Total         20 (and  57  missing)

>> macro mkdummy
>> set loc %1_%2 qua
>> %1_%2 = 0
>> if (alla %1 == %2) then %1_%2 = %1_%2 + 1
>> if (allb %1 == %2) then %1_%2 = %1_%2 + 1
>> if (untyp %1) then %1_%2 = x
>> ;;;;
>> mkdummy D14S53 { 144 148 149 151 155 157 }

<< (ishom)Up to index>> (commar)