cat("Sequence.Name Haplotype.Name",
"Population1 H1",
"Population1 H2",
"Population1 H3",
"Population1 H2",
"Population2 H4",
"Population2 H5",
"Population2 H6",
"Population2 H4",
"Population3 H7",
"Population3 H7",
"Population3 H7",
"Population3 H7",
file = "3_FindHaplo_Example2_modified.txt", sep = "")
example2_2 <- read.table("3_FindHaplo_Example2_modified.txt",header=TRUE)
FH<-read.table("3_FindHaplo_Example2_modified.txt",header=TRUE)
# Reading the alignment from an object and saving the two computed distance matrices:
HapPerPop(readfile=FALSE,input=FH,header=TRUE,saveFile=FALSE)
# Reading the alignment directly from file, displaying only the weighted matrix:
HapPerPop(readfile=TRUE,inputFile="3_FindHaplo_Example2_modified.txt",header=TRUE,saveFile=FALSE)[[1]]Run the code above in your browser using DataLab