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 hashes)
Built Distribution
Close
Hashes for cdhit_reader-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db488d3f3efd8c7218793ba97d0ee6119b71a25352afc5c7b4613d580bf87b3f |
|
MD5 | e3559586a9c8ada16b7389950084b8c9 |
|
BLAKE2b-256 | 3f5e59ee085d0e713e0f3774438cc4e16cee88a2b1079e434d511fefa5211602 |