view mirdeep2/mapper_wrapper.pl @ 1:798fe7ba8b5e default tip

uploading ucsc browser species file
author nikhil-joshi
date Mon, 19 Sep 2011 19:07:09 -0400
parents 5b9519f4b165
children
line wrap: on
line source

#!/usr/bin/perl

$bowtie_index_name = $ARGV[0];
$output_arf = $ARGV[1];
$bowtie_files_path = $ARGV[2];
$options = join (" ", @ARGV[3..$#ARGV]);

$basename = `basename $bowtie_index_name`;
chomp $basename;

system ("mapper.pl $options -p $bowtie_files_path/$basename -t $output_arf 2> /dev/null");

if (-s $output_arf == 0) {die "No reads aligned to the reference.";}