From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: leaky pipelines and Guix Date: Fri, 12 Feb 2016 15:04:56 +0100 Message-ID: <87egci10tz.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53557) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUELI-0004Wr-Tn for help-guix@gnu.org; Fri, 12 Feb 2016 09:05:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aUELD-0001K2-Si for help-guix@gnu.org; Fri, 12 Feb 2016 09:05:04 -0500 In-Reply-To: (Ricardo Wurmus's message of "Tue, 9 Feb 2016 12:25:23 +0100") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org To: Ricardo Wurmus Cc: help-guix@gnu.org Ricardo Wurmus skribis: > So, how could I package something like that? Is packaging the wrong > approach here and should I really just be using =E2=80=9Cguix environment= =E2=80=9D to > prepare a suitable environment, run the pipeline, and then exit? Maybe packages are the wrong abstraction here? IIUC, a pipeline is really a function that takes inputs and produces output(s). So it can definitely be modeled as a derivation. Perhaps as a first step you could try and write a procedure and a CLI around it that simply runs a given pipeline: $ guix biopipeline foo frog.dna human.dna =E2=80=A6 /gnu/store/=E2=80=A6-freak.dna The procedure itself would be along the lines of: (define (foo-pipeline input1 input2) (gexp->derivation "result" #~(begin (setenv "PATH" "/foo/bar") (invoke-make-and-co #$input1 #$input2 #$output)))) Once you=E2=80=99ve done this exercise for a couple of pipelines, perhaps y= ou=E2=80=99ll find a higher-level abstraction that captures properties common to all bioinfo pipelines? HTH, Ludo=E2=80=99.