-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #748 from wtsi-npg/devel
pull from devel to master to create release 96.0.0
- Loading branch information
Showing
28 changed files
with
7,526 additions
and
459 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,36 @@ | ||
#!/usr/bin/env perl | ||
######### | ||
# Author: js10 | ||
# Created: 2018-05-30 | ||
# | ||
|
||
use strict; | ||
use warnings; | ||
|
||
use FindBin qw($Bin); | ||
use lib ( -d "$Bin/../lib/perl5" ? "$Bin/../lib/perl5" : "$Bin/../lib" ); | ||
use Carp; | ||
use autodie qw(:all); | ||
use Getopt::Long; | ||
use Pod::Usage; | ||
|
||
use Monitor::Staging; | ||
use Monitor::RunFolder::Staging; | ||
|
||
our $VERSION = '0'; | ||
|
||
use Readonly; | ||
my $help; | ||
my $runfolder_path; | ||
my $status_update = 0; | ||
|
||
GetOptions ( | ||
'help' => \$help, | ||
'runfolder_path=s' => \$runfolder_path, | ||
'status_update!' => \$status_update, | ||
); | ||
if ($help) { pod2usage(0); } | ||
|
||
if (!defined $runfolder_path || $runfolder_path == q[]) { | ||
die "ERROR: --runfolder_path argument is required\n"; | ||
} | ||
|
||
my @ms = Monitor::RunFolder::Staging->new( | ||
runfolder_path => $runfolder_path, | ||
status_update => $status_update | ||
)->move_to_analysis(); | ||
|
||
my $mon = Monitor::RunFolder::Staging->new_with_options(status_update => 0); | ||
my @ms = $mon->move_to_analysis(); | ||
print join "\n", @ms; | ||
|
||
1; | ||
|
@@ -30,23 +40,38 @@ __END__ | |
=head1 NAME | ||
npg_move_runfolder - move 'incoming' to 'analysis' and change group. | ||
npg_move_runfolder - move the run folder given as an argument from | ||
'incoming' to 'analysis' and change group. | ||
=head1 VERSION | ||
=head1 SYNOPSIS | ||
C<npg_move_runfolder --runfolder_path path> | ||
C<npg_move_runfolder --runfolder_path path> | ||
=head1 DESCRIPTION | ||
This script moves a given run folder from 'incoming' directory to 'analysis' directory | ||
and changes the group name to that found in the staging configuration. | ||
By default it does not change the run status. | ||
This script moves a given run folder from 'incoming' directory to 'analysis' | ||
directory and changes the group name to that found in the staging | ||
configuration. By default it does not change the run status. | ||
=head1 REQUIRED ARGUMENTS | ||
C<runfolder_path> | ||
=head1 OPTIONS | ||
C<help> - displays help message and exists | ||
C<runfolder_path> - the path of the run folder, required | ||
C<status_update> - a boolean option, defaults to false, meaning that | ||
the run status update is not performed | ||
=head1 CONFIGURATION AND ENVIRONMENT | ||
Depends on the presence of the npg tracking system. | ||
If the run status update is performed, write access to the tracking | ||
database is required. | ||
=head1 INCOMPATIBILITIES | ||
|
@@ -58,7 +83,7 @@ Jennifer Liddle, E<lt>[email protected]<gt> | |
=head1 LICENCE AND COPYRIGHT | ||
Copyright (C) 2018 GRL, by Jennifer Liddle | ||
Copyright (C) 2018, 2023 Genome Research Ltd. | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
#!/usr/bin/env perl | ||
|
||
use strict; | ||
use warnings; | ||
use FindBin qw($Bin); | ||
use lib ( -d "$Bin/../lib/perl5" ? "$Bin/../lib/perl5" : "$Bin/../lib" ); | ||
use Log::Log4perl qw(:easy); | ||
|
||
use npg::samplesheet::auto; | ||
|
||
our $VERSION = '0'; | ||
|
||
Log::Log4perl->easy_init($INFO); | ||
|
||
my $log = Log::Log4perl->get_logger('main'); | ||
$log->info('Starting npg samplesheet'); | ||
|
||
npg::samplesheet::auto->new()->loop(); | ||
|
||
0; | ||
|
||
__END__ | ||
|
||
=head1 NAME | ||
|
||
npg_samplesheet4MiSeq | ||
|
||
=head1 USAGE | ||
|
||
npg_samplesheet4MiSeq | ||
|
||
=head1 DESCRIPTION | ||
|
||
The script, once started, runs in perpetuity, generating Illumina-style | ||
samplesheets for any MiSeq run with status 'run pending'. | ||
|
||
=head1 REQUIRED ARGUMENTS | ||
|
||
None | ||
|
||
=head1 OPTIONS | ||
|
||
=head1 DIAGNOSTICS | ||
|
||
=head1 CONFIGURATION | ||
|
||
=head1 DEPENDENCIES | ||
|
||
=over | ||
|
||
=item strict | ||
|
||
=item warnings | ||
|
||
=item FindBin | ||
|
||
=item lib | ||
|
||
=item Log::Log4perl | ||
|
||
=item npg::samplesheet::auto | ||
|
||
=back | ||
|
||
=head1 EXIT STATUS | ||
|
||
Does not exit unless is sent a signal to terminate. | ||
|
||
=head1 INCOMPATIBILITIES | ||
|
||
=head1 BUGS AND LIMITATIONS | ||
|
||
=head1 AUTHOR | ||
|
||
Jaime Tovar E<lt>[email protected]<gt> | ||
|
||
=head1 LICENSE AND COPYRIGHT | ||
|
||
Copyright (C) 2020,2021,2023 GRL. | ||
|
||
This file is part of NPG. | ||
|
||
NPG is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
|
||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
=cut |
Oops, something went wrong.