Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TACOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TBRU
TACOS
Commits
dc6c4886
Commit
dc6c4886
authored
5 years ago
by
Ticlla Ccenhua Monica Roxana
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+4
-0
4 additions, 0 deletions
README.md
tacos/__main__.py
+4
-0
4 additions, 0 deletions
tacos/__main__.py
tacos/cli.py
+4
-2
4 additions, 2 deletions
tacos/cli.py
with
12 additions
and
2 deletions
README.md
+
4
−
0
View file @
dc6c4886
...
...
@@ -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:
```
...
...
This diff is collapsed.
Click to expand it.
tacos/__main__.py
0 → 100644
+
4
−
0
View file @
dc6c4886
from
tacos
import
cli
if
__name__
==
"
__main__
"
:
cli
.
tacos
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
tacos/cli.py
+
4
−
2
View file @
dc6c4886
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment