Skip to content

Commit

Permalink
Added test for "-iq" and "-it" parameters
Browse files Browse the repository at this point in the history
Added test for "--include-missing-genomes" and "--map-all" parameters
Pretty json for differential maps too
Updated documentation for additional outputs information
Fixed show-available-maps test - sys.exit can't get any other input but 0
  • Loading branch information
iquasere committed Dec 20, 2023
1 parent c29b957 commit af779c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: |
docker load --input /tmp/keggcharter.tar
docker image ls -a
- name: Run KEGGCharter
- name: Show available maps
run: docker run keggcharter /bin/bash -c "keggcharter --show-available-maps"

run-keggcharter:
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
run: |
docker load --input /tmp/keggcharter.tar
docker image ls -a
- name: Run KEGGCharter
- name: Run KEGGCharter with "input-quantification" and "input-taxonomy" parameters
run: docker run keggcharter /bin/bash -c "keggcharter -f KEGGCharter/cicd/keggcharter_input.tsv -rd resources_directory -keggc 'KEGG' -koc 'KO' -ecc 'EC number' -cogc 'COG ID' -iq -it "My community" -mm 00680"

include-missing-genomes:
Expand All @@ -88,7 +88,7 @@ jobs:
run: |
docker load --input /tmp/keggcharter.tar
docker image ls -a
- name: Run KEGGCharter
- name: Run KEGGCharter with "include-missing-genomes" parameter
run: docker run keggcharter /bin/bash -c "keggcharter -f KEGGCharter/cicd/keggcharter_input.tsv -rd resources_directory -keggc 'KEGG' -koc 'KO' -ecc 'EC number' -cogc 'COG ID' -qcol MP1,MP2,MP3,MP4 -tc 'Taxonomic lineage (SPECIES)' -mm 00680 --include-missing-genomes"

map-all:
Expand All @@ -104,5 +104,5 @@ jobs:
run: |
docker load --input /tmp/keggcharter.tar
docker image ls -a
- name: Run KEGGCharter
- name: Run KEGGCharter with "map-all" parameter
run: docker run keggcharter /bin/bash -c "keggcharter -f KEGGCharter/cicd/keggcharter_input.tsv -rd resources_directory -keggc 'KEGG' -koc 'KO' -ecc 'EC number' -cogc 'COG ID' -qcol MP1,MP2,MP3,MP4 -tc 'Taxonomic lineage (SPECIES)' -mm 00680 --map-all"
3 changes: 2 additions & 1 deletion keggcharter.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ def get_arguments():

args = parser.parse_args()
if args.show_available_maps:
sys.exit(kegg_metabolic_maps().to_string(index=False))
print(kegg_metabolic_maps().to_string(index=False))
sys.exit()
args.output = args.output.rstrip('/')
for directory in [
f'{args.output}/{folder}' for folder in ['maps', 'json']] + [
Expand Down

0 comments on commit af779c6

Please sign in to comment.