forked from pombase/canto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
canto.yaml
2678 lines (2593 loc) · 105 KB
/
canto.yaml
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
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Canto config file -*- conf -*-
name: Canto
long_name: Community curation application
# the name of the organisation running this Canto - shown in various places
# in the user interface
database_name: CONFIGURE_IN_CANTO_DEPLOY.YAML
# The name of the destination database for the annotations from this instance.
# eg. "PomBase".
# If not set a generic text will be used instead.
# database_name: SET_ME
# Set this to the URL of the destination database for the annotations
# from this Canto.
# e.g "www.pombase.org"
# If not set the link will be replaced with some generic text.
#
# database_url: SET_ME
instance_front_subtitle: Add your work
header_image_url: '/'
header_image: logos/curation_tool.png
canto_url: https://curation.pombase.org/
app_version: v1826
schema_version: 36
## Set this to create a Canto instance for a particular organism. If not set,
## Canto will be in multi-organism mode and the multi_organism_mode will be set.
## In multi-organism mode all gene lookups with match genes from any organism.
#instance_organism:
# taxonid: 4896
## If set, use this map to get the NCBI taxon ID of an organism. If not set,
## look for an Organismprop for the Organism with type "taxon_id" .
## see also: Canto::Role::TaxonIDLookup
# organism_taxon_id:
# 'Schizosaccharomyces pombe': 4896
## set to 1 to enable strains for genotypes
strains_mode: 0
# the path that the home link goes to
instance_front_path: /docs/instance_front
canto_front_path: /docs/canto_front
help_path: /docs/index
base_docs_path: docs
# if zero, the user will need to log in before the links on the front page are
# visible
public_mode: 0
extra_css: ~
authentication:
default_realm: 'members'
realms:
members:
credential:
class: 'NoPassword'
store:
class: DBIx::Class
user_class: TrackModel::Person
id_field: orcid
oauth:
authenticator: ORCID
grant_uri: 'https://orcid.org/oauth/authorize'
token_uri: 'https://orcid.org/oauth/token'
client_id: 'CONFIGURE_IN_CANTO_DEPLOY.YAML'
client_secret: 'CONFIGURE_IN_CANTO_DEPLOY.YAML'
scope: 'CONFIGURE_IN_CANTO_DEPLOY.YAML'
view_options:
max_inline_results_length: 1000
# the maximum number of lines of existing annotations to show on the
# publication page - too many will slow the page loading
max_existing_annotations: 100
# if 1, allow editing of the expression of alleles and show the expression
# as a column in the genotype table on the genotype management page
alleles_have_expression: 1
# if 1, show the organism in a selector on the genotype management pages
# and only show genes and genotypes for the selected organism
split_genotypes_by_organism: 1
# if 0, a wildtype allele is allowed only if there is another non-wildtype or
# non-wildtype expression allele from the same gene
allow_single_wildtype_allele: 0
# if 1, allow diploids to be created and used in genotypes
diploid_mode: 0
# if 1, add a "Figure" field to annotations
annotation_figure_field: 1
# if 0, hide the list of genes and actions on the left hand side of
# the genotype management page
show_genotype_management_genes_list: 1
# if 1, use FlyBase specific tweaks
flybase_mode: 0
# a map of allele note types eg. { phenotype: { display_name: Phenotype } }
allele_note_types: []
# if 1, show the shortcut buttons on the genotype management page for quick
# deletion allele creation
show_quick_deletion_buttons: 1
# header for the external notes section on the front page
external_notes_label: External notes
# header for the message to curators section on the front page (if enabled)
message_to_curators_label: Message to curators
# if 1, show the external notes section on the front page even if there are
# no notes - we show "[none]" in that case
always_show_external_notes_section: 0
# if 1, show the internal notes (from "Edit message to curators") on the front page
show_message_for_curators_on_front_page: 0
# if 1, sort the genotypes on the genotype management page using the order in
# the allele_type_list
# For multi allele genotype, only considering the type of the first allele
sort_genotype_management_page_by_allele_type: 0
# if set, use this end point to check allele descriptions
allele_qc_api_url: ~
# from_address - used as the "from" field is all outgoing messages
# admin_address - the contact address of the admin curators, used to
# alert about completed sessions and problems
email:
from_address: CONFIGURE_ME_IN_CANTO_DEPLOY.YAML
admin_address: CONFIGURE_ME_IN_CANTO_DEPLOY.YAML
noreply_address: CONFIGURE_ME_IN_CANTO_DEPLOY.YAML
# template_root: "/some/absolute/path/"
templates:
session_accepted:
subject: "email_templates/generic/session_accepted_subject.mhtml"
body: "email_templates/generic/session_accepted_body.mhtml"
session_assigned:
# Set the "From" to be the current, logged in admin user to make
# messages more personal - see SourceForge #604
from_address: CURRENT_USER
subject: "email_templates/generic/session_assigned_subject.mhtml"
body: "email_templates/generic/session_assigned_body.mhtml"
session_reassigned:
subject: "email_templates/generic/session_reassigned_subject.mhtml"
body: "email_templates/generic/session_reassigned_body.mhtml"
session_resent:
from_address: CURRENT_USER
subject: "email_templates/generic/session_resent_subject.mhtml"
body: "email_templates/generic/session_resent_body.mhtml"
reassigner:
subject: "email_templates/generic/reassigner_subject.mhtml"
body: "email_templates/generic/reassigner_body.mhtml"
daily_summary:
global: 1 # not an email about a particular session/publication
subject: "email_templates/generic/daily_summary_subject.mhtml"
body: "email_templates/generic/daily_summary_body.mhtml"
# see Canto::Meta::Util::initialise_core_data()
db_initial_data:
track:
cv:
- name: canto_core
cvterms:
- name: is_a
dbxref:
accession: is_a
db:
name: Canto
- name: has_qualifier
dbxref:
accession: has_qualifier
db:
name: Canto
- name: organismprop_types
cvterms:
- name: taxon_id
dbxref:
accession: taxonId
db:
name: Canto
- name: cvprop_type
cvterms:
- name: cv_date
definition: 'The date the CV was last loaded'
dbxref:
accession: cv_date
db:
name: Canto
- name: cv_term_count
definition: 'The number of non-obsolete, non-relation terms in the CV'
dbxref:
accession: cv_term_count
db:
name: Canto
- name: cvterm_property_type
cvterms:
- name: comment
dbxref:
accession: comment
db:
name: Canto
- name: Canto numeric priority
definition: Cvterprop type for numeric versions of annotation priorities
dbxref:
accession: numeric_priority
db:
name: Canto
- name: canto_subset
definition: >
Used to store the ID of a ontology subset that this cvterm is part of.
dbxref:
accession: canto_subset
db:
name: Canto
- name: synonym_type
cvterms:
- name: broad
dbxref:
accession: broad
db:
name: Canto
- name: narrow
dbxref:
accession: narrow
db:
name: Canto
- name: exact
dbxref:
accession: exact
db:
name: Canto
- name: related
dbxref:
accession: related
db:
name: Canto
- name: Canto publication type
cvterms:
- name: unknown
dbxref:
accession: unknown
db:
name: Canto
- name: Canto cursprop types
cvterms:
- name: annotation_status
# The session status (eg. 'SESSION_CREATED', 'CURATION_IN_PROGRESS')
dbxref:
accession: annotation_status
db:
name: Canto
- name: annotation_status_datestamp
# The date+time of the last status change
dbxref:
accession: annotation_status_datestamp
db:
name: Canto
- name: session_genes_count
# The number of genes the user has added to the session
dbxref:
accession: session_genes_count
db:
name: Canto
- name: session_term_suggestions_count
# The number of term suggestions made by the user in a session
dbxref:
accession: session_term_suggestions_count
db:
name: Canto
- name: session_unknown_conditions_count
# The number of times conditions name that don't match an ontology
# term are used in this session
dbxref:
accession: session_unknown_conditions_count
db:
name: Canto
- name: approver_name
# The name of the person approving the session (if it is in the
# APPROVAL_IN_PROGRESS state)
dbxref:
accession: approver_name
db:
name: Canto
- name: link_sent_to_curator_date
dbxref:
accession: link_sent_to_curator_date
db:
name: Canto
- name: session_reactivated_timestamp
dbxref:
accession: session_reactivated_timestamp
db:
name: Canto
- name: session_unexported_timestamp
dbxref:
accession: session_unexported_timestamp
db:
name: Canto
- name: session_exported_timestamp
dbxref:
accession: session_exported_timestamp
db:
name: Canto
- name: session_first_exported_timestamp
dbxref:
accession: session_first_exported_timestamp
db:
name: Canto
- name: needs_approval_timestamp
dbxref:
accession: needs_approval_timestamp
db:
name: Canto
- name: first_approved_timestamp
dbxref:
accession: first_approved_timestamp
db:
name: Canto
- name: session_first_submitted_timestamp
dbxref:
accession: session_first_submitted_timestamp
db:
name: Canto
- name: Canto publication triage status
cvterms:
- name: New
definition: Triage status for new papers.
dbxref:
accession: new
db:
name: Canto
- name: Curatable
definition: Triage status for papers that can be curated.
dbxref:
accession: curatable
db:
name: Canto
- name: Curatable, low priority
definition: Triage status for papers that can be curated but are low priority.
dbxref:
accession: curatable_low_priority
db:
name: Canto
- name: Sequence feature or region
definition: >
Triage status for a paper that reports a sequence feature
with no other curatable information.
dbxref:
accession: sequence_feature_or_region
db:
name: Canto
- name: Not English
definition: >
Triage status for a paper that will not be curated because
the text is not in English.
dbxref:
accession: not_english
db:
name: Canto
- name: Method or reagent
definition: >
Triage status for a paper that will not be curated because it
is a methods paper.
dbxref:
accession: methods_paper
db:
name: Canto
- name: Wrong organism
definition: >
Triage status for a paper that will not be curated because the
organism is not appropriate for this database.
dbxref:
accession: wrong_organism
db:
name: Canto
- name: Review or comment
definition: >
Triage status for a review or comment.
dbxref:
accession: review
db:
name: Canto
- name: Loaded in error
definition: >
Triage status for a publication that will not be curated for
a reason the is not covered by the other statuses.
dbxref:
accession: loaded_in_error
db:
name: Canto
- name: Erratum
definition: >
Triage status for an erratum.
dbxref:
accession: erratum
db:
name: Canto
- name: Mutagenicity or toxicity study
dbxref:
accession: mutagenicity_or_toxicity_study
db:
name: Canto
- name: Not physically mapped
dbxref:
accession: not_physically_mapped
db:
name: Canto
- name: Cell composition or WT feature
dbxref:
accession: cell_composition_or_wt_feature
db:
name: Canto
- name: Phylogeny and evolutionary studies
dbxref:
accession: phylogeny_paper
db:
name: Canto
- name: Phenotype screen
dbxref:
accession: phenotype_screen
db:
name: Canto
- name: Structure
dbxref:
accession: structure
db:
name: Canto
- name: Bioarchive
dbxref:
accession: bioarchive
db:
name: Canto
- name: Retracted
dbxref:
accession: retracted
db:
name: Canto
- name: Duplicated in PubMed
dbxref:
accession: duplicated_in_pubmed
db:
name: Canto
- name: Modelling
dbxref:
accession: modelling
db:
name: Canto
- name: Biotech
dbxref:
accession: biotech
db:
name: Canto
- name: Database
dbxref:
accession: database
db:
name: Canto
- name: Bioinformatics
dbxref:
accession: bioinformatics
db:
name: Canto
- name: Educational Resources
dbxref:
accession: educational_resources
db:
name: Canto
- name: Other
definition: >
Triage status for a publication that will not be curated for
a reason the is not covered by the other statuses.
dbxref:
accession: other
db:
name: Canto
- name: Canto curation priorities
definition: Priorities assigned to papers
cvterms:
- name: low
dbxref:
accession: low_priority
db:
name: Canto
cvtermprop_cvterms:
- type:
name: Canto numeric priority
value: 100
- name: high
dbxref:
accession: high_priority
db:
name: Canto
cvtermprop_cvterms:
- type:
name: Canto numeric priority
value: 1000
- name: Canto user types
cvterms:
- name: user
dbxref:
accession: user
db:
name: Canto
- name: admin
dbxref:
accession: admin
db:
name: Canto
- name: inactive_user
dbxref:
accession: inactive_user
db:
name: Canto
- name: group_leader
dbxref:
accession: group_leader
db:
name: Canto
- name: inactive_group_leader
dbxref:
accession: inactive_group_leader
db:
name: Canto
- name: Canto publication curation status
cvterms:
- name: not started
dbxref:
accession: not_started
db:
name: Canto
- name: complete
dbxref:
accession: complete
db:
name: Canto
- name: Canto publication experiment types
cvterms:
- name: Genome wide
dbxref:
accession: genome_wide
db:
name: Canto
- name: High throughput
dbxref:
accession: high_throughput
db:
name: Canto
- name: Computational analysis
dbxref:
accession: computational_analysis
db:
name: Canto
# possibilities for the type_id of pubprops
- name: Canto publication property types
cvterms:
- name: experiment_type
dbxref:
accession: experiment_type
db:
name: Canto
- name: triage_comment
dbxref:
accession: triage_comment
db:
name: Canto
- name: Canto publication load types
definition: >
Publications can be added to database by the administrator or by user
actions such as going to /tools/pubmed_id_start. Types in this CV
record that information. A publication loaded by user actions can be
removed if no curation session refers to it.
cvterms:
- name: user_load
definition: Type used for a publication loaded by a user action.
dbxref:
accession: user_load
db:
name: Canto
- name: admin_load
definition: Type used for a publication loaded by the administrator.
dbxref:
accession: user_load
db:
name: Canto
- name: Canto metadata types
definition: Types for the metadata table.
cvterms:
- name: schema_version
definition: >
Version number of the track schema, incremented when the schema
changes.
dbxref:
accession: schema_version
db:
name: Canto
- name: PubMed publication types
definition: >
Publication types loaded from the PublicationType elements
of the PubMed XML.
cvterms:
- name: paper
dbxref:
accession: pubmed_paper
db:
name: Canto
- name: review
dbxref:
accession: pubmed_review
db:
name: Canto
class_info:
track:
cv:
class_display_name: controlled vocabulary
editable: 1
display_field: name
field_info_list:
- name: name
editable: 1
- name: definition
editable: 1
- name: "term count"
source:
sql: 'select count(*) from cvterm where cvterm.cv_id = me.cv_id'
- name: "load date"
source:
sql: "select value from cvprop p join cvterm pt on p.type_id = pt.cvterm_id where p.cv_id = me.cv_id and pt.name = 'cv_date'"
cvprop:
class_display_name: controlled vocabulary properties
display_field: value
field_info_list:
- name: type
source: type_id
referenced_class: Cvterm
- name: value
editable: 1
cvterm:
class_display_name: controlled vocabulary term
editable: 1
display_field: name
field_info_list:
- name: name
editable: 1
- name: definition
editable: 1
- name: cv_id
editable: 1
db:
editable: 1
display_field: name
field_info_list:
- name: name
editable: 1
- name: description
editable: 1
- name: url
editable: 1
- name: "accessions stored"
source:
sql: 'select count(*) from dbxref where dbxref.db_id = me.db_id'
dbxref:
editable: 1
display_field: accession
field_info_list:
- name: db_id
editable: 1
- name: accession
editable: 1
- name: description
editable: 1
- name: cvterm_id
editable: 1
organism:
editable: 1
display_field: full_name
order_by:
- scientific_name
field_info_list:
- name: scientific_name
editable: 1
organism_report:
extends: organism
'+field_info_list':
- name: Number of genes
source:
sql: 'select count(*) from gene where gene.organism = me.organism_id'
person:
object_title_format: 'Details for @@DISPLAY_FIELD@@'
editable: 1
display_field: name
order_by: name
search_fields:
- email_address
- name
- orcid
field_info_list:
- name: name
source: name
editable: 1
- name: orcid
editable: 1
- name: known_as
editable: 1
- name: email_address
editable: 1
- name: role
default_value: "'user'"
values_constraint: 'where me.cv_id = (SELECT cv_id FROM cv where cv.name = "Canto user types")'
editable: 1
admin_only: 1
- name: Sessions
source:
sql: "select count(curs) from curs_curator cc1 where cc1.curator = person_id and curs_curator_id = (select max(curs_curator_id) from curs_curator cc2 where cc2.curs = cc1.curs)"
- name: Approved sessions
source:
sql: "select count(curs) from curs_curator cc1 where cc1.curator = person_id and curs_curator_id = (select max(curs_curator_id) from curs_curator cc2 where cc2.curs = cc1.curs) and cc1.curs in (select curs_id from curs where curs_id in (select curs from cursprop p join cvterm t on p.type = t.cvterm_id where t.name = 'annotation_status' and p.value = 'APPROVED'))"
- name: password
editable: 1
admin_only: 1
lab:
editable: 1
display_field: name
order_by: name
field_info_list:
- name: name
editable: 1
- name: lab_head
editable: 1
- name: people
is_collection: 1
editable: 1
pub:
object_title_format: 'Details for publication: @@$object->uniquename()@@'
class_display_name: publication
display_field: 'Publication ID'
search_fields:
- uniquename
editable: 1
# hack to order by pubmed id, or by doi number
order_by: "cast((case me.uniquename like 'PMID:%' WHEN 1 THEN substr(me.uniquename, 6) ELSE me.uniquename END) as integer)"
field_info_list:
- name: 'Publication ID'
source: uniquename
- name: title
- name: authors
- name: abstract
extra_field_class: non-important-attribute-field
hide_context:
- list
- inline_list
- name: citation
hide_context:
- list
- inline_list
- name: publication_date
hide_context:
- list
- inline_list
- name: affiliation
hide_context:
- list
- inline_list
- name: corresponding_author
editable: 1
- name: current_curator
referenced_class: Person
source:
sql: "select curator from curs_curator where curs_curator_id = (select max(curs_curator_id) from curs_curator cc, curs c where cc.curs = c.curs_id and c.pub = me.pub_id)"
- name: session_first_sent
source:
sql: "select (case when (value is null) THEN 'no' ELSE value END) from curs, cursprop p, cvterm t where me.pub_id = curs.pub and curs.curs_id = p.curs and t.cvterm_id = p.type and t.name = 'link_sent_to_curator_date' order by value"
default: no
editable: 0
- name: session_last_sent
source:
sql: "select (case when (value is null) THEN 'no' ELSE value END) from curs, cursprop p, cvterm t where me.pub_id = curs.pub and curs.curs_id = p.curs and t.cvterm_id = p.type and t.name = 'link_sent_to_curator_date' order by value DESC"
default: no
editable: 0
- name: session_sent_count
source:
sql: "cast((select count(value) from curs, cursprop p, cvterm t where me.pub_id = curs.pub and curs.curs_id = p.curs and t.cvterm_id = p.type and t.name = 'link_sent_to_curator_date') as int)"
# - name: type
# source: type_id
# values_constraint: 'where me.cv_id = (SELECT cv_id FROM cv where cv.name = "Canto publication type")'
# referenced_class: Cvterm
# editable: 1
- name: session_status
source:
sql: "select value from curs, cursprop p, cvterm t where me.pub_id = curs.pub and curs.curs_id = p.curs and t.cvterm_id = p.type and t.name = 'annotation_status'"
editable: 0
- name: approver_name
source:
sql: "select value from curs, cursprop p, cvterm t where me.pub_id = curs.pub and curs.curs_id = p.curs and t.cvterm_id = p.type and t.name = 'approver_name'"
editable: 0
- name: load_type
source: load_type_id
values_constraint: 'where me.cv_id = (SELECT cv_id FROM cv where cv.name = "Canto publication load types")'
referenced_class: Cvterm
editable: 1
hide_context:
- list
- inline_list
- name: triage_status
source: triage_status_id
values_constraint: 'where me.cv_id = (SELECT cv_id FROM cv where cv.name = "Canto publication triage status")'
referenced_class: Cvterm
editable: 1
hide_context:
- inline_list
- name: curation_priority
source: curation_priority_id
values_constraint: 'where me.cv_id = (SELECT cv_id FROM cv where cv.name = "Canto curation priorities")'
referenced_class: Cvterm
editable: 1
pub_curation_status:
class_display_name: publication curation status
display_field: status_id
editable: 1
field_info_list:
- name: publication
source: pub_id
editable: 1
- name: annotation_type
editable: 1
- name: status
source: status_id
values_constraint: 'where me.cv_id = (SELECT cv_id FROM cv where cv.name = "Canto publication curation status")'
referenced_class: Cvterm
editable: 1
pubprop:
class_display_name: publication properties
display_field: value
editable: 1
field_info_list:
- name: publication
source: pub_id
editable: 1
- name: type_id
values_constraint: 'where me.cv_id = (SELECT cv_id FROM cv where cv.name = "Canto publication experiment types")'
referenced_class: Cvterm
editable: 1
- name: value
editable: 1
curs:
class_display_name: curation session
display_field: curs_key
editable: 0
field_info_list:
- name: curs_key
editable: 0
- name: publication
editable: 0
source: pub
- name: creation_date
editable: 0
- name: current_curator
referenced_class: Person
source:
sql: "select curator from curs_curator where curs_curator_id = (select max(curs_curator_id) from curs_curator where curs = me.curs_id)"
- name: accepted
source:
sql: "select (case when (accepted_date is null) THEN 'no' ELSE accepted_date END) from curs_curator where curs_curator_id = (select max(curs_curator_id) from curs_curator where curs = me.curs_id)"
- name: last_assigned
source:
sql: "select creation_date from curs_curator where curs_curator_id = (select max(curs_curator_id) from curs_curator where curs = me.curs_id)"
- name: last_sent_date
source:
sql: "select value from cursprop p, cvterm t where me.curs_id = p.curs and t.cvterm_id = p.type and t.name = 'link_sent_to_curator_date' order by value DESC"
- name: session_sent_count
source:
sql: "cast((select count(value) from cursprop p, cvterm t where me.curs_id = p.curs and t.cvterm_id = p.type and t.name = 'link_sent_to_curator_date') as int)"
- name: status
source:
sql: "select value from cursprop p, cvterm t where me.curs_id = p.curs and t.cvterm_id = p.type and t.name = 'annotation_status'"
- name: approver_name
source:
sql: "select value from cursprop p, cvterm t where me.curs_id = p.curs and t.cvterm_id = p.type and t.name = 'approver_name'"
- name: genes_added
source:
sql: "cast((select value from cursprop p, cvterm t where me.curs_id = p.curs and t.cvterm_id = p.type and t.name = 'session_genes_count') as int)"
- name: term_suggestions
source:
sql: "cast((select value from cursprop p, cvterm t where me.curs_id = p.curs and t.cvterm_id = p.type and t.name = 'session_term_suggestions_count') as int)"
# if the hook dies the creation fails
pre_create_hook: 'Canto::Track::create_curs_db_hook'
cursprop:
class_display_name: Session properties
editable: 1
field_info_list:
- name: type
values_constraint: 'where me.cv_id = (SELECT cv_id FROM cv where cv.name = "Canto cursprop types")'
referenced_class: Cvterm
editable: 1
- name: value
editable: 1
- name: curs
editable: 1
curs_curator:
class_display_name: Session curator
editable: 1
field_info_list:
- name: curs
editable: 1
- name: curator
editable: 1
strain:
class_display_name: Strain
editable: 0
gene:
editable: 1
display_field: primary_identifier
search_fields:
- primary_identifier
- primary_name
- product
field_info_list:
- name: primary_identifier
editable: 1
- name: primary_name
editable: 1
- name: product
editable: 1
- name: genesynonyms
editable: 1
is_collection: 1
- name: organism
editable: 1
genesynonym:
editable: 1
display_field: identifier
field_info_list:
- name: identifier
editable: 1
- name: gene
editable: 1
all_publications:
extends: pub
untriged_publications:
class_display_name: un-triaged publications
extends: pub
constraint: "triage_status_id = (select cvterm_id from cvterm where name = 'New')"
triaged_publications:
extends: pub
constraint: "triage_status_id not in (select cvterm_id from cvterm where name = 'New')"
named_genes:
extends: gene
constraint: "primary_name is not null"
curatable_publications:
extends: pub
constraint: "triage_status_id in (select cvterm_id from cvterm where name = 'Curatable')"
uncuratable_publications:
extends: pub
constraint: "triage_status_id not in (select cvterm_id from cvterm where name ='Curatable' or name = 'New')"
high_priority_publications:
extends: pub
constraint: "curation_priority_id in (select cvterm_id from cvterm where name = 'high')"
community_curatable_publications:
extends: pub
constraint: "triage_status_id in (select cvterm_id from cvterm where name = 'Curatable') and pub_id in (select pub from curs_curator cc join curs on curs_id = cc.curs join person on person.person_id = cc.curator join cvterm role on person.role = role.cvterm_id and role.name <> 'admin')"
publications_with_a_community_session:
extends: pub
constraint: "pub_id in (select pub from curs_curator cc join curs on curs_id = cc.curs join person on person.person_id = cc.curator join cvterm role on person.role = role.cvterm_id and role.name <> 'admin')"
uncuratable_publications_with_a_community_session:
extends: pub
constraint: "triage_status_id in (select cvterm_id from cvterm where name <> 'Curatable') and pub_id in (select pub from curs_curator cc join curs on curs_id = cc.curs join person on person.person_id = cc.curator join cvterm role on person.role = role.cvterm_id and role.name <> 'admin')"
curated_publications:
extends: pub
constraint: "pub_id in (select pub from curs where curs_id in (select curs from cursprop p, cvterm t where t.cvterm_id = p.type and t.name = 'annotation_status' and (p.value = 'NEEDS_APPROVAL' or p.value = 'APPROVAL_IN_PROGRESS' or p.value ='APPROVED')))"
community_curated_publications:
extends: pub
constraint: "pub_id in (select pub from curs_curator cc join curs on curs_id = cc.curs join person on person.person_id = cc.curator join cvterm role on person.role = role.cvterm_id and role.name <> 'admin') and pub_id in (select pub from curs where curs_id in (select curs from cursprop p, cvterm t where t.cvterm_id = p.type and t.name = 'annotation_status' and (p.value = 'NEEDS_APPROVAL' or p.value = 'APPROVAL_IN_PROGRESS' or p.value ='APPROVED')))"
curatable_low_priority_publications:
extends: pub
constraint: "triage_status_id in (select cvterm_id from cvterm where name = 'Curatable, low priority')"
triage_sequence_feature_or_region_publications:
class_display_name: Sequence feature or region
extends: pub
constraint: "triage_status_id in (select cvterm_id from cvterm where name = 'Sequence feature or region')"
triage_browser_datasets_to_host:
class_display_name: Browser datasets, to host
extends: pub
constraint: "triage_status_id in (select cvterm_id from cvterm where name = 'Browser datasets, to host')"
triage_browser_datasets_hosted:
class_display_name: Browser datasets, hosted
extends: pub