Sib-pair Command: copy


ClassAnalysis and data manipulation command
Namecopy
Arguments <pedigree1> <person1> <pedigree2> <person2> [merge]

Copies all active trait values and genotypes from first record to second record. Does not copy missing values across, so to completely replace data, one needs to delete the target values first. Does not allow wild cards in the IDs, cf edit. If the merge modifier is present, then only target values that are missing will be updated (ie a nondestructive update is carried out).

Example:

>> copy 1 2 1 3
Replacing data for 1--3 with nonmissing data from 1--2.
Made 5 changes (5 destructive).
>> copy 1 4 1 3 merge
Replacing data for 1--3 with nonmissing data from 1--4.
Made 2 changes (0 destructive).

>> set loc a mar
>> set loc b mar
>> read cases inline
>> 1 x/x C/C
>> 2 A/A x/x
>> 3 A/B x/x
>> 4 B/B x/x
>> 5 x/x x/x
>> ;;;;
>> run
>> copy 3 3 4 4 merge
Updating missing data for 4--4 with nonmissing data from 3--3.
Made 0 changes (0 destructive).
>> copy 3 3 4 4
Replacing data for 4--4 with nonmissing data from 3--3.
Made 1 changes (1 destructive).
>> write
Writing 5 pedigrees:
!  i f m s
!  d a o e
!    t t x    a       b
!
1 1 x x x   x/x     C/C
2 2 x x x   A/A     x/x
3 3 x x x   A/B     x/x
4 4 x x x   A/B     x/x
5 5 x x x   x/x     x/x
>> copy 1 1 2 2
Replacing data for 2--2 with nonmissing data from 1--1.
Made 1 changes (0 destructive).
>> write
Writing 5 pedigrees:
!  i f m s
!  d a o e
!    t t x    a       b
!
1 1 x x x   x/x     C/C
2 2 x x x   A/A     C/C
3 3 x x x   A/B     x/x
4 4 x x x   A/B     x/x
5 5 x x x   x/x     x/x


<< (edit)Up to index>> (delete)