Home » DataWarrior » Functionality » How to customize Merge Equivalent Rows (Merge Equivalent Rows)
|
Re: How to customize Merge Equivalent Rows [message #2209 is a reply to message #2207] |
Thu, 23 May 2024 22:12   |
thomas
Messages: 731 Registered: June 2014
|
Senior Member |
|
|
Hi Yuan,
thanks you for the hint. Of course, your suggestion makes a lot of sense. I have update the source code now to offer three options:
- 'remove duplicates', which is similar to the current handling: if the cells to be merged all contain the same value,
then this value is placed into the merged cell only once. Otherwise we see all entries in original order
- 'keep duplicates', which is your suggested handling: we always see all entries in original order
- 'depend on columns groups', which assumes that related columns, e.g. result columns of one assay, are grouped using
the column grouping feature. Then it checks, whether all cells of the same column group are equal and only then it
removes for all these columns the same entry.
In the next version this will go live...
Thomas
|
|
|
|
Re: How to customize Merge Equivalent Rows [message #2214 is a reply to message #2212] |
Fri, 24 May 2024 15:50   |
thomas
Messages: 731 Registered: June 2014
|
Senior Member |
|
|
I prepared a test file for you. You can download it from https://openmolecules.org/datawarrior/datawarrior_v06.02.02a lpha.jar Then copy it into your datawarrior update folder. On Windows this is C:\\ProgramData\DataWarrior\
The standard procedure to test any non-yet-released functionality would be:
On a Linux or MacOS computer with JDK21/JFX (I suggest Liberica full JDK 21) installed clone the DataWarrior project from Github and build the jar file:
> git clone https://github.com/thsa/datawarrior
> buildDataWarrior
Then rename the built 'datawarrior_all.jar' file to any version newer than the current one, e.g. 'datawarrior_v06.02.02.jar' and put it into your datawarrior update folder, where the other automatic updates are located. This works on any platform (Linux, Mac, or Windows). If you then launch DataWarrior, it will use this version. Don't forget to remove the file after testing it.
[Updated on: Fri, 24 May 2024 15:53] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Sun Jun 08 21:11:17 CEST 2025
Total time taken to generate the page: 0.06861 seconds
|