I have the following perl script:
#!/usr/bin/perl -w ###################################################################### +########### # + # # Program to submit bootstrap jobs to cluster + # # + # # Usage: qsubbootstrap.pl <output dir> <lower#> <upper#> <ARACNE argum +ents> # # Example: qsubbootstrap.pl adjdir 1 100 -i data.exp -l tflist.txt -s +probe.txt # # -p 1e-5 -e 0 + # # + # # Description: This program submit the bootstrap jobs to cluster and + # # store all the output bootstrapping networks in the directory <outp +ut dir>. # # The directory will be created if it doesn't exist. + # # Users also need to specify the range of bootstrapping samples to s +ubmit. # # + # ###################################################################### +########### use Fcntl; if (scalar(@ARGV) < 4) { die "Incorrect number of arguments!\nUsage: qsubbootstrap.pl <output + dir> <lower#> <upper#> <ARAC arguments> \nExample: qsubbootstrap.pl +adjdir 1 100 -i data.exp -l tflist.txt -p 1e-5 -e 0\n"; } else { ($dir,$r1,$r2,@otherarg)=@ARGV; $otherarg="@otherarg"; } $otherarg =~ m/-i\s+(\S+)\.\S+\s/; $inputfile = $1; $dir=$dir."\/" unless ($dir=~m/\/$/); @folderfound=<./*/>; $allfolder="@folderfound"; system "mkdir ".$dir unless ($allfolder=~m/$dir/); foreach $bs ($r1..$r2){ $bs3 = sprintf("%03i", $bs); $shfile = "aracne".$bs3."\.sh"; sysopen(OUTFILE, $shfile, O_WRONLY|O_TRUNC|O_CREAT, 0666) || die $!; select OUTFILE; print "\#\$ -S \/bin\/bash -cwd -j y -o soe \n\n \.\/arac $otherarg +-r $bs -o ".$dir.$inputfile."_r".$bs3.".adj"; close OUTFILE; system "qsub -p -100 $shfile"; system "rm ".$shfile; }
I want to first submit all of the data to the cluster and then do a 30+% and 30-% selection of the data on the bootstrapped set. How could I implement this?

In reply to Bootstrapping Implementation #2 by hoffmann

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.