def fromMap(self, map_query2target, use_strand=None):

        self.mNMatches = map_query2target.getNumAligned()
        f = alignlib_lite.py_AlignmentFormatBlat(map_query2target)

        self.mQueryFrom, self.mQueryTo, self.mSbjctFrom, self.mSbjctTo, \
            self.mQueryBlockStarts, self.mSbjctBlockStarts, self.mBlockSizes = str(
                f).split("\t")

        if self.mBlockSizes:
            self.mBlockSizes = map(int, self.mBlockSizes[:-1].split(","))
            self.mQueryBlockStarts = map(
                int, self.mQueryBlockStarts[:-1].split(","))
            self.mSbjctBlockStarts = map(
                int, self.mSbjctBlockStarts[:-1].split(","))
        else:
            self.mBlockSizes = []
            self.mQueryBlockStarts = []
            self.mSbjctBlockStarts = []

        self.mNBlocks = len(self.mBlockSizes)

        self.mQueryFrom, self.mQueryTo, self.mSbjctFrom, self.mSbjctTo = \
            map(int,
                (self.mQueryFrom, self.mQueryTo, self.mSbjctFrom, self.mSbjctTo))

        # queryfrom and queryto are always forward strand coordinates
        if use_strand and self.strand == "-":
            self.mQueryFrom, self.mQueryTo = self.mQueryLength - \
                self.mQueryTo, self.mQueryLength - self.mQueryFrom
return a map between query to target.
dataset/ETHPy150Open CGATOxford/cgat/obsolete/BlatTest.py/Match.fromMap