Class | Analysis and data manipulation command |
Name | hash |
Arguments | [ <file_of_IDs> |
<pedigree_ID> <individual_ID> | id <individual_ID> | show | delete | size <percent_table_size>] |
Sets up, show, deletes or utilizes a hashed index for searching out IDs. Does not allow use of wild cards cf print.
If the single argument is a file name, each line in the file is expected to contain a pedigree and individual ID as the first two words, or just an individual ID as the single field. These will be searched for in the current dataset. Increasing the plevel gives lists of unmatched and matched IDs. To mark intersecting records, one could use update to update an indicator variable.
If two arguments are given, these are taken to be a pedigree and individual ID to be searched for, while id followed by a single argument is taken to be an individual ID to be searched for.
The show, delete, and size are for tuning, and will not be needed for ordinary use.
Example:
>> include cavanaughex.in >> hash 6i 5 Record 229 6i--5 found after 1 comparisons. >> out test.list >> print ped 6i >> out >> hash test.list Read in 8 records. Number of ID matches = 7 (0.8750) Prop of current dataset = 0.0303
See also:
update | update data from phenotype file |
print data |
<< (unique_id) | Up to index | >> (print) |