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.4.tar.gz
(8.2 kB
view details)
Built Distribution
File details
Details for the file cdhit-reader-0.0.4.tar.gz
.
File metadata
- Download URL: cdhit-reader-0.0.4.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbd075bec47b2874b850004ee4fb62605a41576601152df243fa6c2161ab3df7 |
|
MD5 | e8518d746b55a3f3c4fa66dfde69aca1 |
|
BLAKE2b-256 | 454be4cc1091bdc7df1b01db88981295f1b7d125c074e282eeeab30bc6e5fec0 |
File details
Details for the file cdhit_reader-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: cdhit_reader-0.0.4-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db488d3f3efd8c7218793ba97d0ee6119b71a25352afc5c7b4613d580bf87b3f |
|
MD5 | e3559586a9c8ada16b7389950084b8c9 |
|
BLAKE2b-256 | 3f5e59ee085d0e713e0f3774438cc4e16cee88a2b1079e434d511fefa5211602 |