Start here
  • InstallationAdd Nelumbo to a shadcn project
  • ThemingBrand accent, neutrals, dynamic color
  • Biology componentsSequences, maps, plates and trees
  • katalyx.bio

    Amino Acid

    Protein residues as colored tiles, a protein as blocks of them, and substitutions such as R175H. The default scheme groups residues by side chain on Nelumbo's palette hues; Clustal X, Zappo, Taylor and the others are redrawn at the same even lightness.

    Install

    npx shadcn@latest add @nelumbo/amino-acid

    The twenty

    Grouped by side chain, the way the default scheme colors them. Each tile is named on hover.

    Aliphatic
    AVLIM
    Aromatic
    FWY
    Positive
    KRH
    Negative
    DE
    Polar
    STNQ
    Glycine and proline
    GP
    Cysteine
    C
    Stop, unknown, gap
    *X-

    Notation

    notation="three" shows Trp instead of W. The tile widens; the colors stay.

    MEEPQ
    SDPSV
    MetGluGluProGln
    SerAspProSerVal

    Color schemes

    Charge is Nelumbo's own, for reading surfaces: only what carries a charge is colored. Hydrophobicity's strength follows the value. The rest take their schemes' hues at Nelumbo's lightness.

    Nelumbo

    By side chain, on the palette's hues

    ACDEFGHIKL
    MNPQRSTVWY

    Charge

    Only charged residues colored: positive blue, negative red

    ACDEFGHIKL
    MNPQRSTVWY

    Hydrophobicity

    Kyte and Doolittle: blue water-loving, amber oily

    ACDEFGHIKL
    MNPQRSTVWY

    Clustal X

    Clustal X's groups and hues

    ACDEFGHIKL
    MNPQRSTVWY

    Zappo

    Seven physicochemical groups

    ACDEFGHIKL
    MNPQRSTVWY

    Taylor

    A hue for each, kin residues in kin hues

    ACDEFGHIKL
    MNPQRSTVWY

    Color-blind safe

    By kind, in Okabe and Ito's set

    ACDEFGHIKL
    MNPQRSTVWY

    None

    Neutral tiles

    ACDEFGHIKL
    MNPQRSTVWY

    Spacers and positions

    groupSize puts a spacer every n residues, and blocks wrap as a whole. ruler numbers them: "top" puts the first position above each block, "inline" puts the last position in the spacer, as sequence listings print it.

    Spacer
    Positions
    MEEPQSDPSV
    EPPLSQETFS
    DLWKLLPENN
    VLSPLPSQAM
    DDLMLSPDDI
    EQWFTEDPGP
    DEAPRMPEAA
    PPVAPAPAAP

    Highlight

    Residues 18 to 26 of p53, the stretch that binds MDM2, brought forward from the transactivation domain.

    MEEPQSDPSV
    EPPLSQETFS
    DLWKLLPENN
    VLSPLPSQAM
    DDLMLSPDDI
    EQWFTEDPGP

    Selection

    One keyboard stop, like a chart: drag or Shift-click, arrows and Shift, Escape to clear. The readout names the residue under the pointer or sums up the selection.

    9residues, Residues 18 to 26
    Net charge 0, mean hydropathy 0.5
    MEEPQSDPSV
    EPPLSQETFS
    DLWKLLPENN
    VLSPLPSQAM
    DDLMLSPDDI
    EQWFTEDPGP
    DEAPRMPEAA
    PPVAPAPAAP
    TPAAPAPAPS
    WPLSSSVPSQ
    KTYQGSYGFR
    LGFLHSGTAK

    Mutations

    AminoAcidChange is one connected shape: the residue it was, a wider neutral segment with the position, and the residue it became. It is announced as one phrase (Arginine 175 to Histidine) and titled in HGVS (p.Arg175His).

    Missense
    R175HR248QR273HY220CG245S
    Nonsense, synonymous
    R213*P72P
    Three letters
    Arg175HisTyr220Cys
    Sizes
    R175HR175HR175H

    Building blocks

    Residue is the tile both components are made of: give it any hue for your own scheme.

    NELUMBOLOTUS

    Props

    PropTypeDefaultNotes
    AminoAcid residuestringOne letter ("W") or three ("Trp"). * is a stop, X unknown, - a gap.
    schemeAminoAcidScheme"nelumbo"nelumbo, charge, hydrophobicity, clustal, zappo, taylor, okabe-ito, none.
    notation"one" | "three""one"
    variant / sizeas Nucleotide"tonal" / "default"
    ProteinSequence sequencestringPlus every NucleotideSequence prop except complement.
    groupSizenumber10A spacer every n residues. 0 for none.
    rulerboolean | "top" | "inline"falsetrue or top: first position above each block. inline: last position in the spacer.
    AminoAcidChange from, to, positionstring, string, numberto may be "*" (stop) or "=" (synonymous). Announced as one phrase, titled in HGVS.
    AminoAcidChange notation / size"one" | "three", ResidueSize"one", "default"
    Residue tone{ hue, chroma?, shade? } | nullOKLCH hue; chroma 0 to 1; shade -1 to 1. null is neutral.
    DataAMINO_ACIDS, AMINO_ACID_KINDS, HYDROPATHY, fromThree, aminoAcidToneNames, three-letter codes, kinds and Kyte-Doolittle values.