Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl
Commits
b94a0f50
Commit
b94a0f50
authored
Mar 18, 2010
by
Ian Longden
Browse files
no longer used. just confusing having it here
parent
9ddca451
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
80 deletions
+0
-80
misc-scripts/xref_mapping/XrefParser/VegaParser.pm
misc-scripts/xref_mapping/XrefParser/VegaParser.pm
+0
-80
No files found.
misc-scripts/xref_mapping/XrefParser/VegaParser.pm
deleted
100644 → 0
View file @
9ddca451
# $Id$
package
XrefParser::
VegaParser
;
use
warnings
;
use
strict
;
use
base
qw( XrefParser::BaseParser )
;
# 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
# NSDVEVCVGNGNFTYQPQFRSNAEFNCDGDFDNETVTFRLWNLHVNHTDIYFCKIEFMYP
# PPYLDNERSNGTIIHIKEKHLCHTQSSPKLFWALVVVAGVLFCYGLLVTVALCVIWTNSR
# RNRLLQSDYMNMTPRRPGLTRKPYQPYAPARDFAAYRP
sub
run
{
my
$self
=
shift
if
(
defined
(
caller
(
1
)));
my
$source_id
=
shift
;
my
$species_id
=
shift
;
my
$files_ref
=
shift
;
my
$rel_file
=
shift
;
my
$verbose
=
shift
;
my
$file_name
=
@
{
$files_ref
}[
0
];
my
$file_io
=
$self
->
get_filehandle
(
$file_name
);
if
(
!
defined
$file_io
)
{
return
1
;
# Failed.
}
my
@xrefs
;
while
(
defined
(
my
$line
=
$file_io
->
getline
()
)
)
{
chomp
$line
;
if
(
substr
(
$line
,
0
,
1
)
eq
'
>
'
)
{
# New sequence header.
substr
(
$line
,
0
,
1
,
''
);
# Remove initial '>'
my
(
$vega_id
,
$vega_alphabet
)
=
(
$line
=~
/^(\S+)\s([^:]+):/
);
my
%xref
=
(
'
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
'
=>
'
experimental
'
);
push
@xrefs
,
\
%xref
;
}
else
{
$xrefs
[
-
1
]
->
{'
SEQUENCE
'}
.=
$line
;
}
}
$self
->
upload_xref_object_graphs
(
\
@xrefs
);
print
scalar
(
@xrefs
)
.
"
Vega Fasta Xrefs successfully parsed
\n
"
if
(
$verbose
);
return
0
;
# Successful.
}
1
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment