I am trying to run a program that takes two fasta sequencing files and compares them. the program has to compare 38,000 file together to make 1 billion comparisons. when i run the program it does about 12,000 comparisons a minute. this would take 60 days to complete!
i am noticing that the...
what is the hierarchy of variable creation?
if i create a variable inside an if statement using "my" is that variable only good in the if statement?
example
if (condition) {
my ($var1, $var2);
}
i am trying to call a system command but can't redirect to a file.
#system ("/home/program", ">", "results/compared.txt");
it thinks the > is a parameter and won't run the program.
another possibility is using backticks
`/home/program > compared.txt`;
but i dont know how to to use variables...
i am having problems with breaking a file into several files.
here is my code.
my $source = $ARGV [0];
my $i = 0;
open STDIN, $source or die "Can't read source file $source: $! \n";
while ($line = <STDIN>)
{
$x = substr( $line, 3, 1);
if ($x =~ /^|/){
$y = substr( $line, 18, 13)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.