Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl
Commits
7582b6b8
Commit
7582b6b8
authored
Jun 12, 2012
by
Andy Yates
Browse files
Better documentation
parent
f943fb26
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
modules/Bio/EnsEMBL/Pipeline/FASTA/Indexer.pm
modules/Bio/EnsEMBL/Pipeline/FASTA/Indexer.pm
+5
-3
No files found.
modules/Bio/EnsEMBL/Pipeline/FASTA/Indexer.pm
View file @
7582b6b8
...
...
@@ -15,11 +15,13 @@ sub decompress {
my
$target_dir
=
$self
->
target_dir
();
my
(
$vol
,
$dir
,
$file
)
=
File::
Spec
->
splitpath
(
$source
);
my
$target
=
File::
Spec
->
catdir
(
$target_dir
,
$file
);
$self
->
info
('
Decompressing %s to %s
',
$source
,
$target
);
my
$gunzipped_target
=
$target
;
$gunzipped_target
=~
s/.gz$//
;
$self
->
info
('
Copying from %s to %s
',
$source
,
$gunzipped_target
);
copy
(
$source
,
$target
)
or
throw
"
Cannot copy
$source
to
$target
: $!
";
$self
->
info
('
Decompressing %s to %s
',
$source
,
$gunzipped_target
);
system
("
gunzip -f
$target
")
and
throw
sprintf
('
Could not gunzip. Exited with code %d
',
(
$?
>>
8
));
$target
=~
s/.gz$//
;
return
$target
;
return
$gunzipped_target
;
}
sub
repeat_mask_date
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment