@classmethod
def build_from_config(cls, config, dependencies):
    """Rebuild the task and the sequence from a config file.

        """
    builder = cls.mro()[1].build_from_config.__func__
    task = builder(cls, config, dependencies)
    if 'sequence' in config:
        pulse_dep = dependencies['exopy.pulses.item']
        builder = pulse_dep['exopy_pulses.RootSequence']
        conf = config['sequence']
        seq = builder.build_from_config(conf, dependencies)
        task.sequence = seq
    return task
