I have formatted my files into csvsr format, but when I used the read.cross function, I always have one more phenotype which is actually the id number. How should I correct this?
mydata <- read.cross("csvsr",dir="",genfile="updated_step3_geno.csv",
phefile="pheno_drate_mapped.csv", na.strings=c("-", "NA"),
genotypes=c("A", "B"))
----
You could just delete the ID phenotype afterwards:
idcolumn <- grep("id", phenames(mydata))
mydata$pheno <- mydata$pheno[,-idcolumn]
On Nov 22, 2021, at 7:55 PM, Lara B <ljbri...@gmail.com> wrote:
Hi Dr. Broman,
--
You received this message because you are subscribed to the Google Groups "R/qtl discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rqtl-disc+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rqtl-disc/a1e8b356-7baa-4c0d-be6a-dc0d6feeae74n%40googlegroups.com.