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
6eec47a7
Commit
6eec47a7
authored
18 years ago
by
Glenn Proctor
Browse files
Options
Downloads
Patches
Plain Diff
Support .zip files, and # notation for specifying which file to use from the zip file.
parent
3af7fc82
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
misc-scripts/xref_mapping/XrefParser/BaseParser.pm
+14
-1
14 additions, 1 deletion
misc-scripts/xref_mapping/XrefParser/BaseParser.pm
with
14 additions
and
1 deletion
misc-scripts/xref_mapping/XrefParser/BaseParser.pm
+
14
−
1
View file @
6eec47a7
...
...
@@ -227,8 +227,21 @@ sub run {
}
else
{
if
(
$file
=~
/(.*)\.gz$/
or
$file
=~
/(.*)\.Z$/
or
$file
=~
/(.*)\.zip$/
)
{
if
(
$file
=~
/(.*)\.gz$/
or
$file
=~
/(.*)\.Z$/
)
{
$file
=
$
1
;
}
elsif
(
$file
=~
/\.zip/
)
{
# .zip files are archives
# that can contain several files. The file to be extracted is specified
# by a hash in the URL in populate_metadata.sql, e.g.
# http://www.illumina.com/General/Products/ArraysReagents/zip_files/Human_WG-6_rev.zip#Human_WG-6_rev.csv
# TODO - maybe add support for .tar.gz here as well
if
(
$file
=~
/(.*\.zip)\#(.*)$/
)
{
my
$archive
=
$
1
;
$file
=
$
2
;
print
"
Using
$file
from archive
$archive
\n
";
}
else
{
die
"
$file
specifies a .zip file withouut using the # notation to specify the file in the archive to be used.
";
}
}
}
...
...
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