# HG changeset patch
# User eiriche
# Date 1354271296 18000
# Node ID 4f9b7eaecbd48b92eae54971588382a140a7864c
# Parent 385d004f3cb15efb16b33ec277dd3de37cd17323
Deleted selected files
diff -r 385d004f3cb1 -r 4f9b7eaecbd4 bsmap.xml
--- a/bsmap.xml Fri Nov 30 05:10:53 2012 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,246 +0,0 @@
-
-
-
- bsmap
-
-
-
- bsmap_wrapper.sh
- ##Reference genome
- ##ref="${reference.fields.path}"
- #if $refGenomeSource.genomeSource == "history":
- ref="${refGenomeSource.myFile.extra_files_path}/${refGenomeSource.myFile.metadata.base_name}"
- #else
- ref="${refGenomeSource.builtin.fields.path}"
- #end if
- ##Output files (SAM output, BSMAP summary)
- mapped=$mapped
- ##Temp directory
- tempdir=$mapped.files_path
- summary=$summary
- #if str($singlePaired.sPaired) == "single":
- library="single"
- mate1=$singlePaired.sInput1
- #if str($singlePaired.sParams.sSettingsType) == "full":
- fullparam=true
- qual=$singlePaired.sParams.qual
- threshold=$singlePaired.sParams.threshold
- lowqual=$singlePaired.sParams.lowqual
- adapter=$singlePaired.sParams.adapter
- firstn=$singlePaired.sParams.firstn
- repeat_reads=$singlePaired.sParams.repeat_reads
- seed_size=$singlePaired.sParams.seed_size
- mismatch=$singlePaired.sParams.mismatch
- equal_best=$singlePaired.sParams.equal_best
- start=$singlePaired.sParams.start
- end=$singlePaired.sParams.end
- index_interval=$singlePaired.sParams.index_interval
- seed_random=$singlePaired.sParams.seed_random
- rrbs=$singlePaired.sParams.rrbs
- mode=$singlePaired.sParams.mode
- align_info=$singlePaired.sParams.align_info
- #end if
- #else:
- library="paired"
- mate1=$singlePaired.pInput1
- mate2=$singlePaired.pInput2
- unpaired=$unpaired
- #if str($singlePaired.pParams.pSettingsType) == "full":
- fullparam=true
- qual=$singlePaired.pParams.qual
- threshold=$singlePaired.pParams.threshold
- lowqual=$singlePaired.pParams.lowqual
- adapter=$singlePaired.pParams.adapter
- firstn=$singlePaired.pParams.firstn
- repeat_reads=$singlePaired.pParams.repeat_reads
- seed_size=$singlePaired.pParams.seed_size
- mismatch=$singlePaired.pParams.mismatch
- equal_best=$singlePaired.pParams.equal_best
- start=$singlePaired.pParams.start
- end=$singlePaired.pParams.end
- index_interval=$singlePaired.pParams.index_interval
- seed_random=$singlePaired.pParams.seed_random
- rrbs=$singlePaired.pParams.rrbs
- mode=$singlePaired.pParams.mode
- align_info=$singlePaired.pParams.align_info
- maxinsert=$singlePaired.pParams.maxinsert
- mininsert=$singlePaired.pParams.mininsert
- #end if
- #end if
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- (singlePaired['sPaired'] == 'paired')
-
-
-
-
-**What it does**
-
-BSMAP is a short reads mapping software for bisulfite sequencing reads. It has the following features:
-
- - read length up to 144 nt, allow up to 15 mismatches, gap size up to 3 bp.
-
- - support single end and pair end mapping. support multi-thread mapping.
-
- - support both "Lister protocol" (sequence 2 forward strands only) and "Cokus protocol" (sequence all 4 bisulfite converted strands)
-
- - reads are directly mapped to original reference genome sequence, no need to preprocess the reads and reference genome to convert C to T.
-
- - support both whole genome bisulfite sequencing (WGBS) mode and reduced representation bisulfite sequencing (RRBS) mode, allow changing the digestion site information to support different digestion enzymes for RRBS.
-
- - allow trimming adapter sequences and low quality nucleotides from the 3'end of reads
-
- - allow trade off between speed/memory usage/mapping sensitivity. For human genome, the RRBS mode uses ~3GB. In WGBS mode, the typical memory usage is ~9GB, but can be as low as 5GB.
-
- - allow alignment for other nucleotide transitions, for example, can be set to detect the A=>I(G) transition in RNA editing.
-
-.. _BSMAP: http://code.google.com/p/bsmap/
-
-**Input formats**
-
-BSMAP accepts files in FASTA/FASTQ format.
-
-**Outputs**
-
-The output contains the following files:
-
- - mapped reads in SAM format
-
- - mapping summary
-
- - unpaired hits (only for paired-end mapping)
-
-
-
-
-
-
-
diff -r 385d004f3cb1 -r 4f9b7eaecbd4 bsmap_fasta.loc.sample
--- a/bsmap_fasta.loc.sample Fri Nov 30 05:10:53 2012 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-#This is a sample file distributed with Galaxy that enables BSMAP
-#to use a directory of reference FastA sequences data files.The bsmap_fasta.loc
-#file has this format (longer white space characters are TAB characters):
-#
-#
-#
-#
-#Your bsmap_fasta.loc file should include an entry per line for each
-reference you have stored. For example:
-#
-#phiX174 phiX phiX174 /depot/data2/galaxy/phiX/base/phiX.fasta
-#hg18canon hg18 hg18 Canonical /depot/data2/galaxy/hg18/base/hg18canon.fasta
-#hg18full hg18 hg18 Full /depot/data2/galaxy/hg18/base/hg18full.fasta
-#/orig/path/hg19.fa hg19 hg19 /depot/data2/galaxy/hg19/base/hg19.fasta
-#...etc...
-#
diff -r 385d004f3cb1 -r 4f9b7eaecbd4 bsmap_meth_caller.sh
--- a/bsmap_meth_caller.sh Fri Nov 30 05:10:53 2012 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,32 +0,0 @@
-#!/bin/bash
-#
-# Galaxy wrapper for BSMAP Methylation Caller
-#
-
-set -e
-
-#get parameters
-
-until [ $# -eq 0 ]
-do
- case $1 in
- input=*)
- input=${1#input=}
- ;;
- method=*)
- method=${1#method=}
- ;;
- output=*)
- output=${1#output=}
- ;;
- tempdir=*)
- tempdir=${1#tempdir=}
- ;;
- ref=*)
- ref=${1#ref=}
- ;;
- esac
- shift
-done
-
-methratio.py -o $output -d $ref -q $input
\ No newline at end of file
diff -r 385d004f3cb1 -r 4f9b7eaecbd4 bsmap_meth_caller.xml
--- a/bsmap_meth_caller.xml Fri Nov 30 05:10:53 2012 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,59 +0,0 @@
-
-
-
- bsmap
-
-
-
-
- samtools
-
-
-
- bsmap_meth_caller.sh
- input=$bsmap_sam
- unique=$unique
- properly=$properly
- zero_meth = $zero_meth
- rem_dup = $rem_dup
- combine_cpg = $combine_cpg
- trimN = $trimN
- depth = $depth
- output=$output
- tempdir=$output.files_path
- ref="${ filter( lambda x: str( x[1] ) == str( $bsmap_sam.metadata.dbkey ), $__app__.tool_data_tables['bsmap_fasta'].get_fields() )[0][3] }"
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-**What it does**
-
-This methylation caller parses the BSMAP SAM output file into bed format.
-
-
-**Output format** ::
-
-
- Column Description
- ---------------------- --------------------------------------
- 1 chr chromosome
- 2 pos position
- 3 strand strand
- 4 context context (CHH,CHG,CpG)
- 5 coverage totally sequenced Cs at that position
- 6 methylated methylated Cs at that position
- 7 percentage methylated percentage of 6
-
-
-
diff -r 385d004f3cb1 -r 4f9b7eaecbd4 bsmap_wrapper.sh
--- a/bsmap_wrapper.sh Fri Nov 30 05:10:53 2012 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,133 +0,0 @@
-#!/bin/bash
-#
-# Galaxy wrapper for BSMAP
-# Written by Eugen Eirich @ Institute for Molecular Biology Mainz
-#
-
-set -e
-
-#get parameters
-
-until [ $# -eq 0 ]
-do
- case $1 in
- ref=*)
- ref=${1#ref=}
- ;;
- library=*)
- library=${1#library=}
- ;;
- unpaired=*)
- unpaired=${1#unpaired=}
- ;;
- mapped=*)
- mapped=${1#mapped=}
- ;;
- fullparam=*)
- fullparam=${1#fullparam=}
- ;;
- mate1=*)
- mate1=${1#mate1=}
- ;;
- mate2=*)
- mate2=${1#mate2=}
- ;;
- qual=*)
- qual="-z ${1#qual=}"
- ;;
- threshold=*)
- threshold="-q ${1#threshold=}"
- ;;
- lowqual=*)
- lowqual="-f ${1#lowqual=}"
- ;;
- adapter=*)
- adapter=${1#adapter=}
- ;;
- firstn=*)
- firstn="-L ${1#firstn=}"
- ;;
- repeat_reads=*)
- repeat_reads="-r ${1#repeat_reads=}"
- ;;
- seed_size=*)
- seed_size="-s ${1#seed_size=}"
- ;;
- mismatch=*)
- mismatch="-v ${1#mismatch=}"
- ;;
- equal_best=*)
- equal_best="-w ${1#equal_best=}"
- ;;
- start=*)
- start="-B ${1#start=}"
- ;;
- end=*)
- end="-E ${1#end=}"
- ;;
- index_interval=*)
- index_interval="-I ${1#index_interval=}"
- ;;
- seed_random=*)
- seed_random=${1#seed_random=}
- ;;
- rrbs=*)
- rrbs=${1#rrbs=}
- ;;
- mode=*)
- mode="-n ${1#mode=}"
- ;;
- align_info=*)
- align_info=${1#align_info=}
- ;;
- maxinsert=*)
- maxinsert="-x ${1#maxinsert=}"
- ;;
- mininsert=*)
- mininsert="-m ${1#mininsert=}"
- ;;
- summary=*)
- summary=${1#summary=}
- ;;
- esac
- shift
-done
-
-
-if [ "$rrbs" != "" ]
-then
- rrbs="-D $rrbs"
-fi
-
-if [ "$align_info" != "" ]
-then
- align_info="-M $align_info"
-fi
-
-if [ "$adapter" != "" ]
-then
- adapter="-A $adapter"
-fi
-
-if [ "$seed_random" != "" ]
-then
- seed_random="-S $seed_random"
-fi
-
-
-if [ "$library" == "single" ]
-then
- if [ "$fullparam" == 'false' ]
- then
- bsmap -a $mate1 -d $ref -o $mapped -R -r 0 -p 4 > $summary
- else
- bsmap -a $mate1 -d $ref -o $mapped -R -r 0 -p 4 $qual $threshold $lowqual $adapter $firstn $repeat_reads $seed_size $mismatch $equal_best $start $end $index_interval $mode > $summary
- fi
-else
- if [ "$fullparam" == 'false' ]
- then
- bsmap -a $mate1 -b $mate2 -2 $unpaired -d $ref -o $mapped -R -r 0 -p 4 > $summary
- else
- bsmap -a $mate1 -b $mate2 -2 $unpaired -d $ref -o $mapped -R -r 0 -p 4 $qual $threshold $lowqual $adapter $firstn $repeat_reads $seed_size $mismatch $equal_best $start $end $index_interval $mode $maxinsert $mininsert > $summary
- fi
-fi
diff -r 385d004f3cb1 -r 4f9b7eaecbd4 tool_data_table_conf.xml.sample
--- a/tool_data_table_conf.xml.sample Fri Nov 30 05:10:53 2012 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,8 +0,0 @@
-
-
-
-
- value, dbkey, name, path
-
-
-