Re: [Gmod-tripal-devel] [Gmod-tripal] tripal_contact and nested combos

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Re: [Gmod-tripal-devel] [Gmod-tripal] tripal_contact and nested combos

Stephen Ficklin-2
Hi Gaëtan,

Are there additions to your contact OBO file that might be of benefit to
others?  We could potentially update it to include some/all of your
additions if appropriate.  Feel free to send along if you like.

Also, if the OBO relationships are properly hierarchical then you should
be able to filter which ones appear in the property box when the contact
type is changed.  Im CC'ing the developers mailing list which is where
this conversation can be transferred. But, if you want to edit the code
the place to start is in the
tripal/tripal_contact/includes/ file.   In it,
(about line 90) you will see the SQL statement for selecting the
properties that will be shown.  You can adjust this to be more dynamic
based on the contact type, which is available via the $d_type_id
variable.   If the OBO term heirarchy is properly setup, then you can
adjust the SQL to select the top-level term where all if it's children
are for the proper type.  Make sense?

As for the natural diversity tables, Tripal does support visualization
of data stored in those tables.  Check out our demo site for example
pages: (germplasm page /
genotyping).  Tripal does not have loaders for those tables, however.  
You can try to create templates using the bulk loader (which
unfortunately we do not yet have documentation for), or you can write
your own loaders in whatever language you prefer.

Hope this helps,

On 8/19/2013 5:22 PM, DROC Gaëtan wrote:

> Hi Stehen,
> I already modified the file Tcontact.obo, with more relationship, but for now, It's very closed for our needs, but I'm not sure that's the more important thing.
> Of course, I can share this file as an example.
> If you give me some pointers, I can modified and discussed with you for the improvement of the source code.
> Another point, I am also interested in the Chado Natural Diversity Module. What developments are you planning on this module (GDR, It' s a very nice example of what I need;-) )?
> Best regards
> Gaetan
> Le 19 août 2013 à 18:32, Stephen Ficklin <[hidden email]> a écrit :
>> Hi Gaëtan,
>> Yes, I think it possible to do this. I have added a feature request on our Drupal Issues page for Tripal to see if we can do this: If you have a Drupal account you can follow that issue and receive updates when it gets addressed.
>> However, I'm not sure how quick we can get to it.  You asked if you could make this change, and the only way to do it is to edit the code.  If you would like to do that, just let me know and I can give you some pointers on getting started with it.  I suspect though that the Tripal contact ontology file needs a few more relationships added to make this work.
>> Thanks for the input!
>> Stephen
>> On 8/19/2013 10:28 AM, DROC Gaëtan wrote:
>>> Dear Stephen et al,
>>> I use the tripal_contact module, and I want to know if it's possible to change the feature property list associated with a contact when I change the contact type (with Jquery or other) ?
>>> For example, for a Person, I just want to have a subset of property related to a Person ( first name, middle name, last name, email...),  and for an Organization, an address, website or a country.
>>> Does it possible? And how can I do that?
>>> Thanks for your help!
>>> Gaetan
>>> Gaëtan Droc
>>> Avenue Agropolis - TA A 96/03 (B‚t. 3, Bur. 14)
>>> 34398 Montpellier CEDEX 5, France
>>> ------------------------------------------------------------------------------
>>> Get 100% visibility into Java/.NET code with AppDynamics Lite!
>>> It's a free troubleshooting tool designed for production.
>>> Get down to code-level detail for bottlenecks, with <2% overhead.
>>> Download for free and get started troubleshooting in minutes.
>>> _______________________________________________
>>> Gmod-tripal mailing list
>>> [hidden email]
> Gaëtan Droc
> Equipe "Intégration des données"
> Avenue Agropolis - TA A 96/03 (B‚t. 3, Bur. 14)
> 34398 Montpellier CEDEX 5, France
> Tel  :  +33 4 67 61 75 56
> Fax  :  +33 4 67 61 56 05

Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
Gmod-tripal-devel mailing list
[hidden email]