Skip to content

Commit

Permalink
added registration for collate_ortholog_annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
VinzentRisch committed Sep 3, 2024
1 parent 2139199 commit 6af9325
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion q2_types/plugin_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from q2_types.feature_data_mag import MAG
from q2_types.per_sample_sequences import MAGs
from q2_types.feature_data import FeatureData
from q2_types.genome_data import Orthologs
from q2_types.genome_data import Orthologs, GenomeData, NOG
from q2_types.sample_data import SampleData


Expand Down Expand Up @@ -120,6 +120,21 @@
"and collates them into a single artifact.",
)

plugin.methods.register_function(
function=q2_types.genome_data.collate_ortholog_annotations,
inputs={'ortholog_annotations': List[GenomeData[NOG]]},
parameters={},
outputs=[('collated_annotations', GenomeData[NOG])],
input_descriptions={
'ortholog_annotations': "Collection of ortholog annotations."
},
output_descriptions={
'collated_annotations': "Collated ortholog annotations."
},
name='Collate ortholog annotations.',
description="Takes a collection of GenomeData[NOG]'s "
"and collates them into a single artifact.",
)

importlib.import_module('q2_types.bowtie2._deferred_setup')
importlib.import_module('q2_types.distance_matrix._deferred_setup')
Expand Down

0 comments on commit 6af9325

Please sign in to comment.