<tool id="bam2alr" name="bam2alr" version="0.1">
	<description>- Convert a sorted BAM file into ALR format  -</description>
	<command>
		bam2alr -r $reference  $bamfile >  $Bam2alr_outfile
	</command>
	
	<requirements>
		<requirement type="binary">sam2alr</requirement>
	</requirements>
	
	<inputs>
			<param name="bamfile" type="data" label="BAM file to convert" format="bam" help="Requested file type: BAM" />
			<param name="reference" type="data" label="Mapping reference in fasta format" format="fasta" help="Requested file type: Fasta"/>
	</inputs>
	
	<outputs>
		<data name="Bam2alr_outfile" label="Bam2Alr wrapper - ALR file" format="alr" />
	</outputs>
	
	<help>
		This wrapper can be used to launch bam2alr on a sorted and indexed bam file.
		This can be done either using the Galaxy wrapper sam2bam or this command line :
		samtools view -@ 8 -uhSt ref.fasta  test.sam | samtools sort -@ 8 - test
		
                samtools index test.bam

--------
                **Generated By Khalid BELKHIR**:
	</help>
</tool>
