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 = "")
# Reading the alignment directly from file, displaying only the
# weighted matrix:
HapPerPop(inputFile="3_FindHaplo_Example2_modified.txt",header=TRUE,
saveFile=FALSE)[[1]]
# Reading the alignment from an object and saving the two computed
# distance matrices:
FH<-read.table("3_FindHaplo_Example2_modified.txt",header=TRUE)
HapPerPop(input=FH,header=TRUE,saveFile=FALSE)Run the code above in your browser using DataLab