codes/Resample.R

# Resample and return same Level Gene's Index

Resample = function(SampleGeneLV){
  res = c()
  for(i in 1:length(SampleGeneLV)){
    res = c(res, sample(which(GeneLevelIndex == names(SampleGeneLV)[i]), SampleGeneLV[i]))
  }
  return(unname(res))
}
unistbig/netGO documentation built on Dec. 3, 2020, 6:52 p.m.