Mercurial > repos > romaingred > pirna_pipeline
comparison bin/piPipe.pl @ 27:fe5a96def00e draft
Uploaded
author | romaingred |
---|---|
date | Mon, 23 Oct 2017 08:28:55 -0400 |
parents | 201e27bab5a0 |
children | aea6ed0da85b |
comparison
equal
deleted
inserted
replaced
26:201e27bab5a0 | 27:fe5a96def00e |
---|---|
67 | 67 |
68 my $file = $dir.'report.txt'; | 68 my $file = $dir.'report.txt'; |
69 open my $report, '>', $file or die "Cannot open $file $!\n"; | 69 open my $report, '>', $file or die "Cannot open $file $!\n"; |
70 | 70 |
71 my @toBuild = ( [$build_index, \$ref], [$build_tRNAs, \$tRNAs], [$build_rRNAs, \$rRNAs], [$build_snRNAs, \$snRNAs], [$build_miRNAs, \$miRNAs], [$build_exons, \$exons], [$build_TE, \$TE] ); | 71 my @toBuild = ( [$build_index, \$ref], [$build_tRNAs, \$tRNAs], [$build_rRNAs, \$rRNAs], [$build_snRNAs, \$snRNAs], [$build_miRNAs, \$miRNAs], [$build_exons, \$exons], [$build_TE, \$TE] ); |
72 to_build ( \@toBuild, $report ); | 72 to_build ( \@toBuild, $report, $dir ); |
73 | 73 |
74 my $proc_child = ceil($max_procs / scalar(@fastq)); | 74 my $proc_child = ceil($max_procs / scalar(@fastq)); |
75 my $proc_grand_child = ceil($proc_child/4); | 75 my $proc_grand_child = ceil($proc_child/4); |
76 my $pm = Parallel::ForkManager->new($max_procs); | 76 my $pm = Parallel::ForkManager->new($max_procs); |
77 my $pm2 = Parallel::ForkManager->new($proc_grand_child); | 77 my $pm2 = Parallel::ForkManager->new($proc_grand_child); |