Repository revision
9:d6787bab7b11

Repository 'pileometh'
hg clone https://toolshed.g2.bx.psu.edu/repos/bgruening/pileometh

MethylDackel tool metadata
Miscellaneous
MethylDackel
A tool for processing bisulfite sequencing alignments
pileometh
toolshed.g2.bx.psu.edu/repos/bgruening/pileometh/pileometh/0.5.2+galaxy0
0.5.2+galaxy0
MethylDackel --version
True
Version lineage of this tool (guids ordered most recent to oldest)
toolshed.g2.bx.psu.edu/repos/bgruening/pileometh/pileometh/0.5.2+galaxy0 (this tool)
toolshed.g2.bx.psu.edu/repos/bgruening/pileometh/pileometh/0.3.0.1
toolshed.g2.bx.psu.edu/repos/bgruening/pileometh/pileometh/0.3.0
toolshed.g2.bx.psu.edu/repos/bgruening/pileometh/pileometh/0.2.1
toolshed.g2.bx.psu.edu/repos/bgruening/pileometh/pileometh/0.1.13
toolshed.g2.bx.psu.edu/repos/bgruening/pileometh/pileometh/0.1.5
pileometh
Requirements (dependencies defined in the <requirements> tag set)
name version type
methyldackel 0.5.2 package
Additional information about this tool
#if $reference_source.reference_source_selector == "cached":
            ln -s $reference_source.ref_file.fields.path reference.fasta &&
        #else:
            ln -s $reference_source.ref_file reference.fasta &&
        #end if

       ln -s '$input_sortedAlignBAM' ./infile.bam &&
       ln -s '${input_sortedAlignBAM.metadata.bam_index}' infile.bai &&

        MethylDackel
            $main_task.task

            -@ \${GALAXY_SLOTS:-4}
            #if $main_task.task == 'extract':
                -o output
                $main_task.mergeContext
                #if str($main_task.OT).strip() != '':
                    --OT $main_task.OT
                #end if
                #if str($main_task.OB).strip() != '':
                    --OB $main_task.OB
                #end if
                #if str($main_task.CTOT).strip() != '':
                    --CTOT $main_task.CTOT
                #end if
                #if str($main_task.CTOB).strip() != '':
                    --CTOB $main_task.CTOB
                #end if
                #if str($main_task.mappability_options.mappability_status) == 'True':
                    -M '${main_task.mappability_options.mappability}'
                    --mappabilityThreshold $main_task.mappability_options.mappabilityThreshold
                    --minMappableBases $main_task.mappability_options.minMappableBases            
                #end if
            #end if
            #if $advanced_options.mbias_regionString:
                -r $advanced_options.mbias_regionString
            #end if
            #if $regionBed_options.regionBed_status == 'True':
                -l '$regionBed_options.regionBed'
                $regionBed_options.keepStrand
            #end if
            $advanced_options.keepDupes
            $advanced_options.keepSingleton
            $advanced_options.keepDiscordant
            -q $advanced_options.min_mapq
            -p $advanced_options.min_phred
            #if $advanced_options.methylation_metrics
                #for $context_methylation in $advanced_options.methylation_metrics:
                    $context_methylation
                #end for
            #end if
            #if $main_task.task == 'extract':
                --minOppositeDepth $advanced_options.minOppositeDepth
                --maxVariantFrac $advanced_options.maxVariantFrac
                -d $advanced_options.min_pbdepth
                --ignoreFlags $advanced_options.ignoreFlags
                --requireFlags $advanced_options.requireFlags
                #if $main_task.extract_outputs
                    $main_task.extract_outputs
                #end if
                #if str($advanced_options.nOT).strip() != '':
                    --nOT $advanced_options.nOT
                #end if
                #if str($advanced_options.nOB).strip() != '':
                    --nOB $advanced_options.nOB
                #end if
                #if str($advanced_options.nCTOT).strip() != '':
                    --nCTOT $advanced_options.nCTOT
                #end if
                #if str($advanced_options.nCTOB).strip() != '':
                    --nCTOB $advanced_options.nCTOB
                #end if
            #end if


            reference.fasta

            ./infile.bam

            #if $main_task.task == 'mbias':
                out_mbias $main_task.tsv > out_mbias.tsv &&
                touch out_mbias_OT.svg &&
                touch out_mbias_OB.svg &&
                touch out_mbias_CTOT.svg &&
                touch out_mbias_CTOB.svg
            #end if
    
