Skip to content

Commit

Permalink
More comprehensive Pfam ID mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
murphycj committed Apr 21, 2017
1 parent ee19a7f commit 2ad4a69
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
doc/_build/**
doc/_static/**
test/DLG1-BRAF/*
submit_to_pip.sh
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include README.md
include agfusion/data/agfusion.db.gz
include agfusion/data/042017_pdb_pfam_mapping.txt.gz
include agfusion/data/042117_pfamA.txt.gz
include bin/agfusion
include test/test.py
include test/test_mouse.sh
Expand Down
Binary file removed agfusion/data/042017_pdb_pfam_mapping.txt.gz
Binary file not shown.
Binary file added agfusion/data/042117_pfamA.txt.gz
Binary file not shown.
Binary file modified agfusion/data/agfusion.db.gz
Binary file not shown.
1 change: 1 addition & 0 deletions agfusion/data/build_db.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
curl ftp://ftp.ebi.ac.uk/pub/databases/Pfam/current_release/database_files//pfamA.txt.gz > 042117_pfamA.txt.gz

agfusion database --database agfusion.db --build homo_sapiens_core_84_38

Expand Down
10 changes: 4 additions & 6 deletions agfusion/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,15 @@ def __init__(self, database, build, server):
file_path = os.path.join(
os.path.split(__file__)[0],
'data',
'042017_pdb_pfam_mapping.txt.gz'
'042117_pfamA.txt.gz'
)

for line in gzip.open(file_path, 'rb'):
if line.find('PDB_ID')!=-1:
next
line = line.rstrip().split('\t')

pfam_id = line[4].split('.')[0]
pfam_name = line[5]
pfam_desc = line[6]
pfam_id = line[0]
pfam_name = line[1]
pfam_desc = line[3]

self.pfam_mapping[pfam_id] = {
'name': pfam_name,
Expand Down
2 changes: 1 addition & 1 deletion test/test_human.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# --genome GRCh37


agfusion \
agfusion annotate \
--gene5prime ENSG00000066468 \
--gene3prime ENSG00000197959 \
--junction5prime 121485532 \
Expand Down

0 comments on commit 2ad4a69

Please sign in to comment.