コード例 #1
0
 def processPicklist(self):
     """
     Process uploaded picklist file and updates soaks accordingly
     """
     from .utils.experiment_utils import processPicklist as func
     if getattr(self, 'picklist'):
         return func(self, self.picklist.local_upload.file) 
コード例 #2
0
    def createSrcPlatesFromLibFile(self, numPlates, file):
        """
        Creates source plates from CSV file (https://docs.google.com/spreadsheets/d/1FRBm6wVNSpwg4d3zGCYKLQkEZjf4BP9JL0YkEJzSojw/edit?usp=sharing)
        Then update wells with the appropriate compounds specified from csv file

        Parameters:
        numPlates (int): number of empty plates to make
        file (uploaded file): CSV file to update wells with appropriate compounds (see example file above)
        """
        from .utils.experiment_utils import createSrcPlatesFromLibFile as func
        return func(self, numPlates, file)
コード例 #3
0
    def matchSrcWellsToSoaks(self, src_wells=[], soaks=[]):
        """
        Match soaks to source wells by looping through one-by-one
        
        Parameters:
        src_wells (list): List of an experiment's source wells with compounds
        soaks (list): List of an experiment's used soaks 

        Returns:
        None
        """
        from .utils.experiment_utils import matchSrcWellsToSoaks as func
        return func(self, src_wells, soaks)
コード例 #4
0
    def interleaveSrcWellsToSoaks(self, src_wells=[], soaks=[]):
        """
        Match soaks to source wells interleaved by plate id

        Parameters:
        src_wells (list): List of an experiment's source wells with compounds
        soaks (list): List of an experiment's used soaks 

        Returns:
        None
        """
        from .utils.experiment_utils import interleaveSrcWellsToSoaks as func
        return func(self, src_wells, soaks)
コード例 #5
0
 def removeDropImages(self):
     from .utils.plate_utils import removeDropImages as func
     return func(self)
コード例 #6
0
 def copyCompoundsFromOtherPlate(self, plate):
     """
     Takes other plate (isTemplate must be True) and copy its compounds in the appropriate well locations
     """
     from .utils.plate_utils import copyCompoundsFromOtherPlate as func
     return func(self, plate)
コード例 #7
0
 def updateCompounds(self, compounds, compound_dict={}):
     """
     """
     from .utils.plate_utils import updateCompounds as func
     return func(self, compounds, compound_dict)
コード例 #8
0
 def createPlateWells(self):
     """
     """
     from .utils.plate_utils import createPlateWells as func
     return func(self)
コード例 #9
0
 def getModalFormData(cls):
     """
     Class method to return data needed for modal form to edit and make new instance of model
     """ 
     from my_utils.views_helper import build_modal_form_data as func
     return func(cls) 
コード例 #10
0
 def createPlatesSoaksFromInitDataJSON(self):
     from .utils.experiment_utils import createPlatesSoaksFromInitDataJSON as func
     return func(self)
コード例 #11
0
 def makePlates(self, num_plates, plate_type, plates_init_data=None):
     from .utils.experiment_utils import makePlates as func
     return func(self, num_plates, plate_type, plates_init_data=None)
コード例 #12
0
 def makeDestPlates(self, num_plates):
     from .utils.experiment_utils import makeDestPlates as func
     return func(self, num_plates)
コード例 #13
0
 def priorityInterleaveSrcWellsToSoaks(self, src_wells=[], soaks=[]):
     from .utils.experiment_utils import priorityInterleaveSrcWellsToSoaks as func
     return func(self, src_wells, soaks)
コード例 #14
0
 def setSoaksDatasetToDefault(self):
     from .utils.experiment_utils import setSoaksDatasetToDefault as func
     return func(self)