extract.cluster: Extraction of clusters alignments

Description Usage Arguments Details Value Author(s) Examples

Description

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

Usage

1
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

1
2
3
4
5
6
# 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)

bios2mds documentation built on April 14, 2020, 5:08 p.m.