def consume_feature(self, feature):
if not isinstance(feature, tag.feature.Feature):<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>self[feature.seqid][feature.start:feature.end] = feature<EOL>if feature.seqid not in self.inferred_regions:<EOL><INDENT>self.inferred_regions[feature.seqid] = feature._range.copy()<EOL><DEDENT>newrange = self.inferred_regions[feature.seqid].merge(feature._range)<EOL>self.inferred_regions[feature.seqid].start = newrange.start<EOL>self.inferred_regions[feature.seqid].end = newrange.end<EOL>
Load a :code:`Feature` object into memory.