-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin' into dev/link-check-dan
- Loading branch information
Showing
11 changed files
with
126 additions
and
1,169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,11 +58,7 @@ | |
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "8ec900bd", | ||
"metadata": { | ||
"vscode": { | ||
"languageId": "r" | ||
} | ||
}, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"%%bash\n", | ||
|
@@ -75,11 +71,7 @@ | |
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "4d43ae73", | ||
"metadata": { | ||
"vscode": { | ||
"languageId": "r" | ||
} | ||
}, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"%%bash\n", | ||
|
@@ -101,11 +93,7 @@ | |
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "b3ba3eef", | ||
"metadata": { | ||
"vscode": { | ||
"languageId": "r" | ||
} | ||
}, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"%%bash\n", | ||
|
@@ -117,14 +105,7 @@ | |
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "ae20d01c", | ||
"metadata": { | ||
"gather": { | ||
"logged": 1686580882939 | ||
}, | ||
"vscode": { | ||
"languageId": "r" | ||
} | ||
}, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"#add to your path\n", | ||
|
@@ -136,11 +117,7 @@ | |
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "b219074a", | ||
"metadata": { | ||
"vscode": { | ||
"languageId": "r" | ||
} | ||
}, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"! mamba install -y -c bioconda plink vcftools" | ||
|
@@ -158,14 +135,7 @@ | |
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "e91c7a01", | ||
"metadata": { | ||
"gather": { | ||
"logged": 1686579597925 | ||
}, | ||
"vscode": { | ||
"languageId": "r" | ||
} | ||
}, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"cd GWAS" | ||
|
@@ -175,14 +145,7 @@ | |
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "9b770f7f", | ||
"metadata": { | ||
"gather": { | ||
"logged": 1686579600325 | ||
}, | ||
"vscode": { | ||
"languageId": "r" | ||
} | ||
}, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"ls" | ||
|
@@ -192,11 +155,7 @@ | |
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "6570875d", | ||
"metadata": { | ||
"vscode": { | ||
"languageId": "r" | ||
} | ||
}, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"! vcftools --gzvcf pruned_coatColor_maf_geno.vcf.gz --plink --out coatColor" | ||
|
@@ -215,14 +174,7 @@ | |
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "6c868a67", | ||
"metadata": { | ||
"gather": { | ||
"logged": 1686581972147 | ||
}, | ||
"vscode": { | ||
"languageId": "r" | ||
} | ||
}, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"#unzip vcf\n", | ||
|
@@ -233,14 +185,7 @@ | |
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "8e11f991", | ||
"metadata": { | ||
"gather": { | ||
"logged": 1686581979545 | ||
}, | ||
"vscode": { | ||
"languageId": "r" | ||
} | ||
}, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"#create list of minor alleles\n", | ||
|
@@ -251,11 +196,7 @@ | |
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "8cff47e3", | ||
"metadata": { | ||
"vscode": { | ||
"languageId": "r" | ||
} | ||
}, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"! head minor_alleles" | ||
|
@@ -273,14 +214,7 @@ | |
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "dafa14a6", | ||
"metadata": { | ||
"gather": { | ||
"logged": 1686582023237 | ||
}, | ||
"vscode": { | ||
"languageId": "r" | ||
} | ||
}, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"#calculate missingness per locus\n", | ||
|
@@ -291,14 +225,7 @@ | |
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "5cf5f51b", | ||
"metadata": { | ||
"gather": { | ||
"logged": 1686582030150 | ||
}, | ||
"vscode": { | ||
"languageId": "r" | ||
} | ||
}, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"#take a look at lmiss, which is the per locus rates of missingness\n", | ||
|
@@ -309,14 +236,7 @@ | |
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "915bb263", | ||
"metadata": { | ||
"gather": { | ||
"logged": 1686582034753 | ||
}, | ||
"vscode": { | ||
"languageId": "r" | ||
} | ||
}, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"#peek at imiss which is the individual rates of missingness\n", | ||
|
@@ -335,11 +255,7 @@ | |
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "3b8f2d7f", | ||
"metadata": { | ||
"vscode": { | ||
"languageId": "r" | ||
} | ||
}, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"! plink --file coatColor --allow-no-sex --dog --make-bed --noweb --out coatColor.binary" | ||
|
@@ -357,11 +273,7 @@ | |
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "f926ef9b", | ||
"metadata": { | ||
"vscode": { | ||
"languageId": "r" | ||
} | ||
}, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"! plink --bfile coatColor.binary --make-pheno coatColor.pheno \"yellow\" --assoc --reference-allele minor_alleles --allow-no-sex --adjust --dog --noweb --out coatColor" | ||
|
@@ -380,11 +292,7 @@ | |
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "b94e1e2a", | ||
"metadata": { | ||
"vscode": { | ||
"languageId": "r" | ||
} | ||
}, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"%%bash\n", | ||
|
@@ -413,14 +321,7 @@ | |
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "60feed89", | ||
"metadata": { | ||
"gather": { | ||
"logged": 1686582094642 | ||
}, | ||
"vscode": { | ||
"languageId": "r" | ||
} | ||
}, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"#make a new library and install qqman their\n", | ||
|
@@ -441,14 +342,7 @@ | |
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "a7e8cd2b", | ||
"metadata": { | ||
"gather": { | ||
"logged": 1686584355516 | ||
}, | ||
"vscode": { | ||
"languageId": "r" | ||
} | ||
}, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"#make sure you are still CD in GWAS, when you change kernel it may reset to home\n", | ||
|
@@ -459,14 +353,7 @@ | |
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "7946a3a7", | ||
"metadata": { | ||
"gather": { | ||
"logged": 1686584356532 | ||
}, | ||
"vscode": { | ||
"languageId": "r" | ||
} | ||
}, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"require(qqman, lib = Sys.getenv(\"R_LIBS_USER\"))" | ||
|
@@ -476,14 +363,7 @@ | |
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "0d28ef2c", | ||
"metadata": { | ||
"gather": { | ||
"logged": 1686584364339 | ||
}, | ||
"vscode": { | ||
"languageId": "r" | ||
} | ||
}, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"data=read.table(\"coatColor.assoc\", header=TRUE)" | ||
|
@@ -493,14 +373,7 @@ | |
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "8e5207be", | ||
"metadata": { | ||
"gather": { | ||
"logged": 1686584368241 | ||
}, | ||
"vscode": { | ||
"languageId": "r" | ||
} | ||
}, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"data=data[!is.na(data$P),]" | ||
|
@@ -510,14 +383,7 @@ | |
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "6330b1e0", | ||
"metadata": { | ||
"gather": { | ||
"logged": 1686584371278 | ||
}, | ||
"vscode": { | ||
"languageId": "r" | ||
} | ||
}, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"manhattan(data, p = \"P\", col = c(\"blue4\", \"orange3\"),\n", | ||
|
@@ -561,32 +427,7 @@ | |
"source": [] | ||
} | ||
], | ||
"metadata": { | ||
"kernel_info": { | ||
"name": "ir" | ||
}, | ||
"kernelspec": { | ||
"display_name": "R", | ||
"language": "R", | ||
"name": "ir" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": "r", | ||
"file_extension": ".r", | ||
"mimetype": "text/x-r-source", | ||
"name": "R", | ||
"pygments_lexer": "r", | ||
"version": "4.3.2" | ||
}, | ||
"microsoft": { | ||
"ms_spell_check": { | ||
"ms_spell_check_language": "en" | ||
} | ||
}, | ||
"nteract": { | ||
"version": "[email protected]" | ||
} | ||
}, | ||
"metadata": {}, | ||
"nbformat": 4, | ||
"nbformat_minor": 5 | ||
} |
Oops, something went wrong.