Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mutalyzer
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirrors
mutalyzer
Commits
9882df54
Commit
9882df54
authored
10 years ago
by
Vermaat
Browse files
Options
Downloads
Patches
Plain Diff
Fix importing transcript mappings from UCSC database
Fixes #9
parent
7c97ed0d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGES.rst
+2
-0
2 additions, 0 deletions
CHANGES.rst
mutalyzer/mapping.py
+4
-6
4 additions, 6 deletions
mutalyzer/mapping.py
with
6 additions
and
6 deletions
CHANGES.rst
+
2
−
0
View file @
9882df54
...
...
@@ -17,6 +17,8 @@ Release date to be decided.
<https://git.lumc.nl/mutalyzer/mutalyzer/merge_requests/25>`_).
- Don't crash on mail errors in the batch scheduler (`GitLab#30
<https://git.lumc.nl/mutalyzer/mutalyzer/issues/30>`_).
- Fix importing transcript mappings from UCSC database (`GitLab#9
<https://git.lumc.nl/mutalyzer/mutalyzer/issues/9>`_).
Version 2.0.3
...
...
This diff is collapsed.
Click to expand it.
mutalyzer/mapping.py
+
4
−
6
View file @
9882df54
...
...
@@ -789,17 +789,15 @@ class Converter(object) :
#Converter
# Todo: This seems broken at the moment.
# Todo: Correct handling of string encodings.
def
import_from_ucsc_by_gene
(
assembly
,
gene
):
"""
Import transcript mappings for a gene from the UCSC.
.. todo: Also report how much was added/updated.
"""
connection
=
MySQLdb
.
connect
(
user
=
'
genome
'
,
host
=
'
genome-mysql.cse.ucsc.edu
'
,
db
=
assembly
.
alias
)
db
=
assembly
.
alias
,
charset
=
'
utf8
'
,
use_unicode
=
True
)
query
=
"""
SELECT DISTINCT
...
...
@@ -811,7 +809,7 @@ def import_from_ucsc_by_gene(assembly, gene):
AND acc = mrnaAcc
AND name2 = %s
"""
parameters
=
gene
parameters
=
gene
,
cursor
=
connection
.
cursor
()
cursor
.
execute
(
query
,
parameters
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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