R function for gene information finding