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
b98650e0
Commit
b98650e0
authored
20 years ago
by
Ian Longden
Browse files
Options
Downloads
Patches
Plain Diff
create submit script for those mappings that produced problems
parent
13a16e95
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/test_mapping_files.pl
+39
-4
39 additions, 4 deletions
misc-scripts/xref_mapping/test_mapping_files.pl
with
39 additions
and
4 deletions
misc-scripts/xref_mapping/test_mapping_files.pl
+
39
−
4
View file @
b98650e0
...
...
@@ -2,6 +2,7 @@ use strict;
use
warnings
;
my
$dir
=
shift
;
my
$submit
=
shift
;
opendir
(
DIR
,
$dir
);
my
@allfiles
=
readdir
DIR
;
...
...
@@ -13,6 +14,11 @@ closedir DIR;
my
%hash
;
my
%max
;
my
%fasta
;
my
$method
;
$max
{'
pep
'}
=
0
;
$max
{'
dna
'}
=
0
;
foreach
my
$file
(
@allfiles
){
if
(
$file
eq
'
.
'
||
$file
eq
'
..
'){
...
...
@@ -21,18 +27,29 @@ foreach my $file(@allfiles){
next
;
}
else
{
my
$type
;
if
(
$file
=~
/dna/
){
if
(
$file
=~
/dna.fasta/
){
$fasta
{'
dna
'}
=
$file
;
next
;
}
elsif
(
$file
=~
/protein.fasta/
){
$fasta
{'
pep
'}
=
$file
;
next
;
}
elsif
(
$file
=~
/dna/
){
$type
=
'
dna
';
if
(
!
defined
(
$method
)){
if
(
$file
=~
/(.*)_dna_\d+.map/
){
$method
=
$
1
;
}
}
}
elsif
(
$file
=~
/pep/
){
$type
=
'
pep
';
}
elsif
(
$file
=~
/fasta/
){
next
;
}
else
{
next
;
}
if
(
$file
=~
/_(\d+).map/
){
$hash
{
$type
}{'
map
'}{
$
1
}
=
$
1
;
}
...
...
@@ -48,13 +65,29 @@ foreach my $file(@allfiles){
}
}
print
"
Method
$method
\n
";
if
(
defined
(
$submit
)){
open
(
OUT
,"
>SUBMIT
")
||
die
"
could not open SUBMIT output file
\n
";
}
foreach
my
$type
('
pep
',
'
dna
'){
print
"
max
"
.
$type
.
"
-->
"
.
$max
{
$type
}
.
"
\n
";
for
(
my
$i
=
1
;
$i
<=
$max
{
$type
};
$i
++
){
if
(
!
defined
(
$hash
{
$type
}{'
map
'}{
$i
})){
print
$i
,"
.map
\n
";
if
(
defined
(
$submit
)){
print
OUT
"
/usr/local/ensembl/bin/exonerate-0.9.0 xref/xref_0_dna.fasta
";
print
OUT
$dir
.
"
/homo_sapiens_dna.fasta --querychunkid
"
.
$i
.
"
--querychunktotal
";
print
OUT
$max
{
$type
}
.
"
--showvulgar false --showalignment FALSE --ryo
";
print
OUT
'
"xref:%qi:%ti:%ei:%ql:%tl:%qab:%qae:%tab:%tae:%C:%s\n"
';
print
OUT
'
--model affine:local --subopt no --bestn 1 | grep "^xref" >
';
print
OUT
$dir
.
"
/
"
.
$method
.
"
_
"
.
$type
.
"
_
"
.
$i
.
"
.map
\n
";
}
}
if
(
!
defined
(
$hash
{
$type
}{'
err
'}{
$i
})){
print
$i
,"
.err
\n
";
}
...
...
@@ -63,3 +96,5 @@ foreach my $type ('pep', 'dna'){
}
}
}
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