예제 #1
0
    def add_dyn_input_hook(self, exp, dyn_port, new_port):
        """
            @type new_port: InputBlockField
        """
        new_inner_output_train = InnerOutputField(
            name="%s_train_i" % new_port.name,
            provided_data_type=new_port.required_data_type)
        new_inner_output_test = InnerOutputField(
            name="%s_test_i" % new_port.name,
            provided_data_type=new_port.required_data_type)
        self.inner_output_es_names_map[new_port.name] = \
            (new_inner_output_train.name, new_inner_output_test.name)

        self.register_inner_output_variables(
            [new_inner_output_train, new_inner_output_test])
예제 #2
0
    def __init__(self, *args, **kwargs):
        super(MassUpload, self).__init__(*args, **kwargs)
        self.es_mRNA_matrices = MultiUploadField()
        self.es_miRNA_matrices = MultiUploadField()

        self.pheno_matrices = MultiUploadField()

        self.pheno_by_es_names = {}

        self.labels = []
        self.seq = []
        self.register_inner_output_variables([InnerOutputField(
            name="mRNA_es",
            provided_data_type="ExpressionSet"
        ), InnerOutputField(
            name="miRNA_es",
            provided_data_type="ExpressionSet"
        )])
예제 #3
0
    def finish_cells_prototype_definition(self, exp, *args, **kwargs):
        self.is_cells_prototype_defined = True

        for field_prototype in self.cells_prototype.cells_list:
            new_inner_output = InnerOutputField(
                name=field_prototype.name,
                provided_data_type=field_prototype.data_type)
            self.register_inner_output_variables([new_inner_output])

        exp.store_block(self)