Skip to content

Commit

Permalink
Merge pull request #3 from malachig/master
Browse files Browse the repository at this point in the history
update to work up to ensembl v105
  • Loading branch information
chrisamiller authored Apr 21, 2022
2 parents 90ae305 + d7c5ddf commit f8b5982
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ test/data
submit_to_pip.sh
agfusion.egg-info/
dist/
*pyc
*pyc
*.swp
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN pip3 install mysqlclient

# INSTALL AGFUSION & DATABASE FILES

ENV ensembl_version=95
ENV ensembl_version=105

# Download latest AGFusion from source and install with pip
WORKDIR /usr/local/bin
Expand Down
6 changes: 4 additions & 2 deletions agfusion/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# this is mostly contigent on the maximum ensembl release supported
# by pyensembl

MAX_ENSEMBL_RELEASE = 95
MAX_ENSEMBL_RELEASE = 105

GENOME_SHORTCUTS = {
'GRCm38':['mus_musculus',MAX_ENSEMBL_RELEASE],
Expand Down Expand Up @@ -61,8 +61,10 @@
for i in range(67,MAX_ENSEMBL_RELEASE+1):
if i < 68:
ENSEMBL_MYSQL_TABLES['mus_musculus'][i] = 'mus_musculus_core_' + str(i) + '_37'
else:
elif i < 103:
ENSEMBL_MYSQL_TABLES['mus_musculus'][i] = 'mus_musculus_core_' + str(i) + '_38'
else:
ENSEMBL_MYSQL_TABLES['mus_musculus'][i] = 'mus_musculus_core_' + str(i) + '_39'

# min amino acid length of domain to plot it

Expand Down

0 comments on commit f8b5982

Please sign in to comment.