CD-HIT cluster parser
Project description
cdhit-parser
CD-HIT file reader.
Examples
Basic usage
input = "cluster.fa.clstr"
for cluster in read_cdhit(input):
print(f"{cluster.name} refSequence={cluster.refname} size={len(cluster)}")
for member in cluster.sequences:
print(f" {member.name} ({member.length}) identity={member.identity}% {'(Reference sequence)' if member.is_ref else ''}")
Load all clusters in to a list:
# Load all clusters to a list
clusters = read_cdhit(input).read_items()
Install
pip install cdhit-reader
Author
License
This project is licensed under the MIT License.
Acknowledgments
This module was based on fasta_reader by Danilo Horta
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cdhit-reader-0.0.5.tar.gz
(8.2 kB
view details)
Built Distribution
File details
Details for the file cdhit-reader-0.0.5.tar.gz
.
File metadata
- Download URL: cdhit-reader-0.0.5.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c3a02b8e13201810da573702a29ba66a35baeb5fe9f19e8207c85f326697cd4 |
|
MD5 | 1e931771f579cb31f853fab860bc4396 |
|
BLAKE2b-256 | e616b4f5009e8ac71ae5870a9170d8c05874ededdfbb1572bfee4987db610212 |
File details
Details for the file cdhit_reader-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: cdhit_reader-0.0.5-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da9fe1d0f77bede694dbb891c7daacc605e98e36826eeb388d0d7404508b6cf2 |
|
MD5 | b608a94b2a1d37c05de7b009a0eee3c9 |
|
BLAKE2b-256 | a2f4bf9720fc9d9459f93fce7ebb96c53e7ab77b9fbb91152cac489382203c12 |