view computeFraglen.xml @ 6:5bcfac4f8116 draft

planemo upload commit e96b43f96afce6a7b7dfd4499933aad7d05c955e-dirty
author thondeboer
date Tue, 15 May 2018 17:12:43 -0400
parents 110fc7a9a016
children
line wrap: on
line source

<tool id="computeFraglen"
      name="computeFraglen"
      version="1.0.0"
	  profile="16.04">
  <description>computes empirical fragment length distribution from sample data in BAM format. Creates model file for use in NEAT-genReads</description>
  <requirements>
    <requirement type="package" version="0.1.19">samtools</requirement>
    <requirement type="package">numpy</requirement>
  </requirements>
  <command detect_errors="exit_code">
    <![CDATA[
    samtools view -d $bam_file
	| python2 $__tool_directory__/utilities/computeFraglen.py
    ]]>
  </command>
  <inputs>
    <param name="bam_file"
	       type="data"
		   format="bam"
		   label="The BAM file to be used to calculate the fragment from [-]"
		   help="This will be used by SAMTOOLS to convert BAM to SAM as preparation by the computeFraglen tool" 
	/>
			
  </inputs>
  <outputs>
	<data format="txt"
		  name="computeGC_modelfile"
		  from_work_dir="fraglen.p"
		  label="${os.path.splitext($bam_file.name)[0]}_fraglen.p"
		  metadata_source="in_type.reference">
	</data>

  </outputs>
  <tests>
 		<test>
			<param name="bam_file" value="chrMT-PE-VCF-BAM.bam"/>
			<output name="computeGC_modelfile" file="chrMT-PE-VCF-BAM-fraglen.p" compare="diff"/>
		</test>

  </tests>
</tool>