Repository revision
33:3f254c5ced1d

Repository 'picard'
hg clone https://toolshed.g2.bx.psu.edu/repos/devteam/picard

ReorderSam tool metadata
Miscellaneous
ReorderSam
reorder reads to match ordering in reference sequences
picard_ReorderSam
toolshed.g2.bx.psu.edu/repos/devteam/picard/picard_ReorderSam/3.1.1.0
3.1.1.0
None
True
Version lineage of this tool (guids ordered most recent to oldest)
toolshed.g2.bx.psu.edu/repos/devteam/picard/picard_ReorderSam/3.1.1.0 (this tool)
toolshed.g2.bx.psu.edu/repos/devteam/picard/picard_ReorderSam/1.56.0
picard_ReorderSam
Requirements (dependencies defined in the <requirements> tag set)
name version type
picard 3.1.1 package
Additional information about this tool
_JAVA_OPTIONS=\${_JAVA_OPTIONS:-"-Xmx2048m -Xms256m -Djava.io.tmpdir=\${TMPDIR:-\${_GALAXY_JOB_TMPDIR}}"} &&
    export _JAVA_OPTIONS &&
    
    
    #import re
    #set escaped_element_identifier = re.sub('[^\w\-]', '_', str($inputFile.element_identifier))
    ln -sf '$inputFile' '$escaped_element_identifier' &&
    
    #set $picard_dict = "localref.dict"
    #set $ref_fasta = "localref.fa"     ## This is done because picards "likes" .fa extension

    ln -sf '${reference_source.ref_file}' '${ref_fasta}' &&

    #if str( $reference_source.reference_source_selector ) == "history":

      picard CreateSequenceDictionary
      --REFERENCE '${ref_fasta}'
      --OUTPUT '${picard_dict}'
      --QUIET true
      --VERBOSITY ERROR

      &&

    #else:

      #set $ref_fasta = str( $reference_source.ref_file.fields.path )

    #end if

    picard
    ReorderSam
      --INPUT '$escaped_element_identifier'
      --OUTPUT '${outFile}'
      --SEQUENCE_DICTIONARY '${ref_fasta}'
      --ALLOW_INCOMPLETE_DICT_CONCORDANCE '${allow_incomplete_dict_concordance}'
      --ALLOW_CONTIG_LENGTH_DISCORDANCE '${allow_contig_length_discordance}'

      --VALIDATION_STRINGENCY '${validation_stringency}'
      --QUIET true
      --VERBOSITY ERROR

  
None
False
Functional tests
name inputs outputs required files
Test-1 reference_source|ref_file: picard_ReorderSam_ref.fa
reference_source|reference_source_selector: history
inputFile: picard_ReorderSam.bam
allow_incomplete_dict_concordance: False
allow_contig_length_discordance: False
name: value
picard_ReorderSam_ref.fa
picard_ReorderSam.bam
value