-
Notifications
You must be signed in to change notification settings - Fork 6
/
kb_phylogenomics.spec
689 lines (573 loc) · 22.2 KB
/
kb_phylogenomics.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
/*
A KBase module: kb_phylogenomics
This module contains methods for running and visualizing results of phylogenomics and comparative genomics analyses
*/
module kb_phylogenomics {
/*
** Common types
*/
typedef string workspace_name;
typedef string data_obj_ref;
typedef string data_obj_name;
typedef int bool;
/* build_gene_tree()
**
** build a gene tree for a featureset
*/
typedef structure {
workspace_name workspace_name;
string desc;
data_obj_ref input_featureSet_ref;
data_obj_name output_tree_name;
string genome_disp_name_config;
bool skip_trimming; /* 0=use_trimming, 1=skip_trimming */
int muscle_maxiters;
float muscle_maxhours;
int gblocks_trim_level; /* 0=no gaps allowed, 1=half gaps allowed, 2=all gaps allowed */
int gblocks_min_seqs_for_conserved; /* 0=use MSA-depth-derived default */
int gblocks_min_seqs_for_flank; /* 0=use MSA-depth-derived default */
int gblocks_max_pos_contig_nonconserved; /* 8=default */
int gblocks_min_block_len; /* 10=default */
int gblocks_remove_mask_positions_flag; /* 0=false,1=true default=0 */
int fasttree_fastest; /* boolean */
int fasttree_pseudo; /* boolean */
int fasttree_gtr; /* boolean */
int fasttree_wag; /* boolean */
int fasttree_noml; /* boolean */
int fasttree_nome; /* boolean */
int fasttree_cat; /* actually is an int */
int fasttree_nocat; /* boolean */
int fasttree_gamma; /* boolean */
} build_gene_tree_Input;
typedef structure {
string report_name;
string report_ref;
} build_gene_tree_Output;
funcdef build_gene_tree(build_gene_tree_Input params)
returns (build_gene_tree_Output output)
authentication required;
/* build_strain_tree()
**
** build a species tree for a collection of strain genomes
*/
typedef structure {
workspace_name workspace_name;
string desc;
data_obj_ref input_genome_refs;
data_obj_name output_tree_name;
string genome_disp_name_config;
bool skip_trimming; /* 0=use_trimming, 1=skip_trimming */
int muscle_maxiters;
float muscle_maxhours;
int gblocks_trim_level; /* 0=no gaps allowed, 1=half gaps allowed, 2=all gaps allowed */
int gblocks_min_seqs_for_conserved; /* 0=use MSA-depth-derived default */
int gblocks_min_seqs_for_flank; /* 0=use MSA-depth-derived default */
int gblocks_max_pos_contig_nonconserved; /* 8=default */
int gblocks_min_block_len; /* 10=default */
int gblocks_remove_mask_positions_flag; /* 0=false,1=true default=0 */
int fasttree_fastest; /* boolean */
int fasttree_pseudo; /* boolean */
int fasttree_gtr; /* boolean */
int fasttree_wag; /* boolean */
int fasttree_noml; /* boolean */
int fasttree_nome; /* boolean */
int fasttree_cat; /* actually is an int */
int fasttree_nocat; /* boolean */
int fasttree_gamma; /* boolean */
} build_strain_tree_Input;
typedef structure {
string report_name;
string report_ref;
} build_strain_tree_Output;
funcdef build_strain_tree(build_strain_tree_Input params)
returns (build_strain_tree_Output output)
authentication required;
/* build_pangenome_species_tree()
**
** build a species tree using the single copy genes from a pangenome
*/
typedef structure {
workspace_name workspace_name;
string desc;
data_obj_ref input_pangenome_ref;
data_obj_name output_tree_name;
string genome_disp_name_config;
bool skip_trimming; /* 0=use_trimming, 1=skip_trimming */
float perc_marker_presence_min; /* default 90% */
int muscle_maxiters;
float muscle_maxhours;
int gblocks_trim_level; /* 0=no gaps allowed, 1=half gaps allowed, 2=all gaps allowed */
int gblocks_min_seqs_for_conserved; /* 0=use MSA-depth-derived default */
int gblocks_min_seqs_for_flank; /* 0=use MSA-depth-derived default */
int gblocks_max_pos_contig_nonconserved; /* 8=default */
int gblocks_min_block_len; /* 10=default */
int gblocks_remove_mask_positions_flag; /* 0=false,1=true default=0 */
int fasttree_fastest; /* boolean */
int fasttree_pseudo; /* boolean */
int fasttree_gtr; /* boolean */
int fasttree_wag; /* boolean */
int fasttree_noml; /* boolean */
int fasttree_nome; /* boolean */
int fasttree_cat; /* actually is an int */
int fasttree_nocat; /* boolean */
int fasttree_gamma; /* boolean */
} build_pangenome_species_tree_Input;
typedef structure {
string report_name;
string report_ref;
} build_pangenome_species_tree_Output;
funcdef build_pangenome_species_tree(build_pangenome_species_tree_Input params)
returns (build_pangenome_species_tree_Output output)
authentication required;
/* view_tree()
**
** show a KBase Tree and make newick and images downloadable
*/
typedef structure {
workspace_name workspace_name;
data_obj_ref input_tree_ref;
string desc;
bool show_skeleton_genome_sci_name;
mapping<data_obj_ref,mapping<string,string>> reference_genome_disp;
mapping<data_obj_ref,mapping<string,string>> skeleton_genome_disp;
mapping<data_obj_ref,mapping<string,string>> user_genome_disp;
mapping<data_obj_ref,mapping<string,string>> user2_genome_disp;
string color_for_reference_genomes;
string color_for_skeleton_genomes;
string color_for_user_genomes;
string color_for_user2_genomes;
string tree_shape; /* circle, wedge, rect */
} view_tree_Input;
typedef structure {
string report_name;
string report_ref;
} view_tree_Output;
funcdef view_tree(view_tree_Input params)
returns (view_tree_Output output)
authentication required;
/* trim_speciestree_to_genomeset()
**
** reduce tree to match genomes found in genomeset
*/
typedef structure {
workspace_name workspace_name;
data_obj_ref input_genomeSet_ref;
data_obj_ref input_tree_ref;
data_obj_name output_tree_name;
string desc;
bool show_skeleton_genome_sci_name;
bool enforce_genome_version_match;
mapping<data_obj_ref,mapping<string,string>> reference_genome_disp;
mapping<data_obj_ref,mapping<string,string>> skeleton_genome_disp;
mapping<data_obj_ref,mapping<string,string>> user_genome_disp;
mapping<data_obj_ref,mapping<string,string>> user2_genome_disp;
string color_for_reference_genomes;
string color_for_skeleton_genomes;
string color_for_user_genomes;
string color_for_user2_genomes;
string tree_shape; /* circle, wedge, rect */
} trim_speciestree_to_genomeset_Input;
typedef structure {
string report_name;
string report_ref;
} trim_speciestree_to_genomeset_Output;
funcdef trim_speciestree_to_genomeset(trim_speciestree_to_genomeset_Input params)
returns (trim_speciestree_to_genomeset_Output output)
authentication required;
/* trim_genetree_to_genomeset()
**
** reduce tree to match genomes found in genomeset (optionally skip AMA genes)
*/
typedef structure {
workspace_name workspace_name;
data_obj_ref input_genomeSet_ref;
data_obj_ref input_tree_ref;
data_obj_name output_tree_name;
string desc;
bool enforce_genome_version_match;
bool keep_ama_genes;
} trim_genetree_to_genomeset_Input;
typedef structure {
string report_name;
string report_ref;
} trim_genetree_to_genomeset_Output;
funcdef trim_genetree_to_genomeset(trim_genetree_to_genomeset_Input params)
returns (trim_genetree_to_genomeset_Output output)
authentication required;
/* build_microbial_speciestree()
**
** run Insert Set of Genomes into Species Tree with extra features
*/
typedef structure {
workspace_name workspace_name;
data_obj_ref input_genome_refs; /* list of refs can be Genome, GenomeSet, or SpeciesTree */
data_obj_ref input_genome2_refs; /* list of refs can be Genome, GenomeSet, or SpeciesTree */
data_obj_name output_tree_name;
string desc;
bool show_skeleton_genome_sci_name;
string skeleton_set; /* RefSeq-Isolates, RefSeq+MAGs, GTDB? */
/*
int num_proximal_sisters;
float proximal_sisters_ANI_spacing;
string color_for_reference_genomes;
*/
string color_for_skeleton_genomes;
string color_for_user_genomes;
string color_for_user2_genomes;
/*string tree_shape;*/ /* circle, wedge, rect */
} build_microbial_speciestree_Input;
typedef structure {
string report_name;
string report_ref;
} build_microbial_speciestree_Output;
funcdef build_microbial_speciestree(build_microbial_speciestree_Input params)
returns (build_microbial_speciestree_Output output)
authentication required;
/* localize_DomainAnnotations()
**
** point all DomainAnnotations at local copies of Genome Objects
*/
typedef structure {
workspace_name workspace_name;
data_obj_ref input_DomainAnnotation_refs;
} localize_DomainAnnotations_Input;
typedef structure {
string report_name;
string report_ref;
} localize_DomainAnnotations_Output;
funcdef localize_DomainAnnotations(localize_DomainAnnotations_Input params)
returns (localize_DomainAnnotations_Output output)
authentication required;
/* run_DomainAnnotation_Sets()
**
** run the DomainAnnotation App against a GenomeSet
*/
typedef structure {
workspace_name workspace_name;
data_obj_ref input_genomeSet_ref;
bool override_annot;
/*data_obj_name output_name;*/
} run_DomainAnnotation_Sets_Input;
typedef structure {
string report_name;
string report_ref;
} run_DomainAnnotation_Sets_Output;
funcdef run_DomainAnnotation_Sets(run_DomainAnnotation_Sets_Input params)
returns (run_DomainAnnotation_Sets_Output output)
authentication required;
/* parameter groups
*/
typedef structure {
list<string> target_fams;
list<string> extra_target_fam_groups_COG;
list<string> extra_target_fam_groups_PFAM;
list<string> extra_target_fam_groups_TIGR;
list<string> extra_target_fam_groups_SEED;
} CustomTargetFams;
/* view_fxn_profile()
**
** show a table/heatmap of general categories or custom gene families for a set of Genomes
*/
typedef structure {
workspace_name workspace_name;
data_obj_ref input_genomeSet_ref;
/*data_obj_ref DomainAnnotation_Set;*/ /*reads workspace to find domain annot*/
string namespace;
CustomTargetFams custom_target_fams;
string genome_disp_name_config;
string count_category;
bool heatmap;
bool vertical;
bool top_hit;
float e_value;
float log_base;
float required_COG_annot_perc;
float required_PFAM_annot_perc;
float required_TIGR_annot_perc;
float required_SEED_annot_perc;
bool count_hypothetical;
bool show_blanks;
bool skip_missing_genomes;
bool enforce_genome_version_match;
} view_fxn_profile_Input;
typedef structure {
string report_name;
string report_ref;
} view_fxn_profile_Output;
funcdef view_fxn_profile(view_fxn_profile_Input params)
returns (view_fxn_profile_Output output)
authentication required;
/* view_fxn_profile_featureSet()
**
** show a table/heatmap of general categories or custom gene families for a set of Genomes
*/
typedef structure {
workspace_name workspace_name;
data_obj_ref input_featureSet_ref;
/*data_obj_ref DomainAnnotation_Set;*/ /*reads workspace to find domain annot*/
string namespace;
CustomTargetFams custom_target_fams;
string genome_disp_name_config;
string count_category;
bool heatmap;
bool vertical;
bool top_hit;
float e_value;
float log_base;
float required_COG_annot_perc;
float required_PFAM_annot_perc;
float required_TIGR_annot_perc;
float required_SEED_annot_perc;
bool count_hypothetical;
bool show_blanks;
bool skip_missing_genomes;
bool enforce_genome_version_match;
} view_fxn_profile_featureSet_Input;
typedef structure {
string report_name;
string report_ref;
} view_fxn_profile_featureSet_Output;
funcdef view_fxn_profile_featureSet(view_fxn_profile_featureSet_Input params)
returns (view_fxn_profile_featureSet_Output output)
authentication required;
/* view_fxn_profile_phylo()
**
** show a table/heatmap of general categories or custom gene families for a set of Genomes using the species tree
*/
typedef structure {
workspace_name workspace_name;
/*data_obj_ref input_genomeSet_ref;*/
data_obj_ref input_speciesTree_ref;
/*data_obj_ref DomainAnnotation_Set;*/
string namespace;
CustomTargetFams custom_target_fams;
string genome_disp_name_config;
string count_category;
bool heatmap;
bool vertical;
bool top_hit;
float e_value;
float log_base;
float required_COG_annot_perc;
float required_PFAM_annot_perc;
float required_TIGR_annot_perc;
float required_SEED_annot_perc;
bool count_hypothetical;
bool show_blanks;
bool skip_missing_genomes;
bool enforce_genome_version_match;
} view_fxn_profile_phylo_Input;
typedef structure {
string report_name;
string report_ref;
} view_fxn_profile_phylo_Output;
funcdef view_fxn_profile_phylo(view_fxn_profile_phylo_Input params)
returns (view_fxn_profile_phylo_Output output)
authentication required;
/* view_genome_circle_plot()
**
** build a circle plot of a microbial genome
*/
typedef structure {
workspace_name workspace_name;
data_obj_ref input_genome_ref;
} view_genome_circle_plot_Input;
typedef structure {
string report_name;
string report_ref;
} view_genome_circle_plot_Output;
funcdef view_genome_circle_plot(view_genome_circle_plot_Input params)
returns (view_genome_circle_plot_Output output)
authentication required;
/* view_pan_circle_plot()
**
** build a circle plot of a microbial genome with its pangenome members
*/
typedef structure {
workspace_name workspace_name;
data_obj_ref input_genome_ref;
data_obj_ref input_pangenome_ref;
data_obj_ref input_compare_genome_refs;
data_obj_ref input_outgroup_genome_refs;
bool save_featuresets;
string genome_disp_name_config;
} view_pan_circle_plot_Input;
typedef structure {
string report_name;
string report_ref;
} view_pan_circle_plot_Output;
funcdef view_pan_circle_plot(view_pan_circle_plot_Input params)
returns (view_pan_circle_plot_Output output)
authentication required;
/* view_pan_accumulation_plot()
**
** build an accumulation plot of a pangenome
*/
typedef structure {
workspace_name workspace_name;
data_obj_ref input_genome_ref;
data_obj_ref input_pangenome_ref;
} view_pan_accumulation_plot_Input;
typedef structure {
string report_name;
string report_ref;
} view_pan_accumulation_plot_Output;
funcdef view_pan_accumulation_plot(view_pan_accumulation_plot_Input params)
returns (view_pan_accumulation_plot_Output output)
authentication required;
/* view_pan_flower_venn()
**
** build a multi-member pangenome flower venn diagram
*/
typedef structure {
workspace_name workspace_name;
data_obj_ref input_genome_ref;
data_obj_ref input_pangenome_ref;
} view_pan_flower_venn_Input;
typedef structure {
string report_name;
string report_ref;
} view_pan_flower_venn_Output;
funcdef view_pan_flower_venn(view_pan_flower_venn_Input params)
returns (view_pan_flower_venn_Output output)
authentication required;
/* view_pan_pairwise_overlap()
**
** build a multi-member pangenome pairwise overlap plot
*/
typedef structure {
workspace_name workspace_name;
data_obj_ref input_genome_ref;
data_obj_ref input_pangenome_ref;
} view_pan_pairwise_overlap_Input;
typedef structure {
string report_name;
string report_ref;
} view_pan_pairwise_overlap_Output;
funcdef view_pan_pairwise_overlap(view_pan_pairwise_overlap_Input params)
returns (view_pan_pairwise_overlap_Output output)
authentication required;
/* view_pan_phylo()
**
** show the pangenome accumulation using a tree
*/
typedef structure {
workspace_name workspace_name;
data_obj_ref input_pangenome_ref;
data_obj_ref input_speciesTree_ref;
bool save_featuresets;
bool skip_missing_genomes;
bool enforce_genome_version_match;
string genome_disp_name_config;
} view_pan_phylo_Input;
typedef structure {
string report_name;
string report_ref;
} view_pan_phylo_Output;
funcdef view_pan_phylo(view_pan_phylo_Input params)
returns (view_pan_phylo_Output output)
authentication required;
/* score_orthologs_evolutionary_rates()
**
** score mutations between a base genome and additional genomes
** using the Pangenome to determine orthologs
** (split paralogs in larger clusters)
*/
typedef structure {
workspace_name workspace_name;
data_obj_ref input_genome_ref;
data_obj_ref input_pangenome_ref;
data_obj_ref input_compare_genome_refs;
float conserved_featureset_nuc_identity_zscore;
float divergent_featureset_nuc_identity_zscore;
float conserved_featureset_aa_identity_zscore;
float divergent_featureset_aa_identity_zscore;
float conserved_featureset_dNdS;
float divergent_featureset_dNdS;
bool save_featuresets;
string genome_disp_name_config;
} score_orthologs_evolutionary_rates_Input;
typedef structure {
string report_name;
string report_ref;
} score_orthologs_evolutionary_rates_Output;
funcdef score_orthologs_evolutionary_rates(score_orthologs_evolutionary_rates_Input params)
returns (score_orthologs_evolutionary_rates_Output output)
authentication required;
/* find_homologs_with_genome_context()
**
** show homolgous genes across multiple genomes within genome context against species tree
*/
typedef structure {
workspace_name workspace_name;
data_obj_ref input_featureSet_ref;
data_obj_ref input_speciesTree_ref;
bool save_per_genome_featureSets;
int neighbor_thresh;
float ident_thresh;
float overlap_fraction;
float e_value;
float bitscore;
float color_seed;
} find_homologs_with_genome_context_Input;
typedef structure {
string report_name;
string report_ref;
} find_homologs_with_genome_context_Output;
funcdef find_homologs_with_genome_context(find_homologs_with_genome_context_Input params)
returns (find_homologs_with_genome_context_Output output)
authentication required;
/*
COG, PF, TIGR, SEED
*/
typedef string domain_source;
/*
Categories
*/
typedef string category;
/*
Domains
*/
typedef string domainfamily;
/* category to name
*/
typedef structure {
domain_source namespace;
category cat;
} Cat2Name;
/* category to group
*/
typedef structure {
domain_source namespace;
category cat;
} Cat2Group;
/* domain family to category
*/
typedef structure {
domain_source namespace;
domainfamily domfam;
} DomFam2Cat;
/* category to domain family
*/
typedef structure {
domain_source namespace;
category cat;
} Cat2DomFams;
/* get_configure_categories()
**
** configure the domain categorie names and descriptions
*/
typedef structure {
view_fxn_profile_Input params;
} get_configure_categories_Input;
typedef structure {
list<string> cats;
Cat2Name cat2name;
Cat2Group cat2group;
DomFam2Cat domfam2cat;
Cat2DomFams cat2domfams;
} get_configure_categories_Output;
funcdef get_configure_categories(get_configure_categories_Input params)
returns (get_configure_categories_Output output)
authentication required;
};