From multiple pair-collections to list of pairs

Is there a way to build a list of pairs collection from multiple collections of type pair?

Thanks!
Peter

1 Like

Hmm, tricky. Guess I have only a partial solution:

  1. Use BUILD_LIST with all your paired collections as inputs.
  2. Run APPLY_RULES with this rule:
{
  "rules": [
    {
      "type": "add_column_metadata",
      "value": "identifier0"
    },
    {
      "type": "add_column_metadata",
      "value": "identifier1"
    }
  ],
  "mapping": [
    {
      "type": "paired_identifier",
      "columns": [
        0
      ]
    },
    {
      "type": "list_identifiers",
      "columns": [
        1
      ],
      "editing": false
    }
  ]
}

This organizes things in the way you want them, but you will have lost the names of the original paired collections and have them replaced with element indices.
If you generate a list of the correct names, I guess you can run:
3. RELABEL_FROM_FILE on the list:paired collection above, but I haven’t tried that.

1 Like