I think it works both ways, as long as you don&#39;t store duplicate experiment-phenotype values .<br><br>I think an nd_experiment should be a phenotyping/genotyping event, with all measurements sharing the same properties (like date, location, person, etc.) <br>
<br>Of course if someone does not agree with this definition, there is no problem storing one experiment id for each single measurement. The &#39;experiment&#39; notion in the natural div. module is just a way for linking stocks with phenotypes/genotypes, while allowing to re-use the same stock in multiple projects or field plots or whatever. <br>
<br>I guess the VectorBase people could chip in about making this work in the opposite direction ( an experiment yields new stocks) <br><br>-Naama<br><br><br><div class="gmail_quote">On Fri, Oct 22, 2010 at 11:58 AM, Sook Jung <span dir="ltr">&lt;<a href="mailto:sookjc@gmail.com">sookjc@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi All,<br>
I think I raised this issue many times but it somehow gets forgotten..<br>
We decided long time ago that nd_experiment to phenotype was many to<br>
one, not one to one, since many experiment can be linked to one<br>
phenotype. For example, many experiments with different samples can<br>
have sugar content of &#39;3&#39;, so we didn&#39;t want to make multiple raws in<br>
phenotype table for each experiment. So 1-1 constraint on<br>
(nd_experiment_id, phenotype_id) would&#39;t work..<br>
<br>
Then some other people suggested linking one experiment to many<br>
phenotypes which is different isssue.<br>
<br>
Thanks<br>
Sook<br>
<div><div></div><div class="h5"><br>
On Fri, Oct 22, 2010 at 8:21 AM, Naama Menda &lt;<a href="mailto:nm249@cornell.edu">nm249@cornell.edu</a>&gt; wrote:<br>
&gt; Good point.<br>
&gt; I dropped the 1-1 relationship and added a constraint on (nd_experiment_id,<br>
&gt; phenotype_id /genotype_id )<br>
&gt;<br>
&gt; It&#39;s in svn, so update your schema if you&#39;re using it .<br>
&gt;<br>
&gt; -Naama<br>
&gt;<br>
&gt;<br>
&gt; Naama Menda<br>
&gt; Boyce Thompson Institute for Plant Research<br>
&gt; Tower Rd<br>
&gt; Ithaca NY 14853<br>
&gt; USA<br>
&gt;<br>
&gt; (607) 254 3569<br>
&gt; Sol Genomics Network<br>
&gt; <a href="http://solgenomics.net/" target="_blank">http://solgenomics.net/</a><br>
&gt; <a href="mailto:nm249@cornell.edu">nm249@cornell.edu</a><br>
&gt;<br>
&gt;<br>
&gt; On Fri, Oct 22, 2010 at 9:27 AM, Hilmar Lapp &lt;<a href="mailto:hlapp@nescent.org">hlapp@nescent.org</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; It looks to me that after relaxing this uniqueness constraint the table<br>
&gt;&gt; doesn&#39;t have a natural primary key anymore. Every table should have a<br>
&gt;&gt; natural primary key enforced by a UNIQUE constraint. Maybe the constraint<br>
&gt;&gt; should be on (nd_experiment_id,phenotype_id)?<br>
&gt;&gt; -hilmar<br>
&gt;&gt; On Oct 22, 2010, at 7:46 AM, Naama Menda wrote:<br>
&gt;&gt;<br>
&gt;&gt; hi Bob,<br>
&gt;&gt; you could store the 2 measurements with 2 different experiment ids, or use<br>
&gt;&gt; the same experiment for both.<br>
&gt;&gt; Someone at some point asked for the 1-1 constraint, and I can&#39;t remember<br>
&gt;&gt; why.<br>
&gt;&gt; I think it&#39;s best to have users enforce this if needed on the software<br>
&gt;&gt; level.<br>
&gt;&gt;<br>
&gt;&gt; Any other thoughts?<br>
&gt;&gt;<br>
&gt;&gt; -Naama<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Fri, Oct 22, 2010 at 5:53 AM, Bob MacCallum<br>
&gt;&gt; &lt;<a href="mailto:r.maccallum@imperial.ac.uk">r.maccallum@imperial.ac.uk</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Wasn&#39;t it just that if you are measuring two phenotypes, say leaf size<br>
&gt;&gt;&gt; and fruit weight, then you&#39;d use two nd_experiments (each linked to the same<br>
&gt;&gt;&gt; stock) because you need two nd_protocols to describe the two assays?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; We have no objections to relaxing the constraint though - I&#39;m sure there<br>
&gt;&gt;&gt; are situations where 1 to many is needed.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Thu, Oct 21, 2010 at 9:00 PM, Naama Menda &lt;<a href="mailto:nm249@cornell.edu">nm249@cornell.edu</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; hi,<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; does anyone know why there was a request to have the experiment_id<br>
&gt;&gt;&gt;&gt; unique constraint on nd_experiment_phenotype ad genotype tables?<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; There was a request recently to drop this 1-1 relationship, and I can&#39;t<br>
&gt;&gt;&gt;&gt; figure out why it was requested in the first place .<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; thanks!<br>
&gt;&gt;&gt;&gt; -Naama<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Naama Menda<br>
&gt;&gt;&gt;&gt; Boyce Thompson Institute for Plant Research<br>
&gt;&gt;&gt;&gt; Tower Rd<br>
&gt;&gt;&gt;&gt; Ithaca NY 14853<br>
&gt;&gt;&gt;&gt; USA<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; (607) 254 3569<br>
&gt;&gt;&gt;&gt; Sol Genomics Network<br>
&gt;&gt;&gt;&gt; <a href="http://solgenomics.net/" target="_blank">http://solgenomics.net/</a><br>
&gt;&gt;&gt;&gt; <a href="mailto:nm249@cornell.edu">nm249@cornell.edu</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; ===========================================================<br>
&gt;&gt; : Hilmar Lapp  -:- Durham, NC -:- <a href="http://informatics.nescent.org" target="_blank">informatics.nescent.org</a> :<br>
&gt;&gt; ===========================================================<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
Sook Jung, PhD<br>
Assistant Research Professor of Bioinformatics<br>
Dept of Horticulture and Landscape Architecture<br>
Washington State University<br>
45 Johnson Hall, Pullman, WA 99164-6414<br>
<a href="mailto:Email%3Asook@bioinfo.wsu.edu">Email:sook@bioinfo.wsu.edu</a><br>
</font></blockquote></div><br>