Changeset 184
- Timestamp:
- Feb 9, 2010, 5:01:03 PM (14 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 7 added
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/LoadController.groovy
r162 r184 1 /*2 * To change this template, choose Tools | Templates3 * and open the template in the editor.4 */5 6 1 /** 7 2 * 8 3 * @author ademcan 9 4 */ 5 6 import dbnp.studycapturing.* 7 import dbnp.data.Term 8 10 9 class LoadController { 11 10 … … 33 32 BufferedReader fileReader = new BufferedReader(new InputStreamReader(inputStream)); 34 33 35 def investigationDesign = new dbnp.transcriptomics.magetab.idf.InvestigationDesign();36 def person = new dbnp.transcriptomics.magetab.idf.Person();37 def protocol = new dbnp.transcriptomics.magetab.idf.MAGEProtocol();38 def publication = new dbnp.transcriptomics.magetab.idf.Publication();39 def normalization = new dbnp.transcriptomics.magetab.sdrf.Normalization();34 def study = new Study(); 35 def person = new Person(); 36 //def protocol = new dbnp.transcriptomics.magetab.idf.MAGEProtocol(); 37 def publication = Publication(); 38 //def normalization = new dbnp.transcriptomics.magetab.sdrf.Normalization(); 40 39 //def termSource = new dbnp.transcriptomics.magetab.adf.Termsource(); 41 def comment = new dbnp.transcriptomics.magetab.idf.Comment();42 def experimentalInfo = new dbnp.transcriptomics.magetab.idf.ExperimentalInfo();43 def factor = new dbnp.transcriptomics.magetab.idf.Factor();40 //def comment = new dbnp.transcriptomics.magetab.idf.Comment(); 41 //def experimentalInfo = new dbnp.transcriptomics.magetab.idf.ExperimentalInfo(); 42 //def factor = new dbnp.transcriptomics.magetab.idf.Factor(); 44 43 45 44 //ArrayList rows = new ArrayList(); 45 46 // TODO: remap to dbnp studycapturing data model + extra template fields for MIAMI studies 46 47 47 48 for (i in fileReader.readLines()){ … … 219 220 } 220 221 else if (tmp_list[0]=="Publication Status") { 221 def status = new dbnp.transcriptomics.magetab.idf.OntologyTerm();222 def status = new Term(); 222 223 status.text = tmp_list[1]; 223 224 status.save(); … … 239 240 //todo list of type 240 241 else if (tmp_list[0]=="Protocol Type") { 241 def type = new dbnp.transcriptomics.magetab.idf.OntologyTerm();242 def type = new Term(); 242 243 for (j in 1..tmp_list.size()){ 243 244 type.text = tmp_list[j]; -
trunk/grails-app/domain/dbnp/studycapturing/Assay.groovy
r162 r184 9 9 10 10 String name 11 Assay Type type12 String platform11 AssayModule module 12 long externalAssayId 13 13 14 14 static hasMany = [samples : Sample] -
trunk/grails-app/domain/dbnp/studycapturing/Protocol.groovy
r162 r184 14 14 Term reference 15 15 16 static hasMany = [parameters : ProtocolParameter ]16 static hasMany = [parameters : ProtocolParameter, compounds: Compound] 17 17 static constraints = { } 18 18 -
trunk/grails-app/domain/dbnp/studycapturing/Study.groovy
r177 r184 27 27 groups: SubjectGroup, 28 28 events: Event, 29 samplingEvents: SamplingEvent 29 samplingEvents: SamplingEvent, 30 persons: StudyPerson, 31 publications: Publication 30 32 ] 31 33
Note: See TracChangeset
for help on using the changeset viewer.