Re: [galaxy-dev] Automatic installation of third party dependancies

2012-09-28 Thread Greg Von Kuster
Hi lance,

Another best practice I should have mentioned:  if you are using your 
TOOL_DEV_LOCAL_DIR  as a source code repository for developing your tools 
(where you are committing tool development change sets into your hg repository 
in TOOL_DEV_LOCAL_DIR), you should not push the change log history to the tool 
shed when you have your developed tools functional in TOOL_DEV_LOCAL_DIR   

The tool shed generates metadata for the contents of each change set pushed to 
its repository, so you want a single, functionally correct change set for each 
push to the tool shed, not the history of small development changes you made in 
your development repository in TOOL_DEV_LOCAL_DIR.

A good process to use for this is to create a new tarball of your 
TOOL_DEV_LOCAL_DIR repository when you are ready to push it to the tool shed 
and upload the tarball.  The tool shed will strip out unwanted items from your 
tarball like .hg subdirectories.

You could also choose to not use a source code revision system in your 
TOOL_DEV_LOCAL_DIR if that is more appropriate.

Greg Von Kuster


On Sep 27, 2012, at 5:02 PM, Greg Von Kuster wrote:

 Hi Lance,
 
 On Sep 27, 2012, at 4:37 PM, Lance Parsons wrote:
 
 I'm actually still a bit confused as to what the expected workflow is.  
 Should I be able to clone the tool shed repo to my local development 
 workstation (TOOL_DEV_LOCAL_DIR), commit a change, and then push that change 
 back to the Tool Shed?
 
 Assuming that you eliminate everything in your TOOL_DEV_LOCAL_DIR (you have a 
 clean directory, eliminating any .hg directories that may exist), pull a 
 fresh clone from the tool shed, make changes to the clone you've just pull 
 into TOOL_DEV_LOCAL_DIR, push the changes to the tool shed, this should be 
 fine.  
 
 A better approach would probably be to simply keep your TOOL_DEV_LOCAL_DIR as 
 the master repository, never pulling to it from the tool shed (because no 
 one except you is able to change the repository in the tool shed) and just 
 pushing changes from TOOL_DEV_LOCAL_DIR to the tool shed repository.
 
 So, the path is something like:
 
 TOOL_DEV_LOCAL_DIR  pushes new changes to your tool shed repository, and 
 others in the Galaxy community clone from your tool shed repository, 
 including updates you committed over time
 
 Greg Von Kuster
 
 
 
 
 I've added some comments inline to clarify.
 
 Greg Von Kuster wrote:
 
 Hi Lance,
 
 I need to figure out precisely what steps you are taking to produce this 
 behavior, as I have not been able to do so.  Please see my inline comments, 
 and let me know more information about each step you are taking to produce 
 this behavior.
 
 
 On Sep 25, 2012, at 10:24 AM, Lance Parsons wrote:
 
 I'm sorry I wasn't more clear.  I do believe that those links explain the 
 behavior I am seeing. However, let me try to describe it a different way.  
 It seems that there will, at most, be one installable revision of a given 
 version of a tool.  Here I use revision to denote a mercurial revision and 
 version to denote the version described in the tool's config xml.  
 However, while it seems this is the desired behavior, it seems to lead to 
 an undesirable situation in some circumstances.  Consider this scenario:
 
 1) Upload version 0.1 of MYTOOL at revision 0: to the tool shed.
 
 I assume you are uploading the initial tarball or separate files from a 
 certain local directory.  Let's call it   TOOL_DEV_LOCAL_DIR.
 
 Not quite.  I would typically create the repository using the Tool Shed web 
 interface.  Then, on my local workstation, I would create the 
 TOOL_DEV_LOCAL_DIR by using the 'hg clone http://toolshedurl/repo' command.
 
 2) Install version 0.1 of MYTOOL at revision 0:XXX to my local Galaxy 
 instance.
 
 This now creates a new mercurial repository at a specified location on your 
 Galaxy server, let's call it  REPO_INSTALL_DIR.
 
 Yes, I use the Galaxy Admin interface to install the tool from a tool shed 
 to my Galaxy instance.
 
 3) Modify MYTOOL, leaving the version at 0.1,
 
 
 You are doing the above step in TOOL_DEV_LOCAL_DIR, correct?
 
 Yes, I modify the files in TOOL_DEV_LOCAL_DIR, leaving the version the same.
 
 but changing the revision to 1:.
 
 
 The tool shed is creating the new change set hash for you when you push the 
 changes from TOOL_DEV_LOCAL_DIR to the repository in the tool shed, correct?
 
 I don't think so.  I would typically commit the changes by issuing an 'hg 
 commit' while in my TOOL_DEV_LOCAL_DIR and then push them to the tool shed 
 using the 'hg push' command.
 
 These updates would be for things that don't change the input or output of 
 a tool (such as updates to documentation, the addition of tool 
 dependencies, etc.)
 
 
 OK, this make sense.
 
 Right, I think we're on the same page here, though this should probably be 
 spelled out somewhere in a Best Practices type document for tool 
 development (which could also help to clarify the steps to setup a sane 
 

Re: [galaxy-dev] Migrating a galaxy installation?

2012-09-28 Thread Nate Coraor
On Sep 6, 2012, at 9:29 AM, Fourie Joubert wrote:

 Hi Folks
 
 Our current galaxy version is pretty old (git updates are causing problems), 
 and we are running very low on space in our filesystem which hosts 
 /xxx/galaxy/database/files.
 
 I need to start with a clean galaxy install (possibly on a new server) on a 
 new file system (a large Lustre volume, which is also mounted on our cluster).
 
 I do need to migrate the shared data libs, histories, workflows, etc. from 
 the old Galaxy installation.
 
 Most of the shared data lib stuff is symlinks, which will require a change to 
 the root path.
 
 Would it possibly be feasible to use a schema-updated copy of our current 
 database for the new install, and do a search-and-replace procedure on the 
 file paths in the database to deal with the new root path for the files? 
 Anyone know which tables are involved?
 
 Any tips and advice regarding a migration of Galaxy would be really 
 appreciated.
 
 Best regards!
 
 Fourie

Hi Fourie,

Dumping the database and loading it on the new server, then modifying paths is 
your best bet.  You can update the pats with SQL directly or a small script.  
The relevant paths are in Galaxy's 'dataset' table.

--nate


 
 
 
 
 -- 
 --
 Prof Fourie Joubert
 Bioinformatics and Computational Biology Unit
 Department of Biochemistry
 University of Pretoria
 fourie.joub...@.up.ac.za
 http://www.bi.up.ac.za
 Tel. +27-12-420-5802
 Fax. +27-12-420-5800
 
 -
 This message and attachments are subject to a disclaimer. Please refer
 to www.it.up.ac.za/documentation/governance/disclaimer/ for full details.
 
 ___
 Please keep all replies on the list by using reply all
 in your mail client.  To manage your subscriptions to this
 and other Galaxy lists, please use the interface at:
 
 http://lists.bx.psu.edu/


___
Please keep all replies on the list by using reply all
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:

  http://lists.bx.psu.edu/


Re: [galaxy-dev] collapse FASTA

2012-09-28 Thread Marc Logghe
Hi,
If you have EMBOSS installed you should try degapseq. Galaxy emboss tools are 
available in the tool shed.
HTH,
Marc

From: galaxy-dev-boun...@lists.bx.psu.edu [galaxy-dev-boun...@lists.bx.psu.edu] 
on behalf of Deepthi Theresa [deepthither...@gmail.com]
Sent: Thursday, September 27, 2012 9:45 PM
To: galaxy-dev@lists.bx.psu.edu
Subject: [galaxy-dev] collapse FASTA

Hi Galaxy team,

I tried to do collapse FASTA sequences for removing the duplicate reads.  but 
error occured due to the lowercase letters at both the ends of the sequences.  
Is there any option available to clean my reads?  some of my reads contains 
hyphen too.

Thanks,
D.

--


Deepthi Theresa Thomas Kannanayakal
1919 University Drive NW, Apt. No. E104
T2N 4K7
Calgary, Alberta
Canada

Ph: (403) 483 7409, (403) 618 5956
Email: deepthither...@gmail.commailto:deepthither...@gmail.com




THIS E-MAIL MESSAGE IS INTENDED ONLY FOR THE USE OF THE INDIVIDUAL OR ENTITY TO 
WHICH IT IS ADDRESSED AND MAY CONTAIN INFORMATION THAT IS PRIVILEGED, 
CONFIDENTIAL AND EXEMPT FROM DISCLOSURE. 
If the reader of this E-mail message is not the intended recipient, you are 
hereby notified that any dissemination, distribution or copying of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately at abl...@ablynx.com. Thank you for your 
co-operation. 
NANOBODY and NANOCLONE are registered trademarks of Ablynx N.V. 



___
Please keep all replies on the list by using reply all
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:

  http://lists.bx.psu.edu/