Comments (4)
Thank you for reporting this issue. I will check that. A new version will be released soon.
from pyfastx.
Any updates on this? I'm getting the same error: I'm loading a large fasta file (~59M entries), and for some of the indices (when accessing by string key and by integer index), I'm getting a key does not exist error. Reloading the file solves the problem for given keys, but shifts it to others.
I'm using pyfastx 1.1.0
from pyfastx.
Thanks. Could you provide me your code and data https links.
from pyfastx.
I'm using the unzipped version of this file https://stringdb-downloads.org/download/protein.sequences.v12.0.fa.gz.
As for my code, the simple snippet below does not seem to reproduce this error:
import pyfastx
from tqdm import tqdm
FILEPATH="/dccstor/bmfmbio/datasets/STRING/all/protein.sequences.v12.0.fa"
loaded_fasta = pyfastx.Fasta(FILEPATH)
for idx in tqdm(range(int(5e7))):
a = loaded_fasta[idx]
Maybe it has to do with multiple workers accessing the same fasta file? I'm afraid I cannot post the actual code I'm using at this point.
from pyfastx.
Related Issues (20)
- UnicodeDecodeError: 'utf-8' codec can't decode bytes in position HOT 4
- Does current pyfastx support py2.7 version? HOT 2
- [Feature Request] Get barcodes from Fastx function HOT 1
- Import Error HOT 3
- Fastx parser vs Fasta/Fastq parsers HOT 2
- Unable to index gzipped fasta file by name: KeyError: 'chrY does not exist in fasta file' HOT 1
- SystemError: <class 'Fasta'> returned a result with an error set; on loading gzipped fasta HOT 2
- Support Python 3.11 on conda? HOT 3
- Unicode error reading large fastq with index? HOT 2
- Cannot read input file with Chinese text in filename HOT 2
- Segmentation fault using .composition on each contig HOT 2
- How to get antisense sequence from any strings ? HOT 1
- Memory leak in Fastq read (probalby .quali) HOT 2
- Pointer being freed was not allocated error with `memory_index=True` HOT 2
- Full Fasta info object without index building HOT 1
- Building/installing `pyfastx` from source is not possible due to zlib upgrade
- Pyfastx.read.raw mangling reads HOT 8
- Making invalid slices return an empty string instead of None HOT 1
- Sequence compostion HOT 2
- read.seq end with read.name when using pyfastx.Fastq in parsing long read FASTQ file HOT 4
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 pyfastx.