Clustering Parser

Usage

The clustering parser provides a simple python iterator:

import spectra_cluster.clustering_parser as clustering_parser

clustering_file = "test.clustering"
parser = clustering_parser.ClusteringParser(clustering_file)

for cluster in parser:
     # do something with the cluster
     pass

Class Definition

class spectra_cluster.clustering_parser.ClusteringParser(clustering_file)

Parses .clustering output files created by the spectra-cluster applications.

__init__(clustering_file)

Processes the passed .clustering file

Parameters:clustering_file – Path to the file to process
Returns: