Skip to content

Commit

Permalink
ENH Switch to GNU style long options
Browse files Browse the repository at this point in the history
Use double-dash for long options
  • Loading branch information
luispedro committed Jun 12, 2020
1 parent 5fba323 commit 1d1f6ee
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ available for genome mode.

* `-o/--output`: Output directory (will be created if non-existent).

* `-nt_input`: path to the input DNA gene file(.fasta/.gz/.bz2).
* `--nt_input`: path to the input DNA gene file(.fasta/.gz/.bz2).

* `-aa_input`: path to the input Protein gene file(.fasta/.gz/.bz2).
* `--aa_input`: path to the input Protein gene file(.fasta/.gz/.bz2).

## Examples

Expand All @@ -38,14 +38,14 @@ gmgc-finder -i input.fasta -o output
2. Input is DNA/protein gene sequences

```bash
gmgc-finder -nt_input genes.fna -aa_input genes.faa -o output
gmgc-finder --nt_input genes.fna --aa_input genes.faa -o output
```

The nucleotide input is optional (but should be used if available so that the
quality of the hits can be refined):

```bash
gmgc-finder -aa_input genes.faa -o output
gmgc-finder --aa_input genes.faa -o output
```

If yout input is a metagenome, you can use
Expand Down
8 changes: 4 additions & 4 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

* `-o/--output` : Output directory (will be created if non-existent).

* `-nt_input` : path to the input DNA gene file(.fasta/.gz/.bz2).
* `--nt_input` : path to the input DNA gene file(.fasta/.gz/.bz2).

* `-aa_input` : path to the input Protein gene file(.fasta/.gz/.bz2).
* `--aa_input` : path to the input Protein gene file(.fasta/.gz/.bz2).

The input must contain a genome file or DNA and Protein gene file or just Protein gene file.

Expand All @@ -26,10 +26,10 @@ GMGC-finder will call `prodigal` to predict genes and then process each gene.
respectfully).

```bash
gmgc-finder -nt_input genes.fna -aa_input genes.faa -o output
gmgc-finder --nt_input genes.fna --aa_input genes.faa -o output
```
```bash
gmgc-finder -aa_input genes.faa -o output
gmgc-finder --aa_input genes.faa -o output
```
# Processing metagenomes using NGLess

Expand Down
14 changes: 10 additions & 4 deletions gmgc_finder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,16 @@ def parse_args(args):
help='Output directory (will be created if non-existent)',
dest='output',
default = None)
parser.add_argument('-nt_genes',required=False,help = 'Path to the input DNA gene file.',dest='nt_input',
default = None)
parser.add_argument('-aa_genes',required=False,help = 'Path to the input Protein gene file.',dest='aa_input',
default = None)
parser.add_argument('--nt_genes',
required=False,
help='Path to the input DNA gene file (FASTA format)',
dest='nt_input',
default=None)
parser.add_argument('--aa_genes',
required=False,
help='Path to the input amino acid gene file (FASTA format)',
dest='aa_input',
default=None)
return parser.parse_args()

def gene_prediction(fasta_input,output):
Expand Down

0 comments on commit 1d1f6ee

Please sign in to comment.