extract.cluster {bios2mds}R Documentation

Extraction of clusters alignments

Description

Extracts the multiple sequence alignement of each cluster after K-means clustering.

Usage

extract.cluster(x, align)

Arguments

x

an object of class 'kmean', obtained from kmeans.run function.

align

an object of class 'align', obtained from import.fasta or import.msf function.

Details

Extraction of the MSA of each cluster.

Value

A named list of 'align' objects.

Author(s)

Jean-Michel Becu

Examples

# Clustering human GPCRs in 4 groups with 100 runs of K-means 
# and extraction of the alignment of each cluster
aln <- import.fasta(system.file("msa/human_gpcr.fa", package = "bios2mds"))
data(gpcr)
kmeans <- kmeans.run(gpcr$mmds$sapiens.active$coord, nb.clus = 4, nb.run = 100)
clusAlign <- extract.cluster(kmeans,aln)


[Package bios2mds version 1.2.3 Index]