view README_cut_fr.txt @ 2:d28ee835a561 draft default tip

Uploaded
author r-lannes
date Wed, 16 Dec 2015 08:46:37 -0500
parents
children
line wrap: on
line source

########################################

#####		french cut

########################################
##---------- Licence
#### FreeSoftware on GNU licence 
 '''   <cut_fr.py & cut_fr.xml are scripts allwing more convenient use of cut in galaxy environment>
    Copyright (C) <2015>  <Lannes Romain>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.'''

##########################################
#------- program needed

need python 3
and python 3 library:
	import os 
	import argparse
	import sys

###########################################
########------------ Install

copy cut_fr.xml and cut_fr.py in galaxy/tools/a_directory_of_your_choice/
not directly on tools

add in 
config/tool_conf.xml

<tool file="a_directory_of_your_choice/cut_fr.xml" />

in the section of your choice

############################################

input = 
		-tsv
		-String ( "c1,c2,c3")
		-type_cut default = Exclude
		-extend_print default = False

output =
	 input.tsv less column 1,2,3


input = 
		-tsv
		-String ( "c1,c2,c3")
		-type_cut default = ExInclude
		-extend_print default = False

output =
	 only column 1,2,3


-extend_print default = False an option allowing the sdtout to be more consistant.