-
Notifications
You must be signed in to change notification settings - Fork 0
/
odds and ends
142 lines (80 loc) · 4.16 KB
/
odds and ends
1
dlpex566errIs029no coinjection, but chromo is iiwhat if we were to set the post variable$_POST['transgeneArray_htmlName'] to the id of the original elementwe would need to know which array to use and which idneed to pass idthe class would know which elementproblem for single elemnent since it won't know which element unless we subclass all the elementsalternative cheat is to use a switch statementbut we'd need to know when we are editingdoesItAlreadyExist(element_id, editedstate)it must reassign a post variable and I don't know if that can be doneif editedstate is false, then just supply a button that goes to new screen for the selected element)how does it know which element. the proper way is to subclass the sigle element item, but I don't want to have separate pages for each of them. single element has its own doesitexist1) we could have data2blob in common functions2) button would have saveas code, but obvious problem is nexthow do we associate the text to the buttoncould we have a hidden field problem then is there may be 50 buttons on the screen; how do we map each button to each piece of text?not so obvious<button id="button-66" type="button" class="btn btn-info">download sequence data</button>each plasmid will have a different id; it will use the id to retrieve the sequence data from the corresponding hidden variablesay we have plasmid with id 66we have a hidden field with "sequence-66"externally-sourced extra-chromosomal: 1) the associated chromosomal is dimmed 2) coinjection is available 3) plasmids are availableexternally-sourced integrated: 1) the associated chromosomal is dimmed 2) coinjection is dimmed 3) plasmids is dimmedlab-produced extra-chromosomal 1) the associated chromosomal is dimmed 2) coinjection is available 3) plasmids is availablelab-produced integrated 1) the associated chromosomal is available 2) coinjection is dimmed 3) plasmids is dimmedadd a checkbox which itself is enabled only for lab-produced integrated. If it's checked, undim coinjection and plasmids. also, for the search, if there is an extra-choromsomal transgene, then dipslay its coinjection markers and plasmidsif it's integrated, the items are disabled. so we have another state if extra-choromsomal transgene selector has no selected item one idea have an N/A item for selectize or a button, I don't have an extra-chromosomal itemfirst question how can I have N/A item in transgene. Extra-chromosomal is unknown item.1) lab-produced and integrated enable checkbox: is extra-chromsomal is not knownfor all other instances, button is hidden2) selecting it causes coinjection marker and plasmids to enable 3) deselect it causes them to re disableepvEx302 with coinjection 17 and plasmids 999 and 98 in wpc-111strain epo454 has transgene kurIs38 which in turn has epvEx302 as an external transgene; log doesn't record thisF-003, E1-3; N-001, H4jThe specified value does not conform to the required format, "yyyy-MM-dd".we need a list of every frozen entry in the database we figure out the last entry, then looop through buildFrozenList buildNitrogenList$theMaxFrozenNumber = $theMaxFrozenLetters = $this->returnCurrentFreezerNitrogenNumbers($theMaxFrozenNumber,$ theMaxFrozenLetters, $theMaxNitrogenNumber, $ theMaxNitrogenLetters);$theMaxFullFreezerNumber = "F-" . sprintf("%03d", $ theMaxFrozenNumber) . ", " . $ theMaxFrozenLetters;$theMaxFullNitrogenNumber = "N-" . sprintf("%03d", $ theMaxNitrogenNumber) . ", " . $ theMaxNitrogenLetters;$theStrain->returnFreezerNitrogenArrays($theFreezerArray,$theNitrogenArray)foreach ($theFreezerArray as $theFreezerEntry) {}foreach ($theNitrogenArray as $theNitrogenEntry) {} echo "<select id='freezerArrayID'name='freezerArrayName' placeholder='freezer location'>";echo "<option value=''>'freezer location'</option>";foreach($theArray as $row) { echo "<option value=\"$id\">$name</option>";}echo "</select>";are there enough entries to accommodate all the possible strain27 x 999 = 26,973 maximum number of strains should it accommodate more If I've calculated correctly, the database can specify up to 26,973 strain locations. Will that be enough?