-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import click | ||
|
||
|
||
@click.group() | ||
def cli(): | ||
""" | ||
Detector can be used to detect transposable elements in a fasta file. | ||
usage: detector <command> | ||
potential commands: | ||
build : build the database | ||
blast : blasts a fasta file agains a database | ||
analyze : checks the blast output if TEs are present | ||
""" | ||
pass | ||
|
||
|
||
@cli.command() | ||
@click.argument('path', type=click.path()) | ||
def build(path): | ||
""" | ||
Builds the blast database. | ||
usage: detector build PATH (the directory with .fasta files to build the database) | ||
""" | ||
click.echo("Building the database ... ") | ||
click.echo("Input path: %s" % path) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
click==6.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from setuptools import setup | ||
|
||
setup( | ||
name='DeTEctor', | ||
version='0.1', | ||
py_modules=['detector'], | ||
install_requires=[ | ||
'Click', | ||
], | ||
entry_points=''' | ||
[console_scripts] | ||
detector=detector:cli | ||
''' | ||
) |