Skip to content

Commit

Permalink
[refactor] updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ChocoParrot committed Sep 14, 2021
1 parent cb019f9 commit 1558690
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Finds the open reading frame (6-frame scan) on a given 5' to 3' nucleotide.
`pip3 install orffinder`

### Terminal Usage
Two command-line executable commands are available: `orffinder-to-gtf` `orffinder-to-sequence`.
Three command-line executable commands are available: `orffinder-to-gtf` `orffinder-to-sequence` and `orffinder-to-gff3`.

Documentation for these commands can be retrieved by specifying `<command> -h`.

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setuptools.setup(
name="orffinder",
version="1.5",
version="1.6",
author="ChocoParrot",
author_email="[email protected]",
description="Open Reading Frame finder natively coded in Python.",
Expand Down
35 changes: 35 additions & 0 deletions src/cline_tools/help_pages/orffinder-to-gff3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
USAGE
orffinder-to-gff3 [-in input] [-infmt format] [-out output] [-outfmt format] [-orf_size int]
[-remove_nested boolean] [-trim_trailing boolean] [-max_orfs_per_sequence int]
[-attr_name string]

DESCRIPTION
ORFFinder Python v1.5

PARAMETERS
[-h]
Shows this interface.

[-in (string)]:
Input nucleotide sequence to extract ORFs from.

[-infmt (string)]:
Can be "fasta", "genbank", or any other Biopython supported format. Default: "fasta"

[-out (string)]
Optional output file. If not specified, will output to stdout.

[-orf_size (integer)]
Minimum size (in nucleotides) of ORF. Default: 75

[-remove_nested (boolean)]
Remove ORFs that are completely nested in another ORF. Default: False

[-trim_trailing (boolean)]
Remove ORFs that have a start codon but no stop codon at the edges of the sequence. Default: False

[-max_orfs_per_sequence (integer)]
Maximum number of ORFs to return per sequence, sorted by length. Default: -1 (no limit)

[-attr_name (string)]
Attribute ID name in GTF file. Suffixed by ORF index number. Default: "ORF_"
2 changes: 1 addition & 1 deletion src/cline_tools/orffinder-to-gff3
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,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("help_pages/orffinder-to-gff3.txt", "r").read()
print(help_output)
os._exit(1)

Expand Down

0 comments on commit 1558690

Please sign in to comment.