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
542e61b7
Commit
542e61b7
authored
10 years ago
by
Vermaat
Browse files
Options
Downloads
Patches
Plain Diff
Fix GRCm38 chromosome accession number versions
parent
5ca4d216
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
extras/assemblies/GRCm38.json
+21
-21
21 additions, 21 deletions
extras/assemblies/GRCm38.json
migrations/versions/402ff01b0d5d_fix_grcm38_chromosome_accession_number_.py
+59
-0
59 additions, 0 deletions
...s/402ff01b0d5d_fix_grcm38_chromosome_accession_number_.py
with
80 additions
and
21 deletions
extras/assemblies/GRCm38.json
+
21
−
21
View file @
542e61b7
...
...
@@ -7,107 +7,107 @@
{
"organelle"
:
"nucleus"
,
"name"
:
"chr1"
,
"accession"
:
"NC_000067.6
5
"
"accession"
:
"NC_000067.6"
},
{
"organelle"
:
"nucleus"
,
"name"
:
"chr2"
,
"accession"
:
"NC_000068.7
0
"
"accession"
:
"NC_000068.7"
},
{
"organelle"
:
"nucleus"
,
"name"
:
"chr3"
,
"accession"
:
"NC_000069.6
0
"
"accession"
:
"NC_000069.6"
},
{
"organelle"
:
"nucleus"
,
"name"
:
"chr4"
,
"accession"
:
"NC_000070.6
6
"
"accession"
:
"NC_000070.6"
},
{
"organelle"
:
"nucleus"
,
"name"
:
"chr5"
,
"accession"
:
"NC_000071.6
5
"
"accession"
:
"NC_000071.6"
},
{
"organelle"
:
"nucleus"
,
"name"
:
"chr6"
,
"accession"
:
"NC_000072.6
0
"
"accession"
:
"NC_000072.6"
},
{
"organelle"
:
"nucleus"
,
"name"
:
"chr7"
,
"accession"
:
"NC_000073.6
1
"
"accession"
:
"NC_000073.6"
},
{
"organelle"
:
"nucleus"
,
"name"
:
"chr8"
,
"accession"
:
"NC_000074.6
0
"
"accession"
:
"NC_000074.6"
},
{
"organelle"
:
"nucleus"
,
"name"
:
"chr9"
,
"accession"
:
"NC_000075.6
0
"
"accession"
:
"NC_000075.6"
},
{
"organelle"
:
"nucleus"
,
"name"
:
"chr10"
,
"accession"
:
"NC_000076.6
0
"
"accession"
:
"NC_000076.6"
},
{
"organelle"
:
"nucleus"
,
"name"
:
"chr11"
,
"accession"
:
"NC_000077.6
0
"
"accession"
:
"NC_000077.6"
},
{
"organelle"
:
"nucleus"
,
"name"
:
"chr12"
,
"accession"
:
"NC_000078.6
0
"
"accession"
:
"NC_000078.6"
},
{
"organelle"
:
"nucleus"
,
"name"
:
"chr13"
,
"accession"
:
"NC_000079.6
0
"
"accession"
:
"NC_000079.6"
},
{
"organelle"
:
"nucleus"
,
"name"
:
"chr14"
,
"accession"
:
"NC_000080.6
0
"
"accession"
:
"NC_000080.6"
},
{
"organelle"
:
"nucleus"
,
"name"
:
"chr15"
,
"accession"
:
"NC_000081.6
0
"
"accession"
:
"NC_000081.6"
},
{
"organelle"
:
"nucleus"
,
"name"
:
"chr16"
,
"accession"
:
"NC_000082.6
0
"
"accession"
:
"NC_000082.6"
},
{
"organelle"
:
"nucleus"
,
"name"
:
"chr17"
,
"accession"
:
"NC_000083.6
0
"
"accession"
:
"NC_000083.6"
},
{
"organelle"
:
"nucleus"
,
"name"
:
"chr18"
,
"accession"
:
"NC_000084.6
0
"
"accession"
:
"NC_000084.6"
},
{
"organelle"
:
"nucleus"
,
"name"
:
"chr19"
,
"accession"
:
"NC_000085.6
0
"
"accession"
:
"NC_000085.6"
},
{
"organelle"
:
"nucleus"
,
"name"
:
"chrX"
,
"accession"
:
"NC_000086.7
1
"
"accession"
:
"NC_000086.7"
},
{
"organelle"
:
"nucleus"
,
"name"
:
"chrY"
,
"accession"
:
"NC_000087.7
4
"
"accession"
:
"NC_000087.7"
},
{
"organelle"
:
"mitochondrion"
,
...
...
This diff is collapsed.
Click to expand it.
migrations/versions/402ff01b0d5d_fix_grcm38_chromosome_accession_number_.py
0 → 100644
+
59
−
0
View file @
542e61b7
"""
Fix GRCm38 chromosome accession number versions
Revision ID: 402ff01b0d5d
Revises: ea660b66f26
Create Date: 2014-10-08 15:10:21.522551
"""
# revision identifiers, used by Alembic.
revision
=
'
402ff01b0d5d
'
down_revision
=
'
ea660b66f26
'
from
alembic
import
op
from
sqlalchemy
import
sql
import
sqlalchemy
as
sa
# These accidentally got an extra trailing digit.
ACCESSIONS
=
[
'
NC_000067.65
'
,
'
NC_000068.70
'
,
'
NC_000069.60
'
,
'
NC_000070.66
'
,
'
NC_000071.65
'
,
'
NC_000072.60
'
,
'
NC_000073.61
'
,
'
NC_000074.60
'
,
'
NC_000075.60
'
,
'
NC_000076.60
'
,
'
NC_000077.60
'
,
'
NC_000078.60
'
,
'
NC_000079.60
'
,
'
NC_000080.60
'
,
'
NC_000081.60
'
,
'
NC_000082.60
'
,
'
NC_000083.60
'
,
'
NC_000084.60
'
,
'
NC_000085.60
'
,
'
NC_000086.71
'
,
'
NC_000087.74
'
]
def
upgrade
():
### commands auto generated by Alembic - please adjust! ###
chromosomes
=
sql
.
table
(
'
chromosomes
'
,
sql
.
column
(
'
accession
'
,
sa
.
String
(
30
)))
for
accession
in
ACCESSIONS
:
# https://alembic.readthedocs.org/en/latest/ops.html#alembic.operations.Operations.execute
op
.
execute
(
chromosomes
.
update
().
where
(
chromosomes
.
c
.
accession
==
op
.
inline_literal
(
accession
)).
values
({
'
accession
'
:
op
.
inline_literal
(
accession
[:
-
1
])}))
### end Alembic commands ###
def
downgrade
():
### commands auto generated by Alembic - please adjust! ###
chromosomes
=
sql
.
table
(
'
chromosomes
'
,
sql
.
column
(
'
accession
'
,
sa
.
String
(
30
)))
for
accession
in
ACCESSIONS
:
# https://alembic.readthedocs.org/en/latest/ops.html#alembic.operations.Operations.execute
op
.
execute
(
chromosomes
.
update
().
where
(
chromosomes
.
c
.
accession
==
op
.
inline_literal
(
accession
[:
-
1
])).
values
({
'
accession
'
:
op
.
inline_literal
(
accession
)}))
### end Alembic commands ###
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