@classmethod<EOL><INDENT>def read_tsv(cls, path, encoding='<STR_LIT:utf-8>'):<DEDENT>
gene_sets = []<EOL>n = <NUM_LIT:0><EOL>with open(path, '<STR_LIT:rb>') as fh:<EOL><INDENT>reader = csv.reader(fh, dialect='<STR_LIT>', encoding=encoding)<EOL>for l in reader:<EOL><INDENT>n += <NUM_LIT:1><EOL>gs = GeneSet.from_list(l)<EOL>gene_sets.append(gs)<EOL><DEDENT><DEDENT>logger.debug('<STR_LIT>', n)<EOL>logger.debug('<STR_LIT>', len(gene_sets))<EOL>return cls(gene_sets)<EOL>
Read a gene set database from a tab-delimited text file.

        Parameters
        ----------
        path: str
            The path name of the the file.
        encoding: str
            The encoding of the text file.

        Returns
        -------
        None