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
d82fe307
Commit
d82fe307
authored
21 years ago
by
Web Admin
Browse files
Options
Downloads
Patches
Plain Diff
change alleles and ambicode of snp depending if transcript and snp are on different strands
parent
68272470
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/Transcript.pm
+7
-9
7 additions, 9 deletions
modules/Bio/EnsEMBL/Transcript.pm
with
7 additions
and
9 deletions
modules/Bio/EnsEMBL/Transcript.pm
+
7
−
9
View file @
d82fe307
...
...
@@ -842,11 +842,11 @@ sub get_all_peptide_variations {
next
if
$allele
eq
'
-
';
#skip deletions
next
if
CORE::
length
(
$allele
)
!=
1
;
#skip insertions
if
(
$strand
==
-
1
)
{
#
if($strand == -1) {
#complement the allele if the snp is on the reverse strand
$allele
=~
tr/acgtrymkswhbvdnxACGTRYMKSWHBVDNX/tgcayrkmswdvbhnxTGCAYRKMSWDVBHNX/
;
}
#
$allele =~
#
tr/acgtrymkswhbvdnxACGTRYMKSWHBVDNX/tgcayrkmswdvbhnxTGCAYRKMSWDVBHNX/;
#
}
#create a data structure of variant alleles sorted by both their
#peptide position and their position within the peptides codon
...
...
@@ -1087,20 +1087,18 @@ sub get_all_cdna_SNPs {
# change allele and ambicode if strand of coordinate system is different to snp strand
my
$exon_strand
=
$new_exon
->
{'
_gsf_strand
'};
if
(
$snp
->
strand
ne
$exon_strand
){
if
(
$coord
->
strand
()
==
-
1
){
$snp
->
{'
alleles
'}
=~
tr/acgthvmrdbkynwsACGTDBKYHVMRNWS\//tgcadbkyhvmrnwsTGCAHVMRDBKYNWS\//
;
$snp
->
{'
_ambiguity_code
'}
=~
tr/acgthvmrdbkynwsACGTDBKYHVMRNWS\//tgcadbkyhvmrnwsTGCAHVMRDBKYNWS\//
;
}
#copy the snp and convert to cdna coords
...
#copy the snp and convert to cdna coords
, we arbitrarily move snps to +ve strand
my
$new_snp
;
%$new_snp
=
%$snp
;
bless
$new_snp
,
ref
$snp
;
$new_snp
->
start
(
$coord
->
start
);
$new_snp
->
end
(
$coord
->
end
);
$new_snp
->
strand
(
$coord
->
strand
);
$new_snp
->
strand
(
1
);
push
@
{
$snp_hash
{
$type
}},
$new_snp
;
}
}
...
...
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