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
c3c2b9e2
Commit
c3c2b9e2
authored
18 years ago
by
Glenn Proctor
Browse files
Options
Downloads
Patches
Plain Diff
Loop over all transcripts, rather than gene by gene, as it's much faster.
parent
582a9a84
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/frameshift_transcript_attribs.pl
+7
-21
7 additions, 21 deletions
misc-scripts/frameshift_transcript_attribs.pl
with
7 additions
and
21 deletions
misc-scripts/frameshift_transcript_attribs.pl
+
7
−
21
View file @
c3c2b9e2
...
...
@@ -57,23 +57,22 @@ for my $dbname ( @dbnames ) {
}
my
%biotypes
=
();
print
STDERR
"
Finding frameshifts in
$dbname
, creating transcript attributes ...
\n
";
print
STDERR
"
Attributes will not be stored in database
\n
"
if
(
$nostore
);
my
$count
=
0
;
# get all transcripts for each gene, then look at each of their introns in turn
foreach
my
$gene
(
@
{
$gene_adaptor
->
fetch_all
()})
{
# get all transcripts then look at each of their introns in turn
my
@transcripts
=
@
{
$transcript_adaptor
->
fetch_all
()};
my
$gene_has_short_in
tr
o
ns
=
undef
;
foreach
my
$transcript
(
@
tr
a
ns
cripts
)
{
foreach
my
$transcript
(
@
{
$gene
->
get_all_T
ranscripts
()})
{
#print "Transcript " . $trans_no++ . " of " . scalar(@t
ranscripts
) . "\n";
my
$intron_number
=
1
;
my
$intron_number
=
1
;
foreach
my
$intron
(
@
{
$transcript
->
get_all_Introns
()})
{
foreach
my
$intron
(
@
{
$transcript
->
get_all_Introns
()})
{
# only interested in the short ones
if
(
$intron
->
length
()
<
6
&&
$intron
->
length
()
!=
3
)
{
...
...
@@ -89,8 +88,6 @@ for my $dbname ( @dbnames ) {
$attribute_adaptor
->
store_on_Transcript
(
$transcript
->
dbID
,
\
@attribs
)
if
(
!
$nostore
);
$gene_has_short_introns
=
1
;
$count
++
;
}
...
...
@@ -101,22 +98,11 @@ for my $dbname ( @dbnames ) {
}
# foreach transcript
$biotypes
{
$gene
->
biotype
()}
++
if
(
$gene_has_short_introns
);
}
# foreach gene
if
(
$count
)
{
print
"
$count
short intron attributes
\n
";
print
"
Attributes not stored in database
\n
"
if
(
$nostore
);
print
"
Biotypes of affected genes:
\n
";
foreach
my
$biotype
(
keys
%biotypes
)
{
print
$biotype
.
"
\t
"
.
$biotypes
{
$biotype
}
.
"
\n
";
}
print
"
\n
";
}
else
{
print
"
No frameshift introns found!
\n
";
...
...
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