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
b3f09386
Commit
b3f09386
authored
13 years ago
by
Andy Yates
Browse files
Options
Downloads
Patches
Plain Diff
Changing the casing of these groupings & making sure that error messages are more informative
parent
6cff9789
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/Utils/BiotypeMapper.pm
+9
-7
9 additions, 7 deletions
modules/Bio/EnsEMBL/Utils/BiotypeMapper.pm
with
9 additions
and
7 deletions
modules/Bio/EnsEMBL/Utils/BiotypeMapper.pm
+
9
−
7
View file @
b3f09386
...
...
@@ -137,7 +137,7 @@ my %grouping_of_biotypes = (
rRNA snoRNA snRNA
)
],
# practical Ensembl core categories for fasta dumping
'
c
DNA
'
=>
[
qw( protein_coding polymorphic_pseudogene IG_V_gene TR_V_gene
'
c
dna
'
=>
[
qw( protein_coding polymorphic_pseudogene IG_V_gene TR_V_gene
IG_J_gene TR_J_gene IG_D_gene IG_C_gene TR_C_gene pseudogene
retrotransposed IG_V_pseudogene TR_V_pseudogene
IG_J_pseudogene IG_C_pseudogene processed_transcript
...
...
@@ -145,9 +145,10 @@ my %grouping_of_biotypes = (
disrupted_domain
)
],
'
peptide_producing
'
=>
[
qw( protein_coding polymorphic_pseudogene IG_V_gene TR_V_gene
IG_J_gene TR_J_gene IG_D_gene IG_C_gene TR_C_gene
IG_J_gene TR_J_gene IG_D_gene IG_C_gene TR_C_gene
nonsense_mediated_decay
)
],
'
nc
RNA
'
=>
[
qw( ncRNA miRNA miRNA_pseudogene misc_RNA misc_RNA_pseudogene Mt_tRNA
'
nc
rna
'
=>
[
qw( ncRNA miRNA miRNA_pseudogene misc_RNA misc_RNA_pseudogene Mt_tRNA
Mt_tRNA_pseudogene Mt_rRNA rRNA rRNA_pseudogene scRNA_pseudogene
snoRNA snoRNA_pseudogene snRNA snRNA_pseudogene tRNA_pseudogene
3prime_overlapping_ncrna lincRNA ncrna_host non_coding
...
...
@@ -267,6 +268,7 @@ sub belongs_to_groups {
my
$member
=
shift
;
my
@belongs_to
;
foreach
my
$group
(
keys
%grouping_of_biotypes
)
{
$group
=
lc
(
$group
);
foreach
my
$biotype
(
@
{
$grouping_of_biotypes
{
$group
}
})
{
if
(
$biotype
eq
$member
)
{
push
@belongs_to
,
$group
;}
}
...
...
@@ -283,13 +285,13 @@ sub belongs_to_groups {
sub
group_members
{
my
$self
=
shift
;
my
$group
=
shift
;
my
$group
=
lc
(
shift
)
;
if
(
exists
(
$grouping_of_biotypes
{
$group
}))
{
my
@biotypes
=
@
{
$grouping_of_biotypes
{
$group
}
};
return
\
@biotypes
;
}
else
{
throw
("
N
ot a valid group name for biotypes
");
throw
("
$group
is n
ot a valid group name for biotypes
");
}
}
...
...
@@ -304,9 +306,9 @@ sub group_members {
sub
member_of_group
{
my
$self
=
shift
;
my
$biotype
=
shift
;
my
$query_group
=
shift
;
my
$query_group
=
lc
(
shift
)
;
my
@groups
=
@
{
$self
->
belongs_to_groups
(
$biotype
)
};
while
(
my
$group
=
shift
@groups
)
{
while
(
my
$group
=
lc
(
shift
@groups
)
)
{
if
(
$group
eq
$query_group
)
{
return
1
;
}
...
...
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