Changeset 544
- Timestamp:
- Jan 18, 2008, 10:11:45 AM (15 years ago)
- Location:
- branches/uk_ac_ebi_Tab2MageImporter
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/uk_ac_ebi_Tab2MageImporter/jsp/uk/ac/ebi/nugo/plugins/configureImporter.jsp
r543 r544 97 97 98 98 <input type="hidden" name="file_id" value=""> 99 <input type="hidden" name="parameter:zipFile" value="" id="zipFile"> 100 <input type="hidden" name="parameter:useWizard" value="yes" id="useWizard"> 99 <input type="hidden" name="parameter:path" value="" id="zipFile"> 101 100 <input type="hidden" name="parameter:experimentId" value="<%=experimentId %>" id="experimentId"> 101 102 103 <input type="hidden"name="parameter:domain" value="<%=inputDataBean.getDomain()%>" /> 104 <input type="hidden"name="parameter:accession" value="<%=inputDataBean.getAccession()%>" /> 105 <input type="hidden"name="parameter:qualityControl" value="<%=inputDataBean.getQualityControl()%>" /> 106 <input type="hidden"name="parameter:experimentalDesign" value="<%=inputDataBean.getExperimentalDesign()%>" /> 107 <input type="hidden"name="parameter:experimentName" value="<%=inputDataBean.getExperimentName()%>" /> 108 <input type="hidden"name="parameter:description" value="<%=inputDataBean.getDescription()%>" /> 109 <input type="hidden"name="parameter:releaseDate" value="<%=inputDataBean.getReleaseDate()%>" /> 110 <input type="hidden"name="parameter:submissionDate" value="<%=inputDataBean.getSubmissionDate()%>" /> 111 <input type="hidden"name="parameter:submitter" value="<%=inputDataBean.getSubmitter()%>" /> 112 <input type="hidden"name="parameter:organization" value="<%=inputDataBean.getOrganization()%>" /> 113 <input type="hidden"name="parameter:publicationTitle" value="<%=inputDataBean.getPublicationTitle()%>" /> 114 <input type="hidden"name="parameter:authors" value="<%=inputDataBean.getAuthors()%>" /> 115 <input type="hidden"name="parameter:journal" value="<%=inputDataBean.getJournal()%>" /> 116 <input type="hidden"name="parameter:volume" value="<%=inputDataBean.getVolume()%>" /> 117 <input type="hidden"name="parameter:issue" value="<%=inputDataBean.getIssue()%>" /> 118 <input type="hidden"name="parameter:pages" value="<%=inputDataBean.getPages()%>" /> 119 <input type="hidden"name="parameter:year" value="<%=inputDataBean.getYear()%>" /> 120 <input type="hidden"name="parameter:pubmedId" value="<%=inputDataBean.getPubmedId()%>" /> 121 <input type="hidden"name="parameter:experimentId" value="<%=inputDataBean.getExperimentId()%>" /> 122 <input type="hidden"name="parameter:treatmentProtocol" value="<%=inputDataBean.getTreatmentProtocol()%>" /> 123 <input type="hidden"name="parameter:extractionProtocol" value="<%=inputDataBean.getExtractionProtocol()%>" /> 124 <input type="hidden"name="parameter:labelingProtocol" value="<%=inputDataBean.getLabelingProtocol()%>" /> 125 <input type="hidden"name="parameter:hybridizationProtocol" value="<%=inputDataBean.getHybridizationProtocol()%>" /> 126 <input type="hidden"name="parameter:scanningProtocol" value="<%=inputDataBean.getScanningProtocol()%>" /> 127 <input type="hidden"name="parameter:treatmentProtocolParams" value="<%=inputDataBean.getTreatmentProtocolParams()%>" /> 128 <input type="hidden"name="parameter:extractionProtocolParams" value="<%=inputDataBean.getExtractionProtocolParams()%>" /> 129 <input type="hidden"name="parameter:labelingProtocolParams" value="<%=inputDataBean.getLabelingProtocolParams()%>" /> 130 <input type="hidden"name="parameter:hybridizationProtocolParams" value="<%=inputDataBean.getHybridizationProtocolParams()%>" /> 131 <input type="hidden"name="parameter:scanningProtocolParams" value="<%=inputDataBean.getScanningProtocolParams()%>" /> 132 <input type="hidden"name="parameter:platform" value="<%=inputDataBean.getPlatform()%>" /> 133 <input type="hidden"name="parameter:organism" value="<%=inputDataBean.getOrganism()%>" /> 134 <input type="hidden"name="parameter:numDesigns" value="<%=inputDataBean.getNumDesigns()%>" /> 135 <input type="hidden"name="parameter:dyeSwap" value="<%=inputDataBean.getDyeSwap()%>" /> 136 <input type="hidden"name="parameter:refSample" value="<%=inputDataBean.getRefSample()%>" /> 137 <input type="hidden"name="parameter:numTreatmentGroups" value="<%=inputDataBean.getNumTreatmentGroups()%>" /> 138 <input type="hidden"name="parameter:expFactors" value="<%=inputDataBean.getExpFactors()%>" /> 139 <input type="hidden"name="parameter:numReplicates" value="<%=inputDataBean.getNumReplicates()%>" /> 140 <input type="hidden"name="parameter:tissues" value="<%=inputDataBean.getTissues()%>" /> 141 <input type="hidden"name="parameter:pooling" value="<%=inputDataBean.getPooling()%>" /> 142 <input type="hidden"name="parameter:subjectNames" value="<%=inputDataBean.getSubjectNames()%>" /> 143 <input type="hidden"name="parameter:fileList" value="<%=inputDataBean.getFileList()%>" /> 144 <input type="hidden"name="parameter:subjectList" value="<%=inputDataBean.getSubjectList()%>" /> 145 <input type="hidden"name="parameter:tissueList" value="<%=inputDataBean.getTissueList()%>" /> 146 <input type="hidden"name="parameter:useWizard" value="<%=inputDataBean.getUseWizard()%>" /> 147 <input type="hidden"name="parameter:legacyData" value="<%=inputDataBean.getLegacyData()%>" /> 148 <input type="hidden"name="parameter:mappingsMode" value="<%=inputDataBean.getMappingsMode()%>" /> 149 <input type="hidden"name="parameter:fileList" value=""/> 150 <input type="hidden"name="parameter:subjectList" value=""/> 151 <input type="hidden"name="parameter:tissueList" value=""/> 152 153 102 154 103 155 <h1>Tab2MAGE Import Wizard -- Select Your Data File</h1> -
branches/uk_ac_ebi_Tab2MageImporter/jsp/uk/ac/ebi/nugo/plugins/experiment.jsp
r543 r544 186 186 <option>real time PCR quality control</option> 187 187 <option>reverse transcription PCR quality control</option> 188 <option selected="selected">spike quality control</option>188 <option >spike quality control</option> 189 189 <option>technical replicate</option> 190 190 </select></td> … … 213 213 <div id="BiologicalProperty" style="display:none"><select 214 214 multiple="multiple" name="biologicalProperty" size="16"> 215 <option selected="selected">cell_component_comparison_design</option>215 <option>cell_component_comparison_design</option> 216 216 <option>cell_cycle_design</option> 217 217 <option>cell_type_comparison_design</option> … … 227 227 <option>sex_design</option> 228 228 <option>species_design</option> 229 <option >strain_or_line_design</option>229 <option selected="selected">strain_or_line_design</option> 230 230 <option>unknown_experiment_design_type</option> 231 231 </select></div> … … 243 243 <div id="BioMolecularAnnotation" style="display:none"><select 244 244 multiple="multiple" name="bioMolecularAnnotation" size="11"> 245 <option selected="selected">RNA_stability_design</option>245 <option>RNA_stability_design</option> 246 246 <option>binding_site_identification_design</option> 247 247 <option>co-expression_design</option> … … 270 270 <option>clinical_history_design</option> 271 271 <option>disease_state_design</option> 272 <option selected="selected">family_history_design</option>272 <option>family_history_design</option> 273 273 <option>unknown_experiment_design_type</option> 274 274 </select></div> … … 379 379 <td class="boldText">Experiment Description:</td> 380 380 <td class="input"><textarea rows="4" cols="30" 381 name="description"> This is a totally contrived example experiment.</textarea></td>381 name="description">my test description</textarea></td> 382 382 <td class="helpText">A short paragraph describing the purpose of the experiment.</td> 383 383 </tr> … … 387 387 <td class="boldText">Release Date:</td> 388 388 <td class="input"><input type="text" size="10" 389 name="releaseDate" value="2007- 12-03" /></td>389 name="releaseDate" value="2007-05-15" /></td> 390 390 <td class="helpText">Date for public release, in the format YYYY-MM-DD.</td> 391 391 </tr> … … 394 394 <td class="boldText">Submission Date:</td> 395 395 <td class="input"><input type="text" size="10" 396 name="submissionDate" value="2007- 12-03" /></td>396 name="submissionDate" value="2007-05-30" /></td> 397 397 <td class="helpText">Date of submission, in the format YYYY-MM-DD.</td> 398 398 </tr> … … 401 401 <td class="boldText">Submitter:</td> 402 402 <td class="input"><input type="text" size="45" name="submitter" 403 value=" Joe Bloggs" /></td>403 value="Micha Bayer" /></td> 404 404 <td class="helpText">The name of the person responsible for submitting the 405 405 experiment to the database.</td> … … 424 424 <td class="plainLabel" style="border-style: none;">Title:</td> 425 425 <td class="input" style="border-style: none;"><textarea rows="3" cols="30" 426 name="publicationTitle" >My Ropey Paper</textarea></td>426 name="publicationTitle" >My crazy title</textarea></td> 427 427 <td style="border-style: none;"></td> 428 428 </tr> … … 430 430 <tr> 431 431 <td class="plainLabel" style="border-style: none;">Authors:</td> 432 <td class="input" style="border-style: none;"><textarea rows="3" cols="30" name="authors"> Bloggs, Joe</textarea></td>432 <td class="input" style="border-style: none;"><textarea rows="3" cols="30" name="authors">Micha Bayer; Joe Bloggs</textarea></td> 433 433 <td class="helpText" style="border-style: none;">The authors list is a semicolon-delimited list of names.</td> 434 434 </tr> … … 444 444 <td class="plainLabel" style="border-style: none;">Volume:</td> 445 445 <td class="input" style="border-style: none;"><input type="text" size="10" name="volume" 446 value=" 5" /></td>446 value="1" /></td> 447 447 <td style="border-style: none;"></td> 448 448 </tr> … … 451 451 <td class="plainLabel" style="border-style: none;">Issue:</td> 452 452 <td class="input" style="border-style: none;"><input type="text" size="10" name="issue" 453 value=" 2" /></td>453 value="1" /></td> 454 454 <td style="border-style: none;"></td> 455 455 </tr> … … 458 458 <td class="plainLabel" style="border-style: none;">Pages:</td> 459 459 <td class="input" style="border-style: none;"><input type="text" size="10" name="pages" 460 value="1 23-135" /></td>460 value="112-122" /></td> 461 461 <td style="border-style: none;"></td> 462 462 </tr> … … 472 472 <td class="plainLabel" style="border-style: none;">Pubmed ID:</td> 473 473 <td class="input" style="border-style: none;"><input type="text" size="30" name="pubmedId" 474 value=" 11009762" /></td>474 value=" " /></td> 475 475 <td style="border-style: none;"></td> 476 476 -
branches/uk_ac_ebi_Tab2MageImporter/jsp/uk/ac/ebi/nugo/plugins/hybridizations.jsp
r543 r544 91 91 92 92 <input type="hidden" name="file_id" value=""> 93 <input type="hidden" name="zipFile" value="/home/michab/ affyTestFiles.zip" id="zipFile">93 <input type="hidden" name="zipFile" value="/home/michab/potato_small.zip" id="zipFile"> 94 94 95 95 <h1>Tab2MAGE Import Wizard -- Your Hybridizations</h1> … … 109 109 <option >BZScan</option> 110 110 <option >ChipSkipper</option> 111 <option >GenePix</option>111 <option selected="selected">GenePix</option> 112 112 <option >GeneTAC</option> 113 113 <option >Illumina</option> … … 124 124 <tr> 125 125 <td class="boldText">Experimental organism:</td> 126 <td class="input"><input type="text" size="50" name="organism" value=" Solanum tuberosum"/></td>126 <td class="input"><input type="text" size="50" name="organism" value="Hordeum vulgare"/></td> 127 127 <td>The full scientific name of the experimental organism used.</td> 128 128 </tr> … … 139 139 <tr> 140 140 <td class="boldText">Dye-swap</td> 141 <td class="input">yes <input type="radio" name="dyeSwap" value="yes"> no <input type="radio" 142 name="dyeSwap" value="no" checked="checked"> <br> 143 141 <td class="input"> 142 <table class="noBorder" cellpadding="4"> 143 <tr> 144 <td class="noBorder"><input type="radio" name="dyeSwap" value="yes"></td> 145 <td class="noBorder">yes</td> 146 </tr> 147 148 <tr> 149 <td class="noBorder"><input type="radio" name="dyeSwap" value="no" checked="checked"></td> 150 <td class="noBorder">no</td> 151 </tr> 152 </table> 144 153 </td> 145 154 <td>If you used a dye-swap design please indicate this here.</td> … … 149 158 <tr> 150 159 <td class="boldText">Reference sample</td> 151 <td class="input">yes <input type="radio" name="refSample" value="yes" > no <input type="radio" 152 name="refSample" value="no" checked="checked"></td> 160 <td class="input"> 161 <table class="noBorder" cellpadding="4"> 162 <tr> 163 <td class="noBorder"><input type="radio" name="refSample" value="yes"></td> 164 <td class="noBorder">yes</td> 165 </tr> 166 167 <tr> 168 <td class="noBorder"><input type="radio"name="refSample" value="no" checked="checked"></td> 169 <td class="noBorder">no</td> 170 </tr> 171 </table> 172 </td> 153 173 <td>If you used a reference sample please indicate this here.</td> 154 174 </tr> … … 186 206 <tr> 187 207 <td class="boldText">Subject (replicate) labels:</td> 188 <td class="input"><textarea rows="8" cols="32" name="subjectNames"> plant1</textarea></td>208 <td class="input"><textarea rows="8" cols="32" name="subjectNames"></textarea></td> 189 209 <td>Please provide a list of labels(names) for the experimental subjects, one per line, 190 210 in no particular order (copy and paste from Excel works).</td> … … 201 221 <tr> 202 222 <td class="boldText">Sample pooling:</td> 203 <td class="input">yes <input type="radio" name="pooling" value="yes"> no <input type="radio" 204 name="pooling" value="no" checked="checked"></td> 223 <td class="input"> 224 <table class="noBorder" cellpadding="4"> 225 <tr> 226 <td class="noBorder"><input type="radio" name="pooling" value="yes"></td> 227 <td class="noBorder">yes</td> 228 </tr> 229 <tr> 230 <td class="noBorder"><input type="radio" name="pooling" value="no" checked="checked"></td> 231 <td class="noBorder">no</td> 232 </tr> 233 </table> 234 </td> 205 235 <td>If the samples were pooled please indicate this here.</td> 206 236 </tr> -
branches/uk_ac_ebi_Tab2MageImporter/jsp/uk/ac/ebi/nugo/plugins/mappings.jsp
r543 r544 160 160 //we also need to parse out the tissues string to produce another column of select boxes 161 161 String [] tissueNames = inputDataBean.getTissues().split("\n"); 162 163 164 //work out the number of hybridizations 165 int numReplicates = Integer.parseInt(inputDataBean.getNumReplicates()); 166 int numTreatmentGroups =Integer.parseInt(inputDataBean.getNumTreatmentGroups()); 167 int numTissues = inputDataBean.getTissues().split("\n").length; 168 int numHybs = Tab2MageWriter.calcNumHybs( numReplicates, numTreatmentGroups, numTissues); 169 System.out.println("numHybs = " + numHybs); 170 System.out.println("products.length = " + products.length); 162 171 %> 163 172 … … 195 204 196 205 <% 197 for (int i = 0; i < products.length; i++)206 for (int i = 0; i < numHybs; i++) 198 207 { 199 208 %> -
branches/uk_ac_ebi_Tab2MageImporter/jsp/uk/ac/ebi/nugo/plugins/protocols.jsp
r543 r544 144 144 <tr> 145 145 <td class="boldText">Treatment</td> 146 <td class="input"><textarea rows="8" cols="35" name="treatmentProtocol"> my treatment protocol text</textarea></td>147 <td class="input_topaligned"><textarea rows="3" cols="35" name="treatmentProtocolParams"> param1</textarea></td>146 <td class="input"><textarea rows="8" cols="35" name="treatmentProtocol">All chemicals tested were supplied by Merck (Darmstadt, Germany) or Aldrich (Hannover, Germany). All were of highest purity grade.</textarea></td> 147 <td class="input_topaligned"><textarea rows="3" cols="35" name="treatmentProtocolParams">medium;CO2;antibiotics</textarea></td> 148 148 </tr> 149 149 150 150 <tr> 151 151 <td class="boldText">Extraction</td> 152 <td class="input"><textarea rows="8" cols="35" name="extractionProtocol"> my extraction protocol text</textarea></td>153 <td class="input_topaligned"><textarea rows="3" cols="35" name="extractionProtocolParams"> param2</textarea></td>152 <td class="input"><textarea rows="8" cols="35" name="extractionProtocol">RNA was isolated using a FastPrep instrument (Q-Biogene, Irvine USA) and Rneasy reagents (Qiagen, Hilden Germany). RNA quality was checked with a 2100 Bioanalyser (Agilent Technologies, Palo Alto USA) by assessing the 28S/18S rRNA ratio.</textarea></td> 153 <td class="input_topaligned"><textarea rows="3" cols="35" name="extractionProtocolParams"></textarea></td> 154 154 </tr> 155 155 156 156 <tr> 157 157 <td class="boldText">Labeling</td> 158 <td class="input"><textarea rows="8" cols="35" name="labelingProtocol"> mylabeling protocol text </textarea></td>159 <td class="input_topaligned"><textarea rows="3" cols="35" name="labelingProtocolParams"> param3</textarea></td>158 <td class="input"><textarea rows="8" cols="35" name="labelingProtocol">labeling protocol text </textarea></td> 159 <td class="input_topaligned"><textarea rows="3" cols="35" name="labelingProtocolParams"></textarea></td> 160 160 </tr> 161 161 162 162 <tr> 163 163 <td class="boldText">Hybridization</td> 164 <td class="input"><textarea rows="8" cols="35" name="hybridizationProtocol"> myhybs protocol text </textarea></td>165 <td class="input_topaligned"><textarea rows="3" cols="35" name="hybridizationProtocolParams"> param4</textarea></td>164 <td class="input"><textarea rows="8" cols="35" name="hybridizationProtocol">hybs protocol text </textarea></td> 165 <td class="input_topaligned"><textarea rows="3" cols="35" name="hybridizationProtocolParams">temperature(degree_C) ; duration(hr)</textarea></td> 166 166 </tr> 167 167 168 168 <tr> 169 169 <td class="boldText">Scanning</td> 170 <td class="input"><textarea rows="8" cols="35"name="scanningProtocol"> myscanning protocol text </textarea></td>171 <td class="input_topaligned"><textarea rows="3" cols="35" name="scanningProtocolParams"> param5</textarea></td>170 <td class="input"><textarea rows="8" cols="35"name="scanningProtocol">scanning protocol text </textarea></td> 171 <td class="input_topaligned"><textarea rows="3" cols="35" name="scanningProtocolParams"></textarea></td> 172 172 </tr> 173 173 -
branches/uk_ac_ebi_Tab2MageImporter/jsp/uk/ac/ebi/nugo/plugins/submit.jsp
r543 r544 59 59 String value = (String)field.get(inputDataBean); 60 60 String fieldName = field.getName(); 61 62 if(!value.trim().equals("default")) 63 { 61 64 %> 62 65 … … 69 72 70 73 <% 74 } 71 75 } 72 76 %> … … 80 84 <input type="hidden" name="requestId" value="<%=requestId%>"/> 81 85 <input type="hidden"name="parameter:domain" value="<%=inputDataBean.getDomain()%>" /> 82 <input type="hidden"name="parameter:accession" value=" E-SCRI-002" />86 <input type="hidden"name="parameter:accession" value="<%=inputDataBean.getAccession()%>" /> 83 87 <input type="hidden"name="parameter:qualityControl" value="<%=inputDataBean.getQualityControl()%>" /> 84 88 <input type="hidden"name="parameter:experimentalDesign" value="<%=inputDataBean.getExperimentalDesign()%>" /> -
branches/uk_ac_ebi_Tab2MageImporter/jsp/uk/ac/ebi/nugo/plugins/userchoice1.jsp
r543 r544 13 13 final String requestId = request.getParameter("requestId"); 14 14 15 System.out.println("userchoice1.jsp: inputDataBean = " + inputDataBean.toString());16 System.out.println("userchoice1.jsp: ID = " + ID);17 15 %> 18 16 -
branches/uk_ac_ebi_Tab2MageImporter/src/uk/ac/ebi/nugo/plugins/CartesianProduct.java
r528 r544 10 10 {"1h","12h", "24h"} 11 11 }; 12 getCartesianProduct (values);13 12 13 String [][] products = getCartesianProduct (values); 14 15 for (int i = 0; i < products.length; i++) 16 { 17 for (int j = 0; j < products[i].length; j++) 18 { 19 System.out.print (products[i][j] + " "); 20 } 21 System.out.println(); 22 } 14 23 } 15 24 25 //returns a 2d array of Strings where each outer element represents a distinct factor value combination 26 //and each inner element represents a factor value 16 27 public static String [][] getCartesianProduct (String[][] values) 17 28 { -
branches/uk_ac_ebi_Tab2MageImporter/src/uk/ac/ebi/nugo/plugins/DataBean.java
r532 r544 1 1 package uk.ac.ebi.nugo.plugins; 2 3 import java.lang.reflect.Field; 2 4 3 5 public class DataBean … … 52 54 public String mappingsMode; 53 55 56 public DataBean() 57 { 58 initDefaults(); 59 } 60 61 private void initDefaults() 62 { 63 try 64 { 65 Class cls = Class.forName("uk.ac.ebi.nugo.plugins.DataBean"); 66 Field [] fields = cls.getDeclaredFields(); 67 for (int i = 0; i < fields.length; i++) 68 { 69 fields[i].set(this, "default"); 70 } 71 } 72 catch (Exception e) 73 { 74 e.printStackTrace(); 75 } 76 } 77 54 78 55 79 public String getAccession() -
branches/uk_ac_ebi_Tab2MageImporter/src/uk/ac/ebi/nugo/plugins/Tab2MageImporter.java
r543 r544 6 6 package uk.ac.ebi.nugo.plugins; 7 7 8 import java.io.BufferedWriter; 8 9 import java.io.IOException; 9 10 import java.io.InputStream; 11 import java.io.OutputStreamWriter; 12 import java.io.Writer; 10 13 import java.util.Arrays; 11 14 import java.util.Calendar; … … 117 120 for (int i = 0; i < paramNames.length; i++) 118 121 { 119 PluginParameter<String> param = new PluginParameter<String>(paramNames[i],paramNames[i],paramNames[i], stringPT);122 PluginParameter<String> param = new PluginParameter<String>(paramNames[i],paramNames[i],paramNames[i],null, stringPT); 120 123 params.add(param); 121 124 } … … 381 384 382 385 //if we are in wizard mode, generate the tab2mage file automatically 383 Tab2MageWriter t2mWriter = new Tab2MageWriter(job, dir,sc,paramNames);386 File statusFile= null; 384 387 if(useWizard.equals("yes")) 385 388 { 389 Tab2MageWriter t2mWriter = new Tab2MageWriter(job, dir,sc,paramNames); 386 390 //now write the tab2mage file to the user's home dir on the server so it can be consumed by the plugin 387 391 //this takes all the inputs provided by the user on the custom interface (input.jsp) 388 392 //give the file a unique name so we don't get any conflicts 389 t2mWriter.writeTab2MageFile(); 390 } 391 t2mWriter.writeStatusFile(); 392 File statusFile = File.getByPath(dc, new Path(dir.getPath()+"/statusReport.txt",Path.Type.FILE ), false); 393 t2mWriter.writeTab2MageFile(); 394 t2mWriter.writeStatusFile(); 395 } 396 else 397 { 398 //need to write the status file here 399 String statusPath = dir.getName() + "/statusReport.txt"; 400 statusFile=Helper.processFilePath(user,overwrite, sc,statusPath); 401 } 402 403 statusFile = File.getByPath(dc, new Path(dir.getPath()+"/statusReport.txt",Path.Type.FILE ), false); 393 404 System.out.println("statusFile = "+ statusFile.getPath()); 394 405 395 396 406 397 407 //VALIDATION MODULE -
branches/uk_ac_ebi_Tab2MageImporter/src/uk/ac/ebi/nugo/plugins/Tab2MageWriter.java
r543 r544 476 476 // ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 477 477 478 private int calcNumHybs() 479 { 480 // get values for the parameters we need here 481 int numReps = Integer.parseInt(numReplicates); 482 int numTreats = Integer.parseInt(numTreatmentGroups); 483 int numTissues = tissues.split(",").length; 478 public static int calcNumHybs(int numReplicates, int numTreatmentGroups, int numTissues) 479 { 484 480 // Number of hybridizations (NH) = Number of subjects (NS) x 485 481 // Number of Target Tissue (NTT) x Number of Study groups (NSG) 486 return numRep s * numTissues * numTreats;482 return numReplicates * numTissues * numTreatmentGroups; 487 483 } 488 484
Note: See TracChangeset
for help on using the changeset viewer.