Skip to content

Commit a31bdab

Browse files
committed
ENH update error checking&doc
1 parent 6c6ef31 commit a31bdab

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ Create conda environment(only support python v3.8/v3.9)
1414

1515
```bash
1616
conda create -n gmscmapper python=3.8
17+
conda activate gmscmapper
1718
or
1819
conda create -n gmscmapper python=3.9
20+
conda activate gmscmapper
1921
```
2022

2123
You will need the following dependencies:

gmsc_mapper/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,13 @@ def expect_file(f):
199199
sys.stderr.write("GMSC-mapper Error:The first two columns of output should be `query` and `target`.\n")
200200
sys.exit(1)
201201

202-
if args.habitat:
202+
if not args.nohabitat and args.habitat:
203203
expect_file(args.habitat)
204204

205-
if args.taxonomy:
205+
if not args.notaxonomy and args.taxonomy:
206206
expect_file(args.taxonomy)
207207

208-
if args.quality:
208+
if not args.noquality and args.quality:
209209
expect_file(args.quality)
210210

211211
def create_db(arguments):

0 commit comments

Comments
 (0)