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
84352fcf
Commit
84352fcf
authored
6 years ago
by
Magali Ruffier
Browse files
Options
Downloads
Patches
Plain Diff
ENSCORESW-2553
: retrieve correct accession for peptides
parent
09f9c7bd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
4 merge requests
!342
Feature/schema update 96
,
!292
ENSCORESW-2553: retrieve correct accession for peptides
,
!342
Feature/schema update 96
,
!292
ENSCORESW-2553: retrieve correct accession for peptides
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
misc-scripts/xref_mapping/XrefParser/RefSeqCoordinateParser.pm
+8
-3
8 additions, 3 deletions
...scripts/xref_mapping/XrefParser/RefSeqCoordinateParser.pm
with
8 additions
and
3 deletions
misc-scripts/xref_mapping/XrefParser/RefSeqCoordinateParser.pm
+
8
−
3
View file @
84352fcf
...
...
@@ -240,7 +240,7 @@ sub run_script {
# Create a range registry for all the exons of the refseq transcript
foreach
my
$transcript_of
(
sort
{
$a
->
start
()
<=>
$b
->
start
()
}
@$transcripts_of
)
{
my
$id
;
my
(
$id
,
$tl_id
)
;
# We're moving to RefSeq accessions being stored as xrefs rather than
# stable ids. But we also need to maintain backwards compatbility.
# If it's the new kind, where there's a display_xref use that,
...
...
@@ -405,12 +405,17 @@ sub run_script {
# Also store refseq protein as direct xref for ensembl translation, if translation exists
if
(
defined
$tl
&&
defined
$tl_of
)
{
if
(
$tl_of
->
seq
eq
$tl
->
seq
)
{
(
$acc
,
$version
)
=
split
(
/\./
,
$tl_of
->
stable_id
());
$tl_id
=
$tl_of
->
stable_id
();
my
@xrefs
=
grep
{
$_
->
{
dbname
}
eq
'
GenBank
'}
@
{
$tl_of
->
get_all_DBEntries
};
if
(
scalar
@xrefs
==
1
)
{
$tl_id
=
$xrefs
[
0
]
->
primary_id
();
}
(
$acc
,
$version
)
=
split
(
/\./
,
$tl_id
);
$source_id
=
$peptide_source_id
;
$source_id
=
$pred_peptide_source_id
if
$acc
=~
/^XP_/
;
my
$tl_xref_id
=
$self
->
add_xref
({
acc
=>
$acc
,
version
=>
$version
,
label
=>
$
acc
,
label
=>
$
tl_id
,
desc
=>
undef
,
source_id
=>
$source_id
,
species_id
=>
$species_id
,
...
...
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