view tools/rgenetics/rgPedSub.xml @ 1:cdcb0ce84a1b

author xuebing
date Fri, 09 Mar 2012 19:45:15 -0500
parents 9071e359b9a3
line wrap: on
line source

<tool id="rgPedSub1" name="Subset markers:">

    <description>region or rs list</description>

    <command interpreter="python"> $script_file

       <param name="title" type="text" size="80" label="Title for output files"
        help="Descriptive title for new genotype/map files" value="Genotype_Subset" />
       <param name="input1" type="data" format="lped"
   		label="Current history lPed format data" optional="false"
    	size="120" help="Choose a Linkage Ped format data from your current history" />
       <param name='relfilter' label = "Filter out family relatedness" type="select"
   	     optional="false" size="132"
         help="Optionally remove related subjects if pedigree identifies founders and their offspring">
         <option value="all" selected='true'>No filter on relatedness - all subjects passed through</option>
         <option value="fo" >Founders only (pedigree mother and father ID = "0")</option>
         <option value="oo" >Offspring only (one randomly chosen if >1 sibs in family)</option>

       <conditional name="m">
	        <param name="mtype" type="select"  label="Markers in a genomic interval,or as an rs list?" refresh_on_change='true'
	        help="Indicate the markers to be saved - as a list or as genomic region coordinates">
	          <option value="grslist" >Cut and paste a list of marker ids as rs numbers</option>
	          <option value="gregion" selected='true'>Supply genomic coordinates for a region (as UCSC location)</option>
	        <when value="gregion">
	         <param name="region" type="text" label="Genomic refseq coordinates - chromosome:start-end"
        		size="120" help="Region to be saved as chr9:119,506,000-119,518,000"/>
	       	  <param name="rslist" type="hidden" value='' />
	        <when value="grslist">
	          <param name="region" value="" type="hidden"/>
	       	    <param name="rslist" type="text" area='true' size='15x20' label="marker id (rs) list"
       			help="Cut and paste, or type a list of marker ids separated by spaces"  />

       <data format="lped" name="output1" metadata_source="input1" label="${title}.lped"/>

<configfile name="script_file">
#if $m.mtype=='grslist'
#end if

    <param name='input1' value='tinywga' ftype='lped' >
    <metadata name='base_name' value='tinywga' />
    <composite_data value='tinywga.ped' />
    <composite_data value='' />
    <edit_attributes type='name' value='tinywga' /> 
    <param name='title' value='rgPedSubtest1' />
    <param name="mtype" value="grslist" />
    <param name="region" value="" />
    <param name="rslist" value="rs2283802Xrs2267000Xrs16997606Xrs4820537Xrs3788347Xrs756632Xrs4820539Xrs2283804Xrs2267006Xrs4822363X" />
    <param name="relfilter" value="all" />
    <output name='output1' file='rgtestouts/rgPedSub/rgPedSubtest1.lped' ftype='lped' linesDiff='7'/>


.. class:: infomark


There are 2 forms to complete before the job is ready to be run

  **Page 1**

     give the job a mnemonic descriptive title and select the output format.

     Choose a file containing genotypes and a pedigree from your current history

     The input file must be in linkage ped format.

     If the data are not yet in your history, import from one of the system libraries or upload from your computer using the get data tool

  **Page 2**

     Define the markers to be used. You can supply a UCSC style location as chr:start_offset-end_offset

     or a list of marker ids - rs numbers. You can flip between marker input style by changing the select box.

     If you supply a list, the markers must all be from the same chromosome or region for sensible results.

Run the job and the subset file will eventually appear in your history ready to be used with other tools.



- **Library Linkage Ped** is a linkage format pedigree file chosen from the system file Library
- **History Linkage Ped** is a linkage format pedigree file chosen from your current Galaxy History
- **Region** is the genomic region cut and paste from a UCSC browser location window
- **Genome Build** is the version of the genome your markers are from - use hg18 for CAMP illumina data


.. class:: infomark


This tool is a special purpose tool to extract genotypes from genotype data in linkage
pedigree format (separate map file) over a specified genomic region
The region to be extracted can be described as UCSC browser location, or as a list of

It is possible to retain ALL markers by leaving the rslist and region empty if you just want to remove
all offspring from a pedigree for example

The extracted data will appear in your current history as a new lped data set

Copyright, Ross Lazarus, March 2008 for the Rgenetics project
Released under the LGPL. See for license terms.