Randomly Select Subsets of Individuals from a Binary Pedigree .fam File
Year: 2010
Type: other
Abstract: I'm working on imputing GWAS data to the 1000 Genomes Project data using MaCH. For the model estimation phase you only need ~200 individuals. Here's a one-line unix command that will pull out 200 samples at random from a binary pedigree .fam file called myfamfile.fam: for i in `cut -d ' ' -f 1-2 myfamfile.fam | sed s/\ /,/g`; do echo "$RANDOM $i"; done | sort |
DOI: 10.59350/qsxta-ecn35
Author: Stephen Turner
Institution: Vanderbilt University
Language: English
Subfield: Genetics
Domain: Life Sciences
Open Access status: gold
OpenAlex ID: W4405645262
