aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexander Kabui2021-10-13 13:14:41 +0300
committerBonfaceKilz2022-01-22 09:23:14 +0300
commitdbb88497846253a23e028fb627f27cec82047be3 (patch)
treeb194f72c3743e3d482854811c3ff0e759dfbe335 /scripts
parent5da658fa4b46a02cbcbc434336844fa326d16c9d (diff)
downloadgenenetwork3-dbb88497846253a23e028fb627f27cec82047be3.tar.gz
fetch genotypes and phenotype files
Diffstat (limited to 'scripts')
-rw-r--r--scripts/ctl_analysis.R6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/ctl_analysis.R b/scripts/ctl_analysis.R
index e69de29..bfb6da4 100644
--- a/scripts/ctl_analysis.R
+++ b/scripts/ctl_analysis.R
@@ -0,0 +1,6 @@
+library(ctl)
+
+# The genotypes.csv file containing the genotype matrix is stored individuals (rows) x genetic marker (columns):
+genotypes <- read.csv("genotypes.csv",row.names=1, header=FALSE, sep="\t")
+# The phenotypes.csv file containing individuals (rows) x traits (columns) measurements:
+traits <- read.csv("phenotypes.csv",row.names=1, header=FALSE, sep="\t")