Return-Path: X-Original-To: apmail-taverna-users-archive@minotaur.apache.org Delivered-To: apmail-taverna-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6FD0517C80 for ; Mon, 21 Sep 2015 11:11:59 +0000 (UTC) Received: (qmail 6092 invoked by uid 500); 21 Sep 2015 11:11:56 -0000 Delivered-To: apmail-taverna-users-archive@taverna.apache.org Received: (qmail 6052 invoked by uid 500); 21 Sep 2015 11:11:56 -0000 Mailing-List: contact users-help@taverna.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@taverna.incubator.apache.org Delivered-To: mailing list users@taverna.incubator.apache.org Received: (qmail 6042 invoked by uid 99); 21 Sep 2015 11:11:56 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Sep 2015 11:11:56 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id DF848C01D9 for ; Mon, 21 Sep 2015 11:11:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.119 X-Spam-Level: X-Spam-Status: No, score=-0.119 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=googlemail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id gc9f0RUJp1XB for ; Mon, 21 Sep 2015 11:11:44 +0000 (UTC) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 46EE02305F for ; Mon, 21 Sep 2015 11:11:43 +0000 (UTC) Received: by wiclk2 with SMTP id lk2so106241839wic.1 for ; Mon, 21 Sep 2015 04:11:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=Xr8Vi5MNlN+2OqE6FIcoObGaG9rCTCOsKcS8Zt0BTH0=; b=cvw2EKAqz9JD63rRjQfFimd+Vg8bCHJFYFNEdgKWWSqFbgEoPjkDJ8sgv9jp4Uni6N nwIIyaYIaGTb2xDxYG1zCy4kUP7q0iRqs6EL71+5fJdCw2Vv1Z+rWK1RHfB4y6KwOkHO ODDtHT0LPhkmHtjHAQuiflgEwYjF8puDQpDTt5S3i5Zyb7azaX3dKF5DCIlF0FYf2cqk B0cO1pGUDY+fU3L9R6Ke9xaKrYahBxmepV6+vecSlTzkWJ/wK+4a8yNgRezv8MxkxLkj oIrzE7oB0AJ2eNfNk1OQX6A2FTx+NGBrRLq/RnjlDQOuOyGGHjRJl3f3hl0N7TGN5u+m AtWg== X-Received: by 10.180.108.136 with SMTP id hk8mr12253148wib.47.1442833902014; Mon, 21 Sep 2015 04:11:42 -0700 (PDT) Received: from [130.88.195.185] (cspool85.cs.man.ac.uk. [130.88.195.185]) by smtp.googlemail.com with ESMTPSA id x7sm12936838wia.5.2015.09.21.04.11.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Sep 2015 04:11:41 -0700 (PDT) Subject: Re: Passing list of lists (or any higher dimension) to R in Taverna? To: users@taverna.incubator.apache.org References: <7B08FB3ED8727B46ABA3BB0251FCA9B830ED6938@MAIL-MB02.lumcnet.prod.intern> From: alaninmcr Message-ID: <55FFE64E.6090407@googlemail.com> Date: Mon, 21 Sep 2015 12:13:18 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <7B08FB3ED8727B46ABA3BB0251FCA9B830ED6938@MAIL-MB02.lumcnet.prod.intern> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 21/09/2015 09:17, N.M.Palmblad@lumc.nl wrote: > Dear all, Hello Magnus > Perhaps this has been addressed elsewhere, but I could not find > anything. What is the best, or recommended, way of passing a list of > lists (or a list of lists of lists, etc.) to an Rshell in Taverna? The > lists in the list are not of equal length, i.e. not a perfect 2D matrix, > and some lists are empty. If possible, I would like to capture it as a > list structure in R and go from there. > > The solution I came up with was to flatten the list, inserting markers > for each sublist, then pass this single list to and parse it in R. This > works, but is hardly elegant (some may say it is even extremely inelegant). It may be possible to transfer it as an RExpression. I haven't seen any elegant way of handling lists of lists. > All the best, > > Magnus Palmblad Alan