-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from timothymillar/f/tabular-data
Improved usability as library
- Loading branch information
Showing
31 changed files
with
2,754 additions
and
2,666 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
__pycache__/ | ||
.idea/ | ||
.cache/ | ||
tectoolkit.egg-info/ | ||
tefingerprint.egg-info/ | ||
dist/ |
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
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,43 @@ | ||
#! /usr/bin/env python | ||
|
||
import sys | ||
import argparse | ||
from tefingerprint.filtergff import FilterGffProgram | ||
from tefingerprint.preprocess import PreProcessProgram | ||
from tefingerprint.programs import FingerprintProgram | ||
from tefingerprint.programs import ComparisonProgram | ||
|
||
|
||
def parse_program_arg(arg): | ||
"""""" | ||
parser = argparse.ArgumentParser('Identify program to run') | ||
parser.add_argument('program', | ||
type=str, | ||
choices=("preprocess", | ||
"fingerprint", | ||
"compare", | ||
"filter_gff")) | ||
return parser.parse_args(arg) | ||
|
||
|
||
def main(): | ||
"""""" | ||
if len(sys.argv) == 1: | ||
# default to simple help message | ||
program_arg = parse_program_arg([]) | ||
else: | ||
program_arg = parse_program_arg([sys.argv[1]]) | ||
|
||
program = program_arg.program | ||
if program == "fingerprint": | ||
FingerprintProgram(sys.argv[2:]) | ||
elif program == "compare": | ||
ComparisonProgram(sys.argv[2:]) | ||
elif program == "filter_gff": | ||
FilterGffProgram(sys.argv[2:]) | ||
elif program == "preprocess": | ||
job = PreProcessProgram.from_cli(sys.argv[2:]) | ||
job.run() | ||
|
||
if __name__ == '__main__': | ||
main() |
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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
numpy>=1.11.1 | ||
pysam>=0.9.1.4 | ||
gffutils>=0.8.7.1 |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.