ylab-hi / pxblat Goto Github PK
View Code? Open in Web Editor NEWPxBLAT: An Efficient and Ergonomic Python Binding Library for BLAT
Home Page: https://pxblat.readthedocs.io/en/latest/
License: Other
PxBLAT: An Efficient and Ergonomic Python Binding Library for BLAT
Home Page: https://pxblat.readthedocs.io/en/latest/
License: Other
Hi!
I am trying to access the results after client.query
using the Bio module instead of parsing the results as a list. In the tutorial you say that "The query result is the same as QueryResult of Bio.", however I can't access the data that way:
ret1 = client.query("GAAGAAGCTGGGATTGGAATGCAGGTCTCTTGCGGGATGTGGTGTGGGAGGAGAATGCACAAATGGACAGAGTGGGGGTTGGGGGCTGGGAAAGAGCTAAGGACCAGGGCAGGAGGGGATTCAAGAGACTGAGTAGGGCAGCTAGCTAGTTCCTGGGAGCTCTTCCCTTGTCATCTCATCAGTTTGGACTCCTCGAACAATTC")
# Command
ret1
# Result
[QueryResult(id='/tmp/tmpdd6dm058', 4 hits)]
# Command
type(ret1)
# Result
list
# Command
type(ret1[0])
# Result
Bio.SearchIO._model.query.QueryResul
# Command
qresults = SearchIO.parse(ret1[0], 'blast-xml') #I tried different formats
qresults
# Result
<generator object parse at 0x2b500bf297a0>
# Command
type(qresults)
# Result
generator
# Command
next(qresults)
# Result
TypeError: expected str, bytes or os.PathLike object, not QueryResult
# Command
qresults[0]
# Result
TypeError: 'generator' object is not subscriptable
# Command
for item in qresults:
print(item)
# Result
TypeError: expected str, bytes or os.PathLike object, not QueryResult
# Command
for item in qresults:
type(item)
# Result
TypeError: expected str, bytes or os.PathLike object, not QueryResult
I don't know if I'm doing something wrong, but I tried everything I knew.
Thank you very much! This program is very useful!!!
Best,
Ander
v0.3.4
Linux
No response
No response
A bug happened!
vall
Linux
s
$ python -c "import pxblat" 16:32:11
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/ylk4626/miniforge3/envs/test_pxblat/lib/python3.10/site-packages/pxblat/__init__.py", line 1, in <module>
from .extc import ClientOption
File "/Users/ylk4626/miniforge3/envs/test_pxblat/lib/python3.10/site-packages/pxblat/extc/__init__.py", line 1, in <module>
from .._extc.cppbinding import * # type: ignore
ImportError: dlopen(/Users/ylk4626/miniforge3/envs/test_pxblat/lib/python3.10/site-packages/pxblat/_extc.cpython-310-darwin.so, 0
x0002): symbol not found in flat namespace '_BIO_ctrl'
v1.1.1
Mac Arm
No response
The number of clients for a server is limited to around 250 so far. Otherwise, these will be an issue:
Too many open files
blat server may be down
note: Command Line version of BLAT does not have this issue.
ulimit -n
to control the number of open filesUsageStats
is used to summarize the status of the Server
, for example, how many files are queried to the server? what is the 2-bit file?
However, the status may be not usable when we conduct some analysis.
In other words, the user may not use the status.
Hence, I do not export to the parameter for Server
.
User will not pass theUsageStats
to open Server
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.