R/netgwas2cross.R

Defines functions netgwas2cross

Documented in netgwas2cross

netgwas2cross <- function(netgwasmap, pop.type= NULL, map.func = "haldane" ){
  if(is.null(pop.type)) stop("Population type needs to be \"BC\",\"DH\",\"ARIL\" or \"RILn\" ")
  map <- as.cross(netgwasmap, pop.type= pop.type)  
  map <- quickEst( map, map.function = map.func)
  map <- jittermap(map, amount=1e-6)
  return(map)
}

Try the netgwas package in your browser

Any scripts or data that you put into this service are public.

netgwas documentation built on Aug. 7, 2023, 5:10 p.m.