# HG changeset patch
# User devteam
# Date 1419008346 18000
# Node ID b6e3849293b1daf7f3826d2011d2193078b93e25
# Parent 424d4983483074c0c4e916ed2f27805ee5b4d3c6
Uploaded
diff -r 424d49834830 -r b6e3849293b1 cuff_macros.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/cuff_macros.xml Fri Dec 19 11:59:06 2014 -0500
@@ -0,0 +1,91 @@
+
+ 2.2.1
+
+
+ cufflinks
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ #if $in_type.set_in_type in ['BAM', 'CXB']
+ #for $condition in $in_type.conditions:
+ #set samples = ','.join( [ str( $sample ) for $sample in $condition.samples ] )
+ $samples
+ #end for
+ #elif $in_type.set_in_type == 'CONDITION_LIST'
+ #for $sample in $in_type.conditions:
+ $sample
+ #end for
+ #elif $in_type.set_in_type == 'CONDITION_REPLICATE_LIST'
+ #for $condition_list in $in_type.conditions:
+ #set samples = ','.join( [ str( $sample ) for $sample in $condition_list ] )
+ $samples
+ #end for
+ #end if
+
+
+ #import re
+ #if $in_type.set_in_type in ['BAM', 'CXB']
+ #set labels = '\'' + '\',\''.join( [ str( $condition.name ) for $condition in $in_type.conditions ] ) + '\''
+ #elif $in_type.set_in_type in ['CONDITION_LIST', 'CONDITION_REPLICATE_LIST']
+ #set labels = '\'' + '\',\''.join( map(lambda x: re.sub('[^\w\-_]', '_', x), $in_type.conditions.keys() ) ) + '\''
+ #end if
+ --labels $labels
+
+
+
+
+
+
+
+
+ ## Inputs.
+ #for $input_file in $inputs:
+ "${input_file}"
+ #end for
+ #for $additional_input in $additional_inputs:
+ #for $input_file in $additional_input.additional_inputs:
+ "${input_file}"
+ #end for
+ #end for
+
+ getattr(inputs, "__len__", [].__len__)() >= 2
+
\ No newline at end of file
diff -r 424d49834830 -r b6e3849293b1 cuffmerge_wrapper.py
--- a/cuffmerge_wrapper.py Mon Jan 20 11:09:02 2014 -0500
+++ b/cuffmerge_wrapper.py Fri Dec 19 11:59:06 2014 -0500
@@ -1,7 +1,5 @@
#!/usr/bin/env python
-# Supports Cuffmerge versions 1.3 and newer.
-
import optparse, os, shutil, subprocess, sys, tempfile
def stop_err( msg ):
@@ -15,13 +13,13 @@
parser.add_option( '-s', dest='use_seq_data', action="store_true", help='Causes cuffmerge to look into for fasta files with the underlying genomic sequences (one file per contig) against which your reads were aligned for some optional classification functions. For example, Cufflinks transcripts consisting mostly of lower-case bases are classified as repeats. Note that must contain one fasta file per reference chromosome, and each file must be named after the chromosome, and have a .fa or .fasta extension.')
parser.add_option( '-p', '--num-threads', dest='num_threads', help='Use this many threads to align reads. The default is 1.' )
-
# Wrapper / Galaxy options.
parser.add_option( '', '--index', dest='index', help='The path of the reference genome' )
parser.add_option( '', '--ref_file', dest='ref_file', help='The reference dataset from the history' )
# Outputs.
parser.add_option( '', '--merged-transcripts', dest='merged_transcripts' )
+ parser.add_option( '--min-isoform-fraction', dest='min_isoform_fraction' )
(options, args) = parser.parse_args()
@@ -68,7 +66,8 @@
cmd += " -g %s " % options.ref_annotation
if options.use_seq_data:
cmd += " -s %s " % seq_path
-
+ if options.min_isoform_fraction:
+ cmd += " --min-isoform-fraction %s " % (options.min_isoform_fraction)
# Add input files to a file.
inputs_file_name = tempfile.NamedTemporaryFile( dir="." ).name
inputs_file = open( inputs_file_name, 'w' )
diff -r 424d49834830 -r b6e3849293b1 cuffmerge_wrapper.xml
--- a/cuffmerge_wrapper.xml Mon Jan 20 11:09:02 2014 -0500
+++ b/cuffmerge_wrapper.xml Fri Dec 19 11:59:06 2014 -0500
@@ -1,12 +1,12 @@
-
-
+
merge together several Cufflinks assemblies
-
- cufflinks
-
+
+
+
+ cuff_macros.xml
+
cuffmerge_wrapper.py
-
--num-threads="\${GALAXY_SLOTS:-4}"
## Use annotation reference?
@@ -16,29 +16,23 @@
## Use sequence data?
#if $seq_data.use_seq_data == "Yes":
- -s
+ -s
#if $seq_data.seq_source.index_source == "history":
--ref_file="${seq_data.seq_source.ref_file}"
#else:
--index="${seq_data.seq_source.index.fields.path}"
#end if
#end if
-
+
+ --min-isoform-fraction="${min_isoform_fraction}"
+
## Outputs.
--merged-transcripts="${merged_transcripts}"
-
- ## Inputs.
- "${first_input}"
- #for $input_file in $input_files:
- "${input_file.additional_input}"
- #end for
-
+
+ @CUFFLINKS_GTF_INPUTS@
-
-
-
-
+
@@ -65,7 +59,7 @@
-
+
@@ -76,6 +70,7 @@
+
@@ -87,12 +82,12 @@
cuffmerge -g cuffcompare_in3.gtf cuffcompare_in1.gtf cuffcompare_in2.gtf
-->
-
-
+
+
-
+
@@ -102,8 +97,8 @@
Cuffmerge is part of Cufflinks_. Please cite: Trapnell C, Williams BA, Pertea G, Mortazavi AM, Kwan G, van Baren MJ, Salzberg SL, Wold B, Pachter L. Transcript assembly and abundance estimation from RNA-Seq reveals thousands of new transcripts and switching among isoforms. Nature Biotechnology doi:10.1038/nbt.1621
-.. _Cufflinks: http://cufflinks.cbcb.umd.edu/
-
+.. _Cufflinks: http://cole-trapnell-lab.github.io/cufflinks/
+
------
**Know what you are doing**
@@ -112,7 +107,7 @@
There is no such thing (yet) as an automated gearshift in expression analysis. It is all like stick-shift driving in San Francisco. In other words, running this tool with default parameters will probably not give you meaningful results. A way to deal with this is to **understand** the parameters by carefully reading the `documentation`__ and experimenting. Fortunately, Galaxy makes experimenting easy.
-.. __: http://cufflinks.cbcb.umd.edu/manual.html#cuffmerge
+.. __: http://cole-trapnell-lab.github.io/cufflinks/cuffmerge/
------
@@ -130,5 +125,9 @@
Merged transcripts file:
-Cuffmerge produces a GTF file that contains an assembly that merges together the input assemblies.
+Cuffmerge produces a GTF file that contains an assembly that merges together the input assemblies.
+
+
+ 10.1038/nbt.1621
+
diff -r 424d49834830 -r b6e3849293b1 tool_dependencies.xml
--- a/tool_dependencies.xml Mon Jan 20 11:09:02 2014 -0500
+++ b/tool_dependencies.xml Fri Dec 19 11:59:06 2014 -0500
@@ -1,6 +1,6 @@
-
-
+
+