Skip to content
Snippets Groups Projects
Commit dc6c4886 authored by Ticlla Ccenhua Monica Roxana's avatar Ticlla Ccenhua Monica Roxana
Browse files

allow running tacos with 'path/to/python -m tacos --help'

parent 2b7f4739
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,10 @@ Run the application:
$ conda activate <path/tacos_env> # if not already activated
$ tacos --help
```
or
```
$ <path/tacos_env>/bin/python -m tacos --help # no need to activate the environment
```
To run the tests:
```
......
from tacos import cli
if __name__ == "__main__":
cli.tacos()
\ No newline at end of file
......@@ -8,6 +8,7 @@ from tacos.distance import hamming_pool
@click.group()
def tacos():
pass
@tacos.command()
@click.option('--ignore_gap', 'ignore_gap', is_flag=True, help='enable coding gaps(i.e indels) as missing values')
@click.option('-d','--separator', 'sep', default='\t', help='field separator [default: TAB]')
......@@ -123,5 +124,6 @@ def distance_matrix(ignore_gap, adjust, n_jobs, type, input_, output):
f.write('\n')
click.echo('Finished! Computed {} pairwise distances for {} genomes.'.format(len(genome_pairs), nr_genomes))
if __name__ == '__main__':
tacos()
\ No newline at end of file
#if __name__ == '__main__':
# tacos()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment