Skip to content

Commit

Permalink
Activate resfinder and resfinderfg annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
aghozlane committed Nov 19, 2024
1 parent dbe9387 commit 026d42f
Show file tree
Hide file tree
Showing 18 changed files with 61 additions and 3 deletions.
4 changes: 4 additions & 0 deletions meteor/merging.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,11 @@ def execute(self) -> None:
"modules_completeness": ["msp_name", "mod_id"],
"modules": ["mod_id"],
"mustard_as_genes_sum": ["annotation"],
"resfinder_as_genes_sum": ["annotation"],
"resfinderfg_as_genes_sum": ["annotation"],
"mustard_as_msp_sum": ["annotation"],
"resfinder_as_msp_sum": ["annotation"],
"resfinderfg_as_msp_sum": ["annotation"],
"dbcan_as_genes_sum": ["annotation"],
"dbcan_as_msp_sum": ["annotation"],
"kegg_as_genes_sum": ["annotation"],
Expand Down
20 changes: 17 additions & 3 deletions meteor/profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,15 @@ def __post_init__(self):
# Get functional db filenames
if self.database_type == "complete":
self.db_filenames = {}
for db in ["kegg", "mustard", "dbcan", "eggnog", "tigrfam"]:
for db in [
"kegg",
"mustard",
"dbcan",
"eggnog",
"tigrfam",
"resfinder",
"resfinderfg",
]:
self.db_filenames[db] = (
self.meteor.ref_dir
/ self.ref_config["reference_file"]["database_dir"]
Expand Down Expand Up @@ -646,8 +654,14 @@ def execute(self) -> None:
)
# Part 3: FUNCTIONAL PROFILING
if self.database_type == "complete":
single_fun_db = ["mustard", "kegg", "dbcan"]
single_fun_by_msp_db = ["mustard", "kegg", "dbcan"]
single_fun_db = ["mustard", "kegg", "dbcan", "resfinder", "resfinderfg"]
single_fun_by_msp_db = [
"mustard",
"kegg",
"dbcan",
"resfinder",
"resfinderfg",
]
for db, db_filename in self.db_filenames.items():
# By sum of genes
if db in single_fun_db:
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
annotation value
annotation value
aph 0
dfra 0
ldt 0
tetM 0
aac3_1 0
aac6 0
van 0
ant 0
erm 0
blaa 0
fos 0
sul 0
blac 0
mcr 0
tetX 0
blab1 0
blab3 0
qnr 0
blad 0
aac3_2 0
aac2 0
arnm 0
Binary file not shown.
8 changes: 8 additions & 0 deletions meteor/tests/test_profiler/catalogue/catalogue_reference.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@
"tigrfam": {
"filename": "catalogue_tigrfam.tsv",
"version": "15.0"
},
"resfinder": {
"filename": "catalogue_resfinder.tsv",
"version": "2.4.0"
},
"resfinderfg": {
"filename": "catalogue_resfinderfg.tsv",
"version": "2.0"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
gene_id gene_name annotation
3 gene_3 ARD1
4 gene_4 ARD2
8 gene_8 ARD2
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
gene_id gene_name annotation
3 gene_3 ARD1
4 gene_4 ARD2
8 gene_8 ARD2

0 comments on commit 026d42f

Please sign in to comment.