Clayton Young
Clayton Young
## Example 1: GWAS with Linear Mixed Model ### Input ```csv # phenotype_example.csv FID,IID,pheno 1,1,9.23 2,2,11.45 3,3,8.91 ... ``` ### Process 1. Load phenotype and genotype data 2. Calculate kinship...
## Example 2: cis-eQTL Analysis ### Input ```csv # expression_example.csv gene_id,sample,expression ENSG000001234,Sample1,5.23 ENSG000001234,Sample2,4.89 ... ``` ### Process 1. Load expression data in BED format 2. Load genotypes in PLINK format...
## Example 3: Classical QTL Mapping ### Input ```csv # genotype_example.csv marker,chr,pos,Sample1,Sample2 m1,1,0,S,H m2,1,10,H,B m3,1,20,S,S ... ``` Genotype codes: S=homozygous parent 1, H=heterozygous, B=homozygous parent 2 ### Process 1. Simulate...
## Example 4: Population Structure Analysis ### Input ```csv # population_info_example.csv sample,population,PC1,PC2 Sample1,PopA,0.23,-0.15 Sample2,PopA,0.45,0.21 Sample3,PopB,1.89,0.03 ... ``` ### Process 1. Simulate admixed population (3 ancestral populations) 2. Run PCA on...
## Example 5: GWAS with Generalized Linear Model ### Input - 200 samples with binary phenotype (case/control) - 5,000 SNPs across 10 chromosomes - 10 causal SNPs with varying effect...
## Example 6: LD Decay Analysis ### Input - Genotype data for 100 individuals - 500 SNPs across 5 chromosomes - Physical positions for each SNP ### Process 1. Calculate...
## Example 7: Admixture Analysis ### Input - 150 individuals with mixed ancestry - 1,000 SNPs for ancestry inference - 3 ancestral populations simulated ### Process 1. Generate admixed population...
## Example 8: K-means Clustering ### Input - 150 individuals from 3 distinct populations - 1,000 SNPs for clustering - True population labels for validation ### Process 1. Generate 3...
## Example 9: Genomic Prediction ### Input - 100 individuals with phenotypes - 500 SNPs as predictors - 80/20 train/test split ### Process 1. Split data into training and testing...
## Example 10: Marker-Assisted Selection ### Input - 50 individuals with phenotypes - 100 markers with known effects - Marker effects from GWAS ### Process 1. Calculate MAS (Marker-Assisted Selection)...