Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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)