def _mgSeqIdToTaxonId(seqId):
    """
        Extracts a taxonId from sequence id used in the Amphora or Silva mg databases (ends with '|ncbid:taxonId")

        @param seqId: sequence id used in mg databases
        @return: taxonId
        @rtype: int
        """
    return int(seqId.rsplit('|', 1)[1].rsplit(':', 1)[1])