Admin - seqcode/pegr GitHub Wiki

Only users with "ADMIN" role can see and access the "Admin" tab.

The "Admin" page lists the tables that the admin can edit.

On the top, there is a "Merge" button. This widget allows admin to merge one row into another row for a limited set of tables. A common use case is data curation. To use the widget, the admin needs to know the id's of both the "merge from" and "merge to" rows. To get the id, you can go to the table of interest on the Admin page and find the rows you want to merge. Click the row and the id is at the end of the url. For example, "localhost:8080/pegr/histologyAdmin/show/1" indicates the id is 1. Once the merge request is submitted, PEGR will update all the references to the old row to referencing the new row, and deletes the old row.

The table "Target" provides an advanced search and merge widget due to demand. To use the widget, first go to the "Target" table, search by name, n-term tag, c-term tag or target type. The filtered results will be listed. Select the targets you want to merge from by clicking the checkboxes, and then input the target you want to merge to. This allows you to merge multiple targets at a time.