pombase / canto

The PomBase community curation tool
https://curation.pombase.org
Other
19 stars 7 forks source link

Make display order of primary annotations configurable #1044

Closed airvine closed 8 years ago

airvine commented 8 years ago

I’m wondering is it possible to change the order in which the primary annotation types are displayed? When I put the appropriate details into canto.yaml I get them displayed like this:

image

But for the purposes of PHI-base the Phenotypes are by far the most important annotation type, so it would make sense to have this at the top, or at least before the genetic and physical interactions. I rather naively thought that I could simply change the order in which they come in canto.yaml, but this does not seem to make any difference.

kimrutherford commented 8 years ago

This was easier to fix than I thought. Could you try it and let me re-open the issue if there are problems?

airvine commented 8 years ago

This does work, but it may have introduced a new bug.

If I've got two phenotype namespaces defined in canto.yaml, then it now displays the phenotypes dialogue twice:

image

Obviously the Phenotypes allele options should only appear once.

For PHI-base, I was trying to separate phenotypes into Pathogen Phenotypes & Host Phenotypes, using different namespaces. I can easily get rid of this problem by using one namespace, but then I can only prompt for the generic PHI Phenotype.

I guess this isn't currently an issue in PomBase, since you only have one Phenotype namespace. But I'm wondering what will happen if we start using sub-ontologies for the primary annotations? Would the Phenotype options be displayed for each sub-ontology that was chosen?

kimrutherford commented 8 years ago

Could you send your settings for the annotation types? The display code is assuming that there is only one sort of phenotype annotation. It should be a quick fix.

airvine commented 8 years ago

I've actually already fixed it, by using one namespace in the ontology and only referring to this one namespace. But I thought I should mention the issue because of the potential for it to occur again if we were to implement using sub-ontologies.


From: Kim Rutherford notifications@github.com Sent: 07 December 2015 21:03 To: pombase/canto Cc: Alistair Irvine Subject: Re: [canto] Make display order of primary annotations configurable (#1044)

Reopened #1044https://github.com/pombase/canto/issues/1044.

[https://avatars1.githubusercontent.com/u/1037815?v=3&s=400]https://github.com/pombase/canto/issues/1044

Make display order of primary annotations configurable ... I'm wondering is it possible to change the order in which the primary annotation types are displayed? When I put the appropriate details into canto.yaml I get them ... Read more...https://github.com/pombase/canto/issues/1044

Reply to this email directly or view it on GitHubhttps://github.com/pombase/canto/issues/1044#event-484892833.

Rothamsted Research is a company limited by guarantee, registered in England at Harpenden, Hertfordshire, AL5 2JQ under the registration number 2393175 and a not for profit charity number 802038.

kimrutherford commented 8 years ago

It should be fixed now - the "Phenotypes:" heading was hard coded, but isn't now.