aboutsummaryrefslogtreecommitdiff
path: root/scripts/ctl_analysis.R
blob: bfb6da4f1a7d0f1249ab6e78e51dc61926e99a32 (plain)
1
2
3
4
5
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")