alignment_pca
Principal component analysis of the rows of an alignment: the pairwise similarity of every two rows under PID or a substitution matrix (BLOSUM62, PAM250 for protein; Jalview's DNA matrix for nucleotides), decomposed into eigenvectors, and each row's coordinate on the leading components, so rows that cluster sit together. Jalview's PCA, with its parameters: gap–gap and gap–residue columns counted, a gap never matching. Needs 4 rows. Wire alignedSequences from align_sequences.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | the ALIGNED rows, each {name, aligned}. Wire `alignedSequences` from align_sequences. | |
| model | No | the similarity model: PID for any alphabet, BLOSUM62 or PAM250 for protein, DNA for nucleotides. Values: PID (Percent identity), BLOSUM62 (BLOSUM62), PAM250 (PAM250), DNA (DNA). | PID |
| _files | No | The project: record references shaped like _subject. Their records become library documents a tool names in sequences/parts/document; a trace or alignment is found by file name. | |
| _subject | No | The record to act on: exactly one of sequence, accession (+source), sample (an id from list_samples) or file ({name, text} or {name, base64}); record_index picks one record of several. | |
| components | No | how many leading components to report per row. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | Yes | the model, the leading eigenvalues and their share of the total | |
| similarity | Yes | the pairwise similarity matrix the analysis decomposed, rows in alignment order | |
| coordinates | Yes | each row's coordinates on the leading components, {name, pc: [PC1, PC2, …]} | |
| eigenvalues | Yes | every eigenvalue, largest first |