Comments (4)
fixed the bug I think this line should be
for entry in entries.iterfind("./entry"):
pip install pyuniprot
seems to install a broken version of the code. I now installed the master branch and it seems to work 👍🏼
pip install https://github.com/cebel/pyuniprot/archive/master.zip
from pyuniprot.
the scripts seem to have created some tables though
mysql> SHOW TABLES;
+--------------------------------------+
| Tables_in_pyuniprot |
+--------------------------------------+
| pyuniprot_accession |
| pyuniprot_alternativefullname |
| pyuniprot_alternativeshortname |
| pyuniprot_appuser |
| pyuniprot_dbreference |
| pyuniprot_disease |
| pyuniprot_diseasecomment |
| pyuniprot_ecnumber |
| pyuniprot_entry |
| pyuniprot_entry__keyword |
| pyuniprot_entry__pmid |
| pyuniprot_entry__subcellularlocation |
| pyuniprot_entry__tissueinreference |
| pyuniprot_feature |
| pyuniprot_function |
| pyuniprot_keyword |
| pyuniprot_organismhost |
| pyuniprot_othergenename |
| pyuniprot_pmid |
| pyuniprot_sequence |
| pyuniprot_subcellularlocation |
| pyuniprot_tissueinreference |
| pyuniprot_tissuespecificity |
| pyuniprot_version |
+--------------------------------------+
24 rows in set (0.01 sec)
but all of them have 0 rows except this one
mysql> SELECT * FROM pyuniprot_version;
+----+---------------+--------------+--------------+-------------------+-----------------------+
| id | knowledgebase | release_name | release_date | import_start_date | import_completed_date |
+----+---------------+--------------+--------------+-------------------+-----------------------+
| 1 | Swiss-Prot | 2021_03 | 2021-06-02 | NULL | NULL |
| 2 | TrEMBL | 2021_03 | 2021-06-02 | NULL | NULL |
+----+---------------+--------------+--------------+-------------------+-----------------------+
2 rows in set (0.00 sec)
it appears the .xml.gz
file is being downloaded correctly but is not imported into the SQL database.
from pyuniprot.
@gszep you may keep the issue title, I almost miss out the solution 😂
from pyuniprot.
BTW, the download function was changed to download and extract in latest code, which means if you have downloaded .xml.gz file in ~/.pyuniprot/data with pyuniprot from pypi, you have to decompress it with gzip -d -c uniprot_sprot.xml.gz > uniprot_sprot.xml
. to avoid uniprot_sprot.xml
not found error. (If you don't want to download twice)
from pyuniprot.
Related Issues (20)
- Add update to CLI
- Memory problem with update HOT 1
- Use flask-security for logins HOT 1
- Keep track of version of data HOT 1
- Ugly output of README.rst on PyPi HOT 1
- Allow also TrEMBL import
- Simple GUI for queries and statistics
- Document command line functions
- Fix documentation syntax HOT 3
- RESTful API HOT 1
- zcat fails on mac HOT 1
- Database population fails
- build database failed
- AttributeError: 'DbManager' object has no attribute 'session' HOT 2
- PYUNIPROT_DIR and PYUNIPROT_DATA_DIR should be more easily configurable
- Remove sudo from the installation docs
- update database with only specific accession ids
- AttributeError: 'NoneType' object has no attribute 'get'
- AttributeError during package import
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyuniprot.