annotate ballgown.xml @ 15:a225c3f40675 draft

Deleted selected files
author theo.collard
date Tue, 03 Oct 2017 09:25:22 -0400
parents fa62657e9b57
children 05977e96375b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
1 <tool id="ballgown" name="Ballgown" version="0.5.0" workflow_compatible="true">
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
2 <description>Flexible, isoform-level differential expression analysis</description>
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
3 <requirements>
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
4 <requirement type="package" version="2.2.0">bioconductor-ballgown</requirement>
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
5 <requirement type="package" version="0.5.0">r-dplyr</requirement>
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
6 <requirement type="package" version="1.3.2">r-optparse</requirement>
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
7
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
8 </requirements>
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
9 <command interpreter="Rscript" detect_errors="aggressive">
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
10 ##------------------------------------------------------------------------------------
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
11 ## This function reads the input file with the mapping between samples and files
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
12 ## E.g. of result:
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
13 ## mapping = {
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
14 ## "e2t.ctab" : "sample1",
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
15 ## "other.ctab" : "sample2",
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
16 ## "i2t.ctab" : "sample1",
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
17 ## "t_data.ctab": "sample1"
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
18 ## ...
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
19 ## }
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
20 ##------------------------------------------------------------------------------------
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
21 #def read_sample_mapping_file(sample_mapping_file):
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
22 #try
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
23 #set mapping = {}
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
24 #set file = open($sample_mapping_file.dataset.dataset.get_file_name(),'r')
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
25 #for $line in $file:
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
26 #set content= $line.strip().split('\t')
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
27 #for $map in $content:
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
28 #set mapping[$map]= $content[0]
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
29 #end for
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
30 #end for
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
31 #return $mapping
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
32 #except
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
33 #return None
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
34 #end try
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
35 #end def
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
36
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
37 ##------------------------------------------------------------------------------------
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
38 ## This function returns the name of the sample associated to a given file
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
39 ##------------------------------------------------------------------------------------
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
40 #def get_sample_name($dataset, $sample_mapping):
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
41 ##If the file with samples mapping was provided
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
42 #if $sample_mapping != None:
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
43 #return $sample_mapping.get($dataset.name, None)
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
44 ##Otherwise with extract the sample name from the filename
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
45 #else:
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
46 #return str($dataset.element_identifier)
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
47 #end if
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
48 #end def
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
49
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
50 ##------------------------------------------------------------------------------------
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
51 ## This function reads a dataset or list of datasets and sets the corresponding value
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
52 ## in the $result variable
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
53 ## e.g. of result
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
54 ##'sample1' : {
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
55 ## 'e_data': '/export/galaxy-central/database/files/000/dataset_13.dat'
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
56 ## 'i_data': '/export/galaxy-central/database/files/000/dataset_10.dat',
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
57 ## 't_data': '/export/galaxy-central/database/files/000/dataset_12.dat',
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
58 ## 'e2t': '/export/galaxy-central/database/files/000/dataset_9.dat',
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
59 ## 'i2t': '/export/galaxy-central/database/files/000/dataset_11.dat'
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
60 ## },
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
61 ##------------------------------------------------------------------------------------
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
62 #def read_input_files($param_name, $param_value, $result, $sample_mapping, $create_if_empty):
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
63 ## If input is a data collection
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
64 #if isinstance($param_value, list):
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
65 ## For each dataset
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
66 #for $dataset in $param_value:
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
67 ## Get the sample name
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
68 #set sample_name = $get_sample_name($dataset, $sample_mapping)
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
69 ## Check if sample is already registered
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
70 #if not($result.has_key($sample_name)):
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
71 #if ($create_if_empty == True):
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
72 #set result[$sample_name] = {}
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
73 #else:
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
74 #raise ValueError("Error in input. Please check that input contains all the required files for sample " + $sample_name)
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
75 #end if
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
76 #end if
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
77 ## Register the file to the sample
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
78 #set result[$sample_name][$param_name] = str($dataset.dataset.dataset.get_file_name())
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
79 #end for
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
80 #else:
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
81 #if not($result.has_key("sample_1")):
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
82 #set result["sample_1"] = {}
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
83 #end if
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
84 #set result["sample_1"][$param_name] = str($param_name.dataset.dataset.get_file_name())
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
85 #end if
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
86 #return $result
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
87 #end def
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
88
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
89 ##------------------------------------------------------------------------------------
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
90 ## Main body of the tool
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
91 ##------------------------------------------------------------------------------------
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
92 ## Set the params for the next R script
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
93 #set result={}
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
94 #set sample_mapping=None
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
95
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
96 ## If the samples mapping file was provided, parse the content
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
97 #if $samples_names != None and not(isinstance($samples_names, list) and (None in $samples_names)):
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
98 #set sample_mapping = $read_sample_mapping_file($samples_names)
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
99 #end if
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
100
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
101 ## READ THE CONTENT FOR e_data AND STORE THE FILES
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
102 ## INDEXED BY THEIR SAMPLE NAME
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
103 ## e.g. 'HBR_Rep1' : {
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
104 ## 'e_data': '/export/galaxy-central/database/files/000/dataset_13.dat'
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
105 ## 'i_data': '/export/galaxy-central/database/files/000/dataset_10.dat',
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
106 ## 't_data': '/export/galaxy-central/database/files/000/dataset_12.dat',
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
107 ## 'e2t': '/export/galaxy-central/database/files/000/dataset_9.dat',
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
108 ## 'i2t': '/export/galaxy-central/database/files/000/dataset_11.dat'
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
109 ## },
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
110 ## 'HBR_Rep2' : {...}
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
111 #set $result = $read_input_files("e_data.ctab", $e_data, $result, $sample_mapping, True)
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
112 #set $result = $read_input_files("i_data.ctab", $i_data, $result, $sample_mapping, False)
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
113 #set $result = $read_input_files("t_data.ctab", $t_data, $result, $sample_mapping, False)
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
114 #set $result = $read_input_files("e2t.ctab", $e2t, $result, $sample_mapping, False)
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
115 #set $result = $read_input_files("i2t.ctab", $i2t, $result, $sample_mapping, False)
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
116
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
117 ## For each input sample, create a directory and link the input files for ballgown
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
118 #import os
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
119 #set n_sample = 1
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
120 #for $key, $value in $result.iteritems():
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
121 #set dir_name = str($output.files_path) + "/" + $key + "/"
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
122 $os.makedirs($dir_name)
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
123 #for $file_name, $file_path in $value.iteritems():
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
124 $os.symlink($file_path, $dir_name + $file_name)
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
125 #end for
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
126 #set n_sample = $n_sample + 1
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
127 #end for
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
128
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
129 ## Run the R script with the location of the linked files and the name for outpot file
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
130 ballgown.R --directory $output.files_path --outputtranscript $output --outputgenes $outputgn --texpression $trexpression --phendat $phendata --bgout $bgo
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
131 </command>
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
132 <inputs>
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
133 <param name="e_data" type="data" multiple="true" format="tabular" label="Exon-level expression measurements" help="One row per exon. See below for more details."/>
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
134 <param name="i_data" type="data" multiple="true" format="tabular" label="Intron- (i.e., junction-) level expression measurements" help="One row per intron. See below for more details."/>
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
135 <param name="t_data" type="data" multiple="true" format="tabular" label="Transcript-level expression measurements" help="One row per transcript. See below for more details."/>
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
136 <param name="e2t" type="data" multiple="true" format="tabular" label="Exons-transcripts mapping" help="Table with two columns, e_id and t_id, denoting which exons belong to which transcripts. See below for more details."/>
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
137 <param name="i2t" type="data" multiple="true" format="tabular" label="Introns-transcripts mapping" help="Table with two columns, i_id and t_id, denoting which introns belong to which transcripts. See below for more details."/>
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
138 <param name="samples_names" type="data" optional="true" multiple="false" format="tabular" label="File names for samples" help="Optional. Use in case that the names for the analysed samples cannot be extracted from the filenames."/>
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
139 <param argument="--phendat" name="phendata" type="data" format="csv" label="phenotype data" />
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
140 <param argument="--texpression" name="trexpression" type="float" value="0.5" label="minimal transcript expression to appear in the results"/>
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
141 </inputs>
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
142 <outputs>
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
143 <data name="bgo" format="rda" file="ballgown_object.rda" label="${tool.name} on ${on_string}: ballgown object (R data file)"/>
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
144 <data name="output" format="csv" file="output_transcript.csv" label="${tool.name} on ${on_string}: transcripts expression (tabular)"/>
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
145 <data name="outputgn" format="csv" file="output_genes.csv" label="${tool.name} on ${on_string}: genes expression (tabular)"/>
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
146 </outputs>
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
147 <tests>
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
148 </tests>
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
149 <help>
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
150
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
151 =======================
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
152 Ballgown
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
153 =======================
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
154 -----------------------
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
155 **What it does**
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
156 -----------------------
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
157
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
158 Ballgown is a software package designed to facilitate flexible differential expression analysis of RNA-seq data.
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
159 The Ballgown package provides functions to organize, visualize, and analyze the expression measurements for your transcriptome assembly.
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
160
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
161 ----
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
162
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
163 -----------------------
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
164 **How to use**
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
165 -----------------------
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
166 The input for this tools consists on 5 files for each sample in your experiment:
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
167
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
168 - **e_data**: exon-level expression measurements. Tab file or collection of tab files. One row per exon. Columns are e_id (numeric exon id), chr, strand, start, end (genomic location of the exon), and the following expression measurements for each sample:
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
169 * rcount: reads overlapping the exon
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
170 * ucount: uniquely mapped reads overlapping the exon
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
171 * mrcount: multi-map-corrected number of reads overlapping the exon
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
172 * cov average per-base read coverage
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
173 * cov_sd: standard deviation of per-base read coverage
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
174 * mcov: multi-map-corrected average per-base read coverage
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
175 * mcov_sd: standard deviation of multi-map-corrected per-base coverage
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
176 - **i_data**: intron- (i.e., junction-) level expression measurements. Tab file or collection of tab files. One row per intron. Columns are i_id (numeric intron id), chr, strand, start, end (genomic location of the intron), and the following expression measurements for each sample:
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
177 * rcount: number of reads supporting the intron
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
178 * ucount: number of uniquely mapped reads supporting the intron
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
179 * mrcount: multi-map-corrected number of reads supporting the intron
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
180 - **t_data**: transcript-level expression measurements. Tab file or collection of tab files. One row per transcript. Columns are:
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
181 * t_id: numeric transcript id
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
182 * chr, strand, start, end: genomic location of the transcript
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
183 * t_name: Cufflinks-generated transcript id
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
184 * num_exons: number of exons comprising the transcript
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
185 * length: transcript length, including both exons and introns
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
186 * gene_id: gene the transcript belongs to
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
187 * gene_name: HUGO gene name for the transcript, if known
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
188 * cov: per-base coverage for the transcript (available for each sample)
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
189 * FPKM: Cufflinks-estimated FPKM for the transcript (available for each sample)
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
190 - **e2t**: Tab file or collection of tab files. Table with two columns, e_id and t_id, denoting which exons belong to which transcripts. These ids match the ids in the e_data and t_data tables.
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
191 - **i2t**: Tab file or collection of tab files. Table with two columns, i_id and t_id, denoting which introns belong to which transcripts. These ids match the ids in the i_data and t_data tables.
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
192 - samples_names: (optional) Tab file. Table with five columns, one row per sample. Defines which files from the input belong to each sample in the experiment.
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
193
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
194 .. class:: infomark
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
195
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
196 '''TIP''' *Note* Here's an example of a good phenotype data file for your expirement.
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
197
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
198 +--------------+-------------------------+-------------------------+---+
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
199 |ids |experimental variable 1 |experimental variable 2 |...|
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
200 +==============+=========================+=========================+===+
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
201 |sample 1 |value 1 |value 2 |...|
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
202 +--------------+-------------------------+-------------------------+---+
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
203 |sample 2 |value 2 |value 1 |...|
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
204 +--------------+-------------------------+-------------------------+---+
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
205 |sample 3 |value 1 |value 2 |...|
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
206 +--------------+-------------------------+-------------------------+---+
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
207 |sample 4 |value 2 |value 1 |...|
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
208 +--------------+-------------------------+-------------------------+---+
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
209 |... |value 1 |value 2 |...|
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
210 +--------------+-------------------------+-------------------------+---+
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
211
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
212
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
213 .. class:: infomark
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
214
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
215 *Note* The minimal transcript expression is a number used to filter the transcripts that
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
216 are less or not expressed in our samples when compared to the genome
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
217
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
218 -----------------------
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
219 **Outputs**
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
220 -----------------------
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
221
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
222 This tool has 3 outputs:
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
223
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
224 - **transcripts expression** : this is a csv file containing all the transcripts that are expressed above the transcripts expression value
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
225 - **genes expression** : this is a csv file containing all the genes that are expressed above the transcripts expression value
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
226 - **Ballgown object** : this is the ballgown object created during the process. This file can be re-used later for further analysis in a R console.
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
227
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
228 ----
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
229
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
230 **Authors**: Théo Collard [SLU Global Bioinformatics Centre], Rafael Hernández de Diego [SLU Global Bioinformatics Centre], and Tomas Klingström [SLU Global Bioinformatics Centre]
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
231
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
232 Sources are available at https://github.com/CollardT/Ballgown-Wrapper
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
233
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
234 </help>
fa62657e9b57 Uploaded
theo.collard
parents:
diff changeset
235 </tool>