예제 #1
0
 def parameters(cls):
     parameters = [
         ParameterFactory.format(),
         ParameterFactory.sequence_names(required=True),
         ParameterFactory.sequences(required=True),
     ]
     return parameters
예제 #2
0
 def parameters(cls):
     parameters = [
                   ParameterFactory.format(),
                   ParameterFactory.sequence_names(required=True),
                   ParameterFactory.sequences(required=True),
                  ]
     return parameters
예제 #3
0
 def process_request(cls, params_dict):
     sequences      = params_dict[ParameterFactory.sequences(required=True)]
     sequence_names = params_dict[ParameterFactory.sequence_names(required=True)]
     
     # Every sequence must have an accompanying name
     if len(sequences) != len(sequence_names):
         return (None, None, None)
     
     data = list()
     for i, sequence in enumerate(sequences):
         melting_temp = cls._IDT_CLIENT.get_melting_temp(sequence)
         data.append({"Name": sequence_names[i], 
                      "Sequence": sequence,
                      "Tm": melting_temp.tm})
     columns = ["Name", "Sequence", "Tm"]
     return (data, columns, None)
예제 #4
0
    def process_request(cls, params_dict):
        sequences = params_dict[ParameterFactory.sequences(required=True)]
        sequence_names = params_dict[ParameterFactory.sequence_names(
            required=True)]

        # Every sequence must have an accompanying name
        if len(sequences) != len(sequence_names):
            return (None, None, None)

        data = list()
        for i, sequence in enumerate(sequences):
            melting_temp = cls._IDT_CLIENT.get_melting_temp(sequence)
            data.append({
                "Name": sequence_names[i],
                "Sequence": sequence,
                "Tm": melting_temp.tm
            })
        columns = ["Name", "Sequence", "Tm"]
        return (data, columns, None)