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
c1a07cb6
Commit
c1a07cb6
authored
11 years ago
by
Magali Ruffier
Browse files
Options
Downloads
Patches
Plain Diff
using biotype group directly rather than list of biotypes belonging to said group
parent
1d969007
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
misc-scripts/assembly/exon_conservation_check.pl
+7
-16
7 additions, 16 deletions
misc-scripts/assembly/exon_conservation_check.pl
with
7 additions
and
16 deletions
misc-scripts/assembly/exon_conservation_check.pl
+
7
−
16
View file @
c1a07cb6
...
...
@@ -172,14 +172,11 @@ sub exon {
$difference
=
diff
(
\
$old_seq
,
\
$projected_seq
);
my
$biotype_group
=
$biotype_manager
->
fetch_biotype
(
$parent_gene
)
->
biotype_group
;
my
$group_list
=
$biotype_manager
->
group_members
(
$biotype_group
);
foreach
my
$group
(
@$group_list
)
{
if
(
$group
eq
'
coding
')
{
$state
=
'
!!
';
last
;
}
if
(
$biotype_group
eq
'
coding
')
{
$state
=
'
!!
';
}
else
{
$state
=
'
%%
';
}
$state
=
'
%%
'
unless
$state
;
# Middle badness
}
$location
=
sprintf
('
%d : %d
',
$projected_exon
->
start
(),
$projected_exon
->
end
());
...
...
@@ -240,17 +237,11 @@ sub transcript {
#Check if it was protein coding
my
$biotype_group
=
$biotype_manager
->
fetch_biotype
(
$projected_transcript
)
->
biotype_group
;
my
$group_list
=
$biotype_manager
->
group_members
(
$biotype_group
);
my
$is_pc
=
0
;
foreach
my
$group
(
@$group_list
)
{
if
(
$group
eq
'
coding
')
{
$is_pc
=
1
;
last
;
}
}
my
$is_pc
=
0
;
#Now check for protein sequence mis-match
if
(
$is_pc
)
{
if
(
$biotype_group
eq
'
coding
')
{
$is_pc
=
1
;
my
$old_seq
=
$old_transcript
->
translate
()
->
seq
();
my
$new_seq
=
$projected_transcript
->
translate
()
->
seq
();
$total_length
=
length
(
$old_seq
);
...
...
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