1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
#!/usr/bin/env perl
use strict;
use warnings;
use File::Basename;
my $usage = "\n\n\tusage: $0 target_trans_files.list [opts ex. --wgsim ...]\n\n";
my $target_trans_files_file = $ARGV[0] or die $usage;
shift @ARGV;
main: {
my @ref_files = `cat $target_trans_files_file`;
chomp @ref_files;
foreach my $file (@ref_files) {
my $outdir = dirname($file);
my $cmd = "/usr/lib/trinityrnaseq/util/misc/sim_test_framework/run_simulate_reads.wgsim.pl -R $file -O $outdir @ARGV";
print "$cmd\n";
}
exit(0);
}
|