source: trunk/grails-app/domain/dbnp/studycapturing/Assay.groovy @ 784

Last change on this file since 784 was 784, checked in by duh, 10 years ago
  • set keyword expansion
  • Property svn:keywords set to Author Rev Date
File size: 1.1 KB
Line 
1package dbnp.studycapturing
2
3/**
4 * This class describes an Assay, which describes the application of a certain (omics) measurement to multiple samples.
5 * The actual data of these measurements are described in submodules of dbNP. The type property describes in which module
6 * this data can be found.
7 */
8class Assay extends Identity {
9
10        /** The name of the assay, which should indicate the measurements represented in this assay to the user. */
11        String name
12
13        /** The dbNP module in which the assay omics data can be found. */
14        AssayModule module
15
16        /**
17                The assay ID which is used in the dbNP submodule which contains the actual omics data of this assay.
18                This ID is generated in GSCF, but is used in the submodules to refer to this particular Assay.
19         */
20        long externalAssayID
21
22        // An Assay always belongs to one study.
23        static belongsTo = [parent: Study]
24
25        // An Assay can have many samples on which it is performed, but all samples should be within the 'parent' Study.
26        static hasMany = [samples: Sample]
27
28        static constraints = {
29                externalAssayID(unique: true)
30        }
31
32        def String toString() {
33                return name;
34        }
35}
Note: See TracBrowser for help on using the repository browser.