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
1f7fca8e
Commit
1f7fca8e
authored
18 years ago
by
Andreas Kusalananda Kähäri
Browse files
Options
Downloads
Patches
Plain Diff
Update Vega parser to be more generic.
parent
15d1e93a
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/VegaParser.pm
+16
-19
16 additions, 19 deletions
misc-scripts/xref_mapping/XrefParser/VegaParser.pm
with
16 additions
and
19 deletions
misc-scripts/xref_mapping/XrefParser/VegaParser.pm
+
16
−
19
View file @
1f7fca8e
...
...
@@ -7,7 +7,12 @@ use strict;
use
base
qw( XrefParser::BaseParser )
;
# Parses the Vega Fasta file format:
# Parses the Vega CDNA and Peptide Fasta file format:
#
# >OTTMUST00000004500 cdna:tot chromosome:VEGA:1:60690948:60709172:1 Gene:OTTMUSG00000002254
# GTGACTTCAGTTCACACCACACTCTGCCTTGCTCACAGAGGAGGGGCTGCAGCCCTGGCC
# CTCATCAGAACAATGACACTCAGGCTGCTGTTCTTGGCTCTCAACTTCTTCTCAGTTCAA
# GTAACAGAAAACAAGATTTTGGTAAAGCAGTCGCCCCTGCTTGTGGTAGATAGCAACGAG
#
# >OTTMUSP00000002157 pep:known chromosome:VEGA:1:60690904:60717905:1 Gene:OTTMUSG00000002254 Transcript:OTTMUST00000004499
# MTLRLLFLALNFFSVQVTENKILVKQSPLLVVDSNEVSLSCRYSYNLLAKEFRASLYKGV
...
...
@@ -32,30 +37,22 @@ sub run
if
(
substr
(
$line
,
0
,
1
)
eq
'
>
'
)
{
# New sequence header.
my
(
$vega_protein_id
,
$vega_type
,
$vega_position
,
$vega_gene_id
,
$vega_transcript_id
)
=
split
/ /
,
$line
;
substr
(
$vega_protein_id
,
0
,
1
,
''
);
# Remove initial '>',
substr
(
$vega_gene_id
,
0
,
5
,
''
);
# initial 'Gene:', and
substr
(
$vega_transcript_id
,
0
,
11
,
''
);
# 'Transcript:'.
substr
(
$line
,
0
,
1
,
''
);
# Remove initial '>'
my
(
$vega_
alphabet
,
$vega_status
)
=
(
$
vega_type
=~
/(.*):(.*)
/
);
my
(
$vega_
id
,
$vega_alphabet
)
=
(
$
line
=~
/^(\S+)\s([^:]+):
/
);
my
%xref
=
(
'
ACCESSION
'
=>
$vega_transcript_id
,
'
LABEL
'
=>
$vega_transcript_id
,
'
DESCRIPTION
'
=>
sprintf
(
"
%s %s
",
$vega_type
,
$vega_position
),
'
SEQUENCE
'
=>
'',
'
SOURCE_ID
'
=>
$source_id
,
'
SPECIES_ID
'
=>
$species_id
,
'
ACCESSION
'
=>
$vega_id
,
'
LABEL
'
=>
$vega_id
,
'
DESCRIPTION
'
=>
$line
,
'
SEQUENCE
'
=>
'',
'
SOURCE_ID
'
=>
$source_id
,
'
SPECIES_ID
'
=>
$species_id
,
'
SEQUENCE_TYPE
'
=>
(
$vega_alphabet
eq
'
pep
'
?
'
peptide
'
:
'
dna
'
),
'
STATUS
'
=>
$vega_status
,
'
STATUS
'
=>
'
experimental
'
);
push
@xrefs
,
\
%xref
;
...
...
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