Pricing changes are coming in January. Contact our Sales team to secure the current price for your desired license.

How to define hierarchical mapping for a flat data structure based upon a number of set values in columns

Resolved
Nikita asked on February 14, 2024

Let's say that I have such data as is attached on the screenshot. I want to define hierarchical mapping based upon the limited number of values present in ProtocolName and ColumnName columns but not based upon the ProtocolName and ColumnName keys that will be in the final json. Is it possible to do or transforming such flat data structure into the hierarchical one (when keys would be the actual values of ProtocolName and ColumnName) is required in Flexmonster? We have very large flat data input and if we need to transform it, it would require looping through the data and preparing the right format for Flexmonster which may take a lot of time.
The ultimate goal is just to have this flat data fed into Flexmonster and specify a number of groupby columns (on the screenshot it would be Cell Line) and see the results. We want to have rows as CompoundID and columns as, for instance, ADME Assay/EC50/L1 - val, ADME Assay/EC50/L2 - val, ADME Assay/EMax/L1 - val, ...

Attachments:
flatdata.png

4 answers

Public
Maksym Diachenko Maksym Diachenko Flexmonster February 15, 2024

Hello, Nikita!

Thank you for reaching out to us.

Flexmonster is capable of performing all the necessary operations to convert flat data into a pivot form. Thus, you can simply insert your JSON data (or a URL returning this data) into the component and be able to work with it as a pivot table. You are welcome to check the example: https://jsfiddle.net/flexmonster/47qtp92e/ 

We are looking forward to hearing your feedback.

Best Regards,
Maksym

Public
Maksym Diachenko Maksym Diachenko Flexmonster February 22, 2024

Hello, Nikita!

Hope you are doing well.
We are wondering if you had time to look at our previous reply.
Please let us know if the provided information was helpful.

Best Regards,
Maksym

Public
Nikita February 22, 2024

Hi Maksym!
Sure we did. We had flat data but it was non-homogenous meaning that objects had different keys, so we transformed it and currently struggling a bit with frontend part. Demo example is very useful. We may ask additional questions, will see.
Thank you!

Public
Maksym Diachenko Maksym Diachenko Flexmonster February 23, 2024

Hello, Nikita!

Thank you for your feedback.
We are glad to hear that our answer was helpful.
Feel free to contact us if any questions arise.

Best Regards,
Maksym

Please login or Register to Submit Answer