Opened 7 years ago

Closed 7 years ago

#987 closed task (fixed)

Cohort exporter plugin

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: major Milestone: Relax v1.1
Component: net.sf.basedb.relax Keywords:
Cc:

Description

We should implement a plug-in that can export cohort data into tab-separated file. The basic functionality is similar to the original release exporter in reggie (see #887).

The plug-in should use an item list as input.

A project must be active since that will decide which annotations that are exported.

It should be possible to start with a list of any type of item (eg. rawbioassay, derived bioassay or biomaterial).

The exporter should only move upwards to parent items. For example, if the start list contains a library items, the exporter should create files for the libraries, rna, specimen and biosources.

It is assumed that all root items are of the same type. We can check this and give an error message if not. It is also expected that moving up along the parent item path we will pass through the same type of parents for all items. This might be possible to check or we could ignore it (but then we will end up with different number of items in some of the files).

The first column in each file should be the name of the "root" item. The second column should be the name of the current item. After that annotations that are relevant for the current item type are following.

Do we need columns for paths to files?

Expression values will not be exported in the first version.

Change History (5)

comment:1 by Nicklas Nordborg, 7 years ago

Owner: set to Nicklas Nordborg
Status: newassigned

comment:2 by Nicklas Nordborg, 7 years ago

(In [4553]) References #987: Cohort exporter plugin

Added the "Cohort exporter" plug-in. It seems to work and produce files as expected.

comment:3 by Nicklas Nordborg, 7 years ago

(In [4554]) References #987: Cohort exporter plugin

Added checks for an active project.

comment:4 by Nicklas Nordborg, 7 years ago

(In [4628]) References #987: Cohort exporter plugin

Removed debug code (the plug-in will no longer report an error if the export is successful).

comment:5 by Nicklas Nordborg, 7 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.