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
55af15f8
Commit
55af15f8
authored
21 years ago
by
Graham McVicker
Browse files
Options
Downloads
Patches
Plain Diff
avoid a couple of warnings
parent
800d0695
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
modules/Bio/EnsEMBL/DBSQL/CompressedSequenceAdaptor.pm
+5
-3
5 additions, 3 deletions
modules/Bio/EnsEMBL/DBSQL/CompressedSequenceAdaptor.pm
with
5 additions
and
3 deletions
modules/Bio/EnsEMBL/DBSQL/CompressedSequenceAdaptor.pm
+
5
−
3
View file @
55af15f8
...
@@ -123,7 +123,7 @@ sub store {
...
@@ -123,7 +123,7 @@ sub store {
$sequence
=
uc
(
$sequence
);
$sequence
=
uc
(
$sequence
);
my
$bvector
;
my
$bvector
=
''
;
#convert sequence to 0s,1s,2s and 3s
#convert sequence to 0s,1s,2s and 3s
$sequence
=~
tr/ACTG/0123/
;
$sequence
=~
tr/ACTG/0123/
;
...
@@ -136,10 +136,11 @@ sub store {
...
@@ -136,10 +136,11 @@ sub store {
my
$len
=
length
(
$sequence
);
my
$len
=
length
(
$sequence
);
for
(
my
$i
=
0
;
$i
<
$len
;
$i
++
)
{
for
(
my
$i
=
0
;
$i
<
$len
;
$i
++
)
{
#pack the
my
$char
=
substr
(
$sequence
,
$i
,
1
);
my
$char
=
substr
(
$sequence
,
$i
,
1
);
if
((
$char
+
0
)
eq
$char
)
{
#fast way to check if an int
#quickly check if this character was an A,C,T or G (and was converted to
# a 0,1,2,3)
if
(
$char
=~
/[0-3]/
)
{
vec
(
$bvector
,
$i
,
2
)
=
$char
;
vec
(
$bvector
,
$i
,
2
)
=
$char
;
if
(
$nline_char
)
{
if
(
$nline_char
)
{
#end of an nline
#end of an nline
...
@@ -167,6 +168,7 @@ sub store {
...
@@ -167,6 +168,7 @@ sub store {
$nline_len
=
1
;
$nline_len
=
1
;
$nline_off
=
$i
+
1
;
$nline_off
=
$i
+
1
;
}
}
$char
=
0
;
#need to put numeric val into bitvector despite nline
}
}
vec
(
$bvector
,
$i
,
2
)
=
$char
;
vec
(
$bvector
,
$i
,
2
)
=
$char
;
...
...
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