Skip to content

Commit

Permalink
[refactor] minor changes to the directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ChocoParrot committed Oct 24, 2021
1 parent 4e1a8ec commit 424c520
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/cline_tools/orffinder-to-gff3
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ from orffinder import orffinder
arguments = sys.argv + [""]
classed_arguments = {"orf_size": "75", "max_orfs_per_sequence": "-1", "remove_nested": "False", "trim_trailing": "False", "infmt": "fasta", "attr_name": "ORF_"}

dir_path = os.path.dirname(os.path.realpath(__file__))

try:
for i in range(len(arguments)):

Expand All @@ -18,7 +20,7 @@ try:
classed_arguments[argument[1:]] = arguments[i + 1]

if "h" in classed_arguments.keys():
help_output = open("help_pages/orffinder-to-gff3.txt", "r").read()
help_output = open(dir_path + "/help_pages/orffinder-to-gff3.txt", "r").read()
print(help_output)
os._exit(1)

Expand Down
4 changes: 3 additions & 1 deletion src/cline_tools/orffinder-to-gtf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ from orffinder import orffinder
arguments = sys.argv + [""]
classed_arguments = {"orf_size": "75", "max_orfs_per_sequence": "-1", "remove_nested": "False", "trim_trailing": "False", "infmt": "fasta", "attr_name": "ORF_"}

dir_path = os.path.dirname(os.path.realpath(__file__))

try:
for i in range(len(arguments)):

Expand All @@ -18,7 +20,7 @@ try:
classed_arguments[argument[1:]] = arguments[i + 1]

if "h" in classed_arguments.keys():
help_output = open("help_pages/orffinder-to-gtf.txt", "r").read()
help_output = open(dir_path + "/help_pages/orffinder-to-gtf.txt", "r").read()
print(help_output)
os._exit(1)

Expand Down
4 changes: 3 additions & 1 deletion src/cline_tools/orffinder-to-sequence
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ from orffinder import orffinder
arguments = sys.argv + [""]
classed_arguments = {"orf_size": "75", "outtype": "nucleotide", "max_orfs_per_sequence": "-1", "remove_nested": "False", "trim_trailing": "False", "infmt": "fasta", "attr_name": "ORF_", "outfmt": "fasta"}

dir_path = os.path.dirname(os.path.realpath(__file__))

try:
for i in range(len(arguments)):

Expand All @@ -19,7 +21,7 @@ try:
classed_arguments[argument[1:]] = arguments[i + 1]

if "h" in classed_arguments.keys():
help_output = open("help_pages/orffinder-to-sequence.txt", "r").read()
help_output = open(dir_path + "/help_pages/orffinder-to-sequence.txt", "r").read()
print(help_output)
os._exit(1)

Expand Down

0 comments on commit 424c520

Please sign in to comment.