Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl
Commits
bd363bcf
Commit
bd363bcf
authored
12 years ago
by
Andy Yates
Browse files
Options
Downloads
Patches
Plain Diff
Adding a no_scp mode
parent
604a4449
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/Bio/EnsEMBL/Pipeline/FASTA/SCPBlast.pm
+12
-0
12 additions, 0 deletions
modules/Bio/EnsEMBL/Pipeline/FASTA/SCPBlast.pm
modules/Bio/EnsEMBL/Pipeline/PipeConfig/FASTA_conf.pm
+1
-0
1 addition, 0 deletions
modules/Bio/EnsEMBL/Pipeline/PipeConfig/FASTA_conf.pm
with
13 additions
and
0 deletions
modules/Bio/EnsEMBL/Pipeline/FASTA/SCPBlast.pm
+
12
−
0
View file @
bd363bcf
...
...
@@ -31,6 +31,8 @@ Allowed parameters are:
=over 8
=item no_scp - If true then we will not run SCP but still finish cleanly without error
=item type - The type of dump to copy. Required parameter
=item genomic_dir - Needed if you are copying DNA genomic files
...
...
@@ -66,6 +68,7 @@ use File::Spec;
sub
param_defaults
{
my
(
$self
)
=
@_
;
return
{
no_scp
=>
0
,
# genomic_dir => '',
# genes_dir => '',
# target_servers => ['srv1', 'srv2'],
...
...
@@ -80,6 +83,11 @@ sub param_defaults {
sub
fetch_input
{
my
(
$self
)
=
@_
;
if
(
$self
->
param
('
no_scp
'))
{
$self
->
info
('
Skipping as no_scp has been specified
');
return
;
}
my
$servers
=
$self
->
param
('
target_servers
');
if
(
!
check_ref
(
$servers
,
'
ARRAY
')
||
!
@
{
$servers
})
{
...
...
@@ -105,6 +113,10 @@ sub fetch_input {
sub
run
{
my
(
$self
)
=
@_
;
if
(
$self
->
param
('
no_scp
'))
{
$self
->
info
('
Skipping as no_scp has been specified
');
return
;
}
my
$servers
=
$self
->
param
('
target_servers
');
return
unless
@
{
$servers
};
my
$files
=
$self
->
get_files
();
...
...
This diff is collapsed.
Click to expand it.
modules/Bio/EnsEMBL/Pipeline/PipeConfig/FASTA_conf.pm
+
1
−
0
View file @
bd363bcf
...
...
@@ -42,6 +42,7 @@ sub default_options {
scp_user
=>
$self
->
o
('
ENV
',
'
USER
'),
scp_identity
=>
'',
no_scp
=>
0
,
### Defaults
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment