You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would be interested to know how difficult it would be to provide the magmajs behaviour in a JavaScript engine session running within an R session.
###Background:
The magmajs editor in MOLGENIS or Opal is fine for simple harmonisation. It is a good solution for harmonising as it can be used without the user having full access to the data. However using it for complex harmonisation can be challenging to debug and spot problems. We have been experimenting with generating synthetic data on the client side, which is a realistic representation of the real data, and that the user can have full access to. We then tried loading this into DSLite and using DataSHIELD functions to harmonise, which proved difficult because of the limited functions in DataSHIELD. Therefore the next idea is to try to use the V8 R package, which provides JavaScript in R. Then, the synthetic data can be put into the JavaScript session. JavaScript code can be written to do the harmonisation, and the user can have full access to data and see how things are working. When they are happy, the user can cut and paste the finished JS code into the MOLGENIS/Opal editor to run on the real data.
Question:
magmajs introduces features that are not available in standard JS. For example in magmajs we would refer to a column with the syntax $("smoking"). In V8, we can pull a dataset into JS but would refer to the columns as my_data.smoking.
V8 does offer the chance to pull JS libraries in, so we wondered if it is possible to pull the magmajs functionality for use with V8. This would mean the code written on the client side with full access to the synthetic data could be dropped into the MOLGENIS/Opal editor unchanged.
The text was updated successfully, but these errors were encountered:
tombisho
changed the title
I would like to use this in a JS session in R V8
I would like to use this in a JS session provided by the R package V8
Jul 5, 2021
I would be interested to know how difficult it would be to provide the magmajs behaviour in a JavaScript engine session running within an R session.
###Background:
The magmajs editor in MOLGENIS or Opal is fine for simple harmonisation. It is a good solution for harmonising as it can be used without the user having full access to the data. However using it for complex harmonisation can be challenging to debug and spot problems. We have been experimenting with generating synthetic data on the client side, which is a realistic representation of the real data, and that the user can have full access to. We then tried loading this into DSLite and using DataSHIELD functions to harmonise, which proved difficult because of the limited functions in DataSHIELD. Therefore the next idea is to try to use the
V8
R package, which provides JavaScript in R. Then, the synthetic data can be put into the JavaScript session. JavaScript code can be written to do the harmonisation, and the user can have full access to data and see how things are working. When they are happy, the user can cut and paste the finished JS code into the MOLGENIS/Opal editor to run on the real data.Question:
magmajs introduces features that are not available in standard JS. For example in magmajs we would refer to a column with the syntax
$("smoking")
. In V8, we can pull a dataset into JS but would refer to the columns asmy_data.smoking
.V8 does offer the chance to pull JS libraries in, so we wondered if it is possible to pull the magmajs functionality for use with V8. This would mean the code written on the client side with full access to the synthetic data could be dropped into the MOLGENIS/Opal editor unchanged.
The text was updated successfully, but these errors were encountered: