rqtl / qtl2scan

R/qtl2 module for QTL analysis, including genome scans
http://kbroman.org/qtl2
Other
5 stars 4 forks source link

added a check for mclapply failure #79

Closed simecek closed 7 years ago

simecek commented 7 years ago

Hi Karl,

I am suggesting to throw a warning if mclapply outputs a list with NULLs only. This happens if mclapply fails because of memory problems.

Petr

kbroman commented 7 years ago

Thanks!

I'm thinking I might revise this further and move the trap of NULLs upward to where it's used in scan1(), and I think I'll give an error rather than a warning. cluster_lapply() is a low-level helper function and might be used in a case that would return NULLs appropriately. I think maybe better to catch the scan1() problem directly.