pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joe Conway <mail@joeconway.com>
To: Aram Fingal <fingal@multifactorial.com>
Cc: Postgres-General General <pgsql-general@postgresql.org>
Subject: Re: crosstab
Date: Tue, 04 Sep 2012 16:21:03 -0700
Message-ID: <50468CDF.5050100@joeconway.com> (raw)
In-Reply-To: <EDDB3318-F02B-4508-A01B-E1E9BC168721@multifactorial.com>
References: <1346773199616-5722632.post@n5.nabble.com>
	<1346784707.8977.6.camel@asus-1001PX.home>
	<73FF0C6A-965B-4456-BA90-2B8FD1CBC118@multifactorial.com>
	<504655DD.4030701@joeconway.com>
	<09AE4623-B1E5-4F8D-AC55-EF5906A6411C@multifactorial.com>
	<CAH3i69nY9131fN68PaYsY63AWTteq08uWq4QoNY_1iyc=o3vgg@mail.gmail.com>
	<7455D95E-B02C-4D24-A651-F9D84914A89E@multifactorial.com>
	<16BCF757-06E1-47C2-8E59-ACD7FEBE6A3B@themactionfaction.com>
	<EDDB3318-F02B-4508-A01B-E1E9BC168721@multifactorial.com>

On 09/04/2012 02:59 PM, Aram Fingal wrote:
> On Sep 4, 2012, at 4:36 PM, A.M. wrote:
> 
>> Or you could return the heatmap/plot as BYTEA data or use arrays as
>> necessary.
> 
> I was actually thinking exactly the same thing.  Part of the reason I
> use PostgreSQL for all my bioinformatics work is that there is a need to
> correctly associate analysis results with the data and experimental
> methods they come from.  I have tables for experimental runs,
> technicians, procedures, samples, drugs, etc. and I use foreign key
> constraints to connect them all.  The idea is to have all the
> information readily accessible to reproduce complex results in modern
> scientific fashion.  If I store the plots in the DB, I can connect them
> to all these basic information tables.

You can return your results (or some intermediate) object in serialized
form as bytea from a PL/R function and store it in a table along with
the basic experimental info. Then later if you pass the serialized
object back into another PL/R function as a bytea argument, it gets
reconstituted as the original R object.

Joe

-- 
Joe Conway
credativ LLC: http://www.credativ.us
Linux, PostgreSQL, and general Open Source
Training, Service, Consulting, & 24x7 Support






view thread (25+ messages)  latest in thread

Message-ID: <50468CDF.5050100@joeconway.com>
Permalink:  ../50468CDF.5050100@joeconway.com/
Also on:    postgresql.org/message-id/50468CDF.5050100@joeconway.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: mail@joeconway.com, fingal@multifactorial.com
  Subject: Re: crosstab
  In-Reply-To: <50468CDF.5050100@joeconway.com>
  References: <1346773199616-5722632.post@n5.nabble.com> <1346784707.8977.6.camel@asus-1001PX.home> <73FF0C6A-965B-4456-BA90-2B8FD1CBC118@multifactorial.com> <504655DD.4030701@joeconway.com> <09AE4623-B1E5-4F8D-AC55-EF5906A6411C@multifactorial.com> <CAH3i69nY9131fN68PaYsY63AWTteq08uWq4QoNY_1iyc=o3vgg@mail.gmail.com> <7455D95E-B02C-4D24-A651-F9D84914A89E@multifactorial.com> <16BCF757-06E1-47C2-8E59-ACD7FEBE6A3B@themactionfaction.com> <EDDB3318-F02B-4508-A01B-E1E9BC168721@multifactorial.com> <50468CDF.5050100@joeconway.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox