Closed saramonteiromartins closed 2 years ago
Hi Sara, thanks for spotting this, I've incorporated it into the code. However I also recommend double checking how your data is being loaded, the fact that these positions were parsed as strings may be indicative of some other formatting issues. If all entries in the file are numeric they should be read in as numeric by default.
Hello,
Just a heads up regarding the MHC locus.
I had a couple of hits on Chr 6 that weren't saved separately on ".MHC". I realized that since P0 and P1 are character vectors, R wasn't correctly selecting MHC. I solved my problem by simply adding as.numeric: mhc = out.tbl$CHR == 6 & as.numeric(out.tbl$P0) > 26e6 & as.numeric(out.tbl$P1) < 34e6
Dummy example in R version 4.0.5:
Best wishes, Sara