How to use the comparem.similarity_search.SimilaritySearch function in comparem

To help you get started, we’ve selected a few comparem examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dparks1134 / CompareM / comparem / main.py View on Github external
def similarity(self, options):
        """Perform sequence similarity search between genes"""

        make_sure_path_exists(options.output_dir)
        
        query_gene_files = self._input_files(options.query_proteins, options.file_ext)
        target_gene_files = self._input_files(options.target_proteins, options.file_ext)
        
        ss = SimilaritySearch(options.cpus)
        ss.run(query_gene_files, 
                target_gene_files,
                options.evalue, 
                options.per_identity, 
                options.per_aln_len,
                True,
                options.tmp_dir,
                options.blastp,
                options.sensitive,
                options.keep_headers,
                options.output_dir)

        self.logger.info('Sequence similarity results written to: %s' % options.output_dir)