None
False
Functional tests
name inputs outputs required files
Test-1 reference_source|ref_file: cg100.fa
reference_source|reference_source_selector: history
input_sortedAlignBAM: cg_aln.bam
main_task|task: extract
advanced_options|min_mapq: 2
name: value
cg100.fa
cg_aln.bam
value
Test-2 reference_source|ref_file: cg100.fa
reference_source|reference_source_selector: history
input_sortedAlignBAM: cg_aln.bam
main_task|task: mbias
advanced_options|min_mapq: 2
name: value
name: value
name: value
name: value
cg100.fa
cg_aln.bam
value
Test-3 reference_source|ref_file: cg100.fa
reference_source|reference_source_selector: history
input_sortedAlignBAM: cg_aln.bam
main_task|mergeContext: False
main_task|task: extract
advanced_options|min_mapq: 2
advanced_options|methylation_metrics: --CHH
name: value
name: value
cg100.fa
cg_aln.bam
value
Test-4 reference_source|ref_file: cg100.fa
reference_source|reference_source_selector: history
input_sortedAlignBAM: cg_aln.bam
main_task|extract_outputs: --fraction
main_task|task: extract
advanced_options|min_mapq: 2
name: value
cg100.fa
cg_aln.bam
value
Test-5 reference_source|ref_file: cg100.fa
reference_source|reference_source_selector: history
input_sortedAlignBAM: cg_aln.bam
main_task|extract_outputs: --logit
main_task|task: extract
advanced_options|min_mapq: 2
name: value
cg100.fa
cg_aln.bam
value
Test-6 reference_source|ref_file: cg100.fa
reference_source|reference_source_selector: history
input_sortedAlignBAM: cg_aln.bam
main_task|extract_outputs: --methylKit
main_task|task: extract
advanced_options|min_mapq: 2
name: value
cg100.fa
cg_aln.bam
value
Test-7 reference_source|ref_file: cg100.fa
reference_source|reference_source_selector: history
input_sortedAlignBAM: cg_aln.bam
main_task|tsv: True
main_task|task: mbias
advanced_options|min_mapq: 2
name: value
name: value
name: value
name: value
name: value
cg100.fa
cg_aln.bam
value
Test-8 reference_source|ref_file: cg100.fa
reference_source|reference_source_selector: history
input_sortedAlignBAM: cg_aln.bam
main_task|extract_outputs: --methylKit
main_task|task: extract
advanced_options|min_mapq: 2
advanced_options|methylation_metrics: --CHG
name: value
name: value
cg100.fa
cg_aln.bam
value
Test-9 reference_source|ref_file: cg100.fa
reference_source|reference_source_selector: history
input_sortedAlignBAM: cg_aln.bam
regionBed_options|regionBed: cg100.bed
regionBed_options|regionBed_status: True
main_task|task: extract
advanced_options|min_mapq: 2
name: value
cg100.fa
cg_aln.bam
cg100.bed
value
Test-10 reference_source|ref_file: cg100.fa
reference_source|reference_source_selector: history
input_sortedAlignBAM: cg_aln.bam
regionBed_options|regionBed: cg100.bed
regionBed_options|keepStrand: True
regionBed_options|regionBed_status: True
main_task|task: extract
advanced_options|min_mapq: 2
name: value
cg100.fa
cg_aln.bam
cg100.bed
value
Test-11 reference_source|ref_file: cg100.fa
reference_source|reference_source_selector: history
input_sortedAlignBAM: cg_aln.bam
main_task|mappability_options|mappability: mappability.bigwig
main_task|mappability_options|mappabilityThreshold: 0.1
main_task|mappability_options|minMappableBases: 15
main_task|mappability_options|mappability_status: True
main_task|task: extract
name: value
cg100.fa
cg_aln.bam
mappability.bigwig
value
Test-12 reference_source|ref_file: cg100.fa
reference_source|reference_source_selector: history
input_sortedAlignBAM: cg_aln.bam
main_task|extract_outputs: --cytosine_report
main_task|task: extract
name: value
cg100.fa
cg_aln.bam
value