def reference(self, aligned=True, orientation="native"): val = self._reference if not aligned: val = val[val != "-"] if orientation == "genomic" and self.reverseStrand: val = reverseComplement(val) return val.tostring()