Class | Analysis and data manipulation command |
Name | unique_id |
Arguments | [sequential] |
Generate unique consecutive (within family) numerical IDs for all individuals (as well as new numeric pedigree IDs). The default option gives a numerical ID comprising a pedigree ID from 1..Nped, and individual IDs formed by combining the pedigree ID with the position of the individual within the pedigree. Therefore members of the 52nd pedigree in the dataset will be renamed 52001, 52002...The number of padding zeroes is calculated based on the largest pedigree in the dataset.
The sequential gives individual IDs from 1...N_total_records; the pedigree IDs remain 1...Npedigrees. This is useful for many programs that analyse an entire dataset as a single kindred.
Note however that inactive pedigrees will not have their IDs altered. The effects of the command are not reversible (though obviously the pedigree file can be reread).
Example:
>> include volgaex.in >> write ! ! S p ! e A r ! Per Fat Mot x D onset age D14S52 D14S43 D14S53 o ! AM 101 x x m y 43.0000 x x/x x/x x/x n AM 102 x x f n 77.0000 77.0000 83/87 183/183 151/151 n AM 203 x x f n x x 83/93 171/181 151/157 n AM 201 101 102 m y 41.0000 x x/x x/x x/x y AM 202 101 102 m y 43.0000 x x/x x/x x/x n AM 204 101 102 m n 63.0000 63.0000 x/x x/x x/x n AM 205 101 102 m y 46.0000 x 83/87 183/183 151/155 n AM 206 101 102 m y 41.0000 x 83/87 183/183 151/155 n AM 207 101 102 m n 52.0000 52.0000 x/x x/x x/x n AM 208 101 102 m y 41.0000 x 83/87 183/183 151/155 n ... SNW 313 207 208 m y 53.0000 x x/x x/x x/x n SNW 314 207 208 m n 67.0000 67.0000 x/x x/x x/x n SNW 315 209 210 m y 56.0000 x 83/87 159/187 148/151 n SNW 401 301 302 m n 73.0000 73.0000 x/x x/x x/x n SNW 402 301 302 m y 50.0000 x 83/83 185/187 151/151 n SNW 403 301 302 m n 76.0000 76.0000 x/x x/x x/x n SNW 404 301 302 m y 56.0000 56.0000 x/x x/x x/x n SNW 405 301 302 m n 72.0000 72.0000 x/x x/x x/x n SNW 406 303 304 m y x x 69/83 185/187 151/151 n SNW 407 310 311 m y 50.0000 x 83/87 181/187 144/151 n >> unique_id Renaming each pedigree and person to unique numerical ID. Inactive pedigrees are not renumbered! Renamed 3 pedigrees. >> head ! ! S p ! e A r ! Pers Fath Moth x D onset age D14S52 D14S43 D14S53 o ! 1 1001 x x m y 43.0000 x x/x x/x x/x n 1 1002 x x f n 77.0000 77.0000 83/87 183/183 151/151 n 1 1003 x x f n x x 83/93 171/181 151/157 n 1 1004 1001 1002 m y 41.0000 x x/x x/x x/x y 1 1005 1001 1002 m y 43.0000 x x/x x/x x/x n 1 1006 1001 1002 m n 63.0000 63.0000 x/x x/x x/x n 1 1007 1001 1002 m y 46.0000 x 83/87 183/183 151/155 n 1 1008 1001 1002 m y 41.0000 x 83/87 183/183 151/155 n 1 1009 1001 1002 m n 52.0000 52.0000 x/x x/x x/x n 1 1010 1001 1002 m y 41.0000 x 83/87 183/183 151/155 n ... 3 3025 3014 3006 m y 53.0000 x x/x x/x x/x n 3 3026 3014 3006 m n 67.0000 67.0000 x/x x/x x/x n 3 3027 3015 3007 m y 56.0000 x 83/87 159/187 148/151 n 3 3028 3008 3016 m n 73.0000 73.0000 x/x x/x x/x n 3 3029 3008 3016 m y 50.0000 x 83/83 185/187 151/151 n 3 3030 3008 3016 m n 76.0000 76.0000 x/x x/x x/x n 3 3031 3008 3016 m y 56.0000 56.0000 x/x x/x x/x n 3 3032 3008 3016 m n 72.0000 72.0000 x/x x/x x/x n 3 3033 3017 3009 m y x x 69/83 185/187 151/151 n 3 3034 3010 3023 m y 50.0000 x 83/87 181/187 144/151 n >> unique_id sequential Renaming each pedigree and person to unique numerical ID. Inactive pedigrees are not renumbered! Individual IDs are sequential. Renamed 3 pedigrees. >> head ! ! S p ! e A r ! x D onset age D14S52 D14S43 D14S53 o ! 1 1 x x m y 43.0000 x x/x x/x x/x n 1 2 x x f n 77.0000 77.0000 83/87 183/183 151/151 n 1 3 x x f n x x 83/93 171/181 151/157 n 1 4 1 2 m y 41.0000 x x/x x/x x/x y 1 5 1 2 m y 43.0000 x x/x x/x x/x n 1 6 1 2 m n 63.0000 63.0000 x/x x/x x/x n 1 7 1 2 m y 46.0000 x 83/87 183/183 151/155 n 1 8 1 2 m y 41.0000 x 83/87 183/183 151/155 n 1 9 1 2 m n 52.0000 52.0000 x/x x/x x/x n 1 10 1 2 m y 41.0000 x 83/87 183/183 151/155 n ... 3 68 57 49 m y 53.0000 x x/x x/x x/x n 3 69 57 49 m n 67.0000 67.0000 x/x x/x x/x n 3 70 58 50 m y 56.0000 x 83/87 159/187 148/151 n 3 71 51 59 m n 73.0000 73.0000 x/x x/x x/x n 3 72 51 59 m y 50.0000 x 83/83 185/187 151/151 n 3 73 51 59 m n 76.0000 76.0000 x/x x/x x/x n 3 74 51 59 m y 56.0000 56.0000 x/x x/x x/x n 3 75 51 59 m n 72.0000 72.0000 x/x x/x x/x n 3 76 60 52 m y x x 69/83 185/187 151/151 n 3 77 53 66 m y 50.0000 x 83/87 181/187 144/151 n
<< (cases) | Up to index | >> (hash) |