caitiecollins / treeWAS

treeWAS: A Phylogenetic Tree-Based Tool for Genome-Wide Association Studies in Microbes
Other
92 stars 18 forks source link

issue with loading phenotypes #75

Closed rderelle closed 4 months ago

rderelle commented 4 months ago

Hi,

As I'm not particularly good with R, I'm struggling loading the phenotypes using the commands:

df <- read.table(file="phenotypes.txt",sep = ",") phen <- as.vector(unlist(df))

My file contains the phenotypes in the following format: sample1,A sample2,A sample3,B

I also tried the following format with no luck: sample1,sample2,sample3 A,A,B

Could you please let me know in which format the phenotypes should be provided? Any help would be highly appreciated.

Thanks

rderelle commented 4 months ago

found a solution.