I just realised that something like vizection(genes=genes[,1:10], .... will not work, because "genes[,1:10]" is not an object that we can recover from the global environment with get("genes[,1:10]", .GlobalEnv). It should rather be get("genes", .GlobalEnv)[,1:10], which requires more complex parsing. Maybe there is a better way to do it...
I just realised that something like
vizection(genes=genes[,1:10], ....
will not work, because"genes[,1:10]"
is not an object that we can recover from the global environment withget("genes[,1:10]", .GlobalEnv)
. It should rather beget("genes", .GlobalEnv)[,1:10]
, which requires more complex parsing. Maybe there is a better way to do it...