Skip to content

Commit

Permalink
blastx gff
Browse files Browse the repository at this point in the history
  • Loading branch information
Cantalapiedra committed Feb 16, 2022
1 parent c52832e commit 830b4fe
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion eggnogmapper/search/hmmer/hmmer.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 181,7 @@ def search_hmm_matches(self, in_file, hmm_hits_file, silent = False):

##
def search(self, in_file, seed_orthologs_file, hmm_hits_file, gff_outfile):
# gff_outfile was added to accomplish with the Searcher.search interface
# gff_outfile was added to comply with the Searcher.search interface
# but it is not currently used by the hmmer searcher

hits = None
Expand Down
8 changes: 7 additions & 1 deletion tests/integration/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 8,7 @@
from .common import run, check_gff, check_fasta, check_seed_orthologs, check_annotations, check_hmm_hits, check_orthologs, check_pfam

# General eggnog-mapper settings
GENEPRED_GFF_SUFFIX = '.emapper.gff'
GENEPRED_GFF_SUFFIX = '.emapper.genepred.gff'
GENEPRED_FASTA_SUFFIX = '.emapper.genepred.fasta'
HMM_HITS_SUFFIX = '.emapper.hits'
SEED_ORTHOLOGS_SUFFIX = '.emapper.seed_orthologs'
Expand Down Expand Up @@ -489,6 489,12 @@ def test_genepred_prodigal(self):
'''
# ./emapper.py -i tests/fixtures/genepred_contig/contig.fna --itype metagenome --genepred prodigal --data_dir tests/fixtures
# -m diamond --sensmode sensitive --no_annot --dmnd_db tests/fixtures/genepred_contig/contig.dmnd -o out --output_dir tmp

rm -r tmp; mkdir tmp;
emapper.py -i tests/fixtures/genepred_contig/contig.fna \
--itype metagenome --genepred prodigal --data_dir tests/fixtures \
-m diamond --sensmode sensitive --no_annot \
--dmnd_db tests/fixtures/genepred_contig/contig.dmnd -o out --output_dir tmp

##
# Setup test
Expand Down
9 changes: 6 additions & 3 deletions tests/unit/tests_search_diamond.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 44,8 @@ def test_run_diamond_blastp(self):
outfmt_short=True,
temp_dir="tests/unit/out/",
no_file_comments=None,
resume=False)
resume=False,
decorate_gff_ID_field=None)

fasta_file = "tests/fixtures/test_queries.fa"
output_file = "tests/unit/out/test_run_diamond_blastp.seed_orthologs"
Expand Down Expand Up @@ -85,7 86,8 @@ def test_run_diamond_blastx(self):
outfmt_short=True,
temp_dir="tests/unit/out/",
no_file_comments=None,
resume=False)
resume=False,
decorate_gff_ID_field=None)

fasta_file = "tests/fixtures/test_queries.fna"
output_file = "tests/unit/out/test_run_diamond_blastx.seed_orthologs"
Expand Down Expand Up @@ -127,7 129,8 @@ def test_parse_diamond(self):
outfmt_short=True,
temp_dir="tests/unit/out/",
no_file_comments=None,
resume=False)
resume=False,
decorate_gff_ID_field=None)

searcher = DiamondSearcher(args)

Expand Down

0 comments on commit 830b4fe

Please sign in to comment.