Help

About · Example · Input and limits · Your job · Output files · pHMM plot · Alignment viewer · Privacy and citation

Purpose

The server aligns large families of homologous protein sequences with learnMSA, a deep learning based tool that trains profile hidden Markov models (pHMMs) on all input sequences and aligns every sequence to a selected model, which implicitly aligns all sequences to each other. No guide tree is needed or used, and runtime grows linearly with the number of sequences, so learnMSA handles families of hundreds of thousands to millions of sequences (up to file size limits, see Input and limits). Besides the alignment, you get a pHMM plot.

The server attempts to run your alignments on a GPU cluster. The jobs themselves are generally fast, but your job might need to wait in the queue. Consider running on CPU when your sequences are short. For automated or pipeline use, install learnMSA locally (github.com/Gaius-Augustus/learnMSA).

Try the example

To view an example job output (Kunitz/BPTI domains, 2266 sequences), click on view learnmSA result on the submission page.

Input and limits

Paste unaligned protein sequences in FASTA format (up to 5 MB) or upload a FASTA file (up to 700 MB, optionally gzip-compressed). Gaps in already aligned input are ignored. The server only aligns proteins. Nucleotide sequences are rejected. Further, your input data must meet:

  • at least 100 different sequences; more than 500 are recommended (this is needed to learn an accuracy model from your data)
  • at most 3,000,000 sequences, each at most 50,000 characters long
  • a median sequence length between 10 and 5,000 residues
  • we might reject your inputs at submission if they are very likely to exceed the maximum job runtime of 24 hours. This should almost never matter (for reference, aligning 3 million sequences of average length 167 takes about 3.5 hours).
  • for more than 100,000 sequences, insertions are not aligned. learnMSA normally aligns long insertions and the sequence ends outside the model with FAMSA, which would dominate the runtime of very large families. The match columns (upper case in A2M) are not affected. The lower case residues of an insertion are simply written left-justified after the preceding match column (before the first match column: right-justified), without aligning them to the insertions of other sequences.

Structures (optional): select PDB or mmCIF files (.pdb, .ent, .cif, .mmcif, uncompressed), several at once, or a folder of them packed as a .tar.gz archive (tar czf structures.tar.gz folder/); other files in the archive are ignored. learnMSA converts them to 3Di structure states with Foldseek and trains the pHMM on the amino acids and the 3Di states together. Each file has to be named after the identifier of its sequence (the header up to the first space), e.g. P69905.pdb for >P69905 Hemoglobin alpha; for a file with several chains, the sequences are named <file name>_<chain>. Structures may cover only some of the sequences: ProstT5 predicts the 3Di states of the others (as with the ProstT5 option below), whether or not that option is set. ProtT5 support is not available with structures. Without sequence input, learnMSA takes the sequences from the structures, which then needs at least 100 files. At most 1000 structure files are accepted, and sequences and structures together may not exceed 700 MB, also once unpacked.

Advanced options: "Enable ProstT5 support" predicts a 3Di structure state for every residue with the protein language model ProstT5, and learnMSA trains the pHMM on the amino acids and the 3Di states together. This is the recommended way to improve accuracy, most of all for distantly related sequences, at the cost of a longer runtime. "Enable ProtT5 support" guides the alignment with ProtT5 embeddings (learnMSA2). It is not recommended: it is slower and less accurate than ProstT5, and it cannot be combined with structures. "Use CPU only" runs the job on CPU nodes, which increases runtime of most jobs but can decrease queue time. Use CPU if you have short proteins or if GPU jobs are rejected. Both language models are much slower on CPU. "FASTA output" writes the alignment as aligned FASTA instead of A2M (see Output files).

For fewer than 100 sequences, use a classical aligner such as MAFFT or Clustal Omega.

Inputs and results are deleted 30 days after submission.

Job link

After submission your browser opens the job page. The link is the only way to your results: bookmark it. The page shows whether the job is being processed, waiting to start, finished or failed, and updates itself. If you entered an email address (optional), you get a message with the link when the job ends. A queued or running job can be cancelled on its page. Only share the link with people you trust, they will be able to access your results and cancel your jobs.

Output files

A finished job offers up to four downloads.

  • learnMSA_output_<tag>.aln: the alignment. Alignments larger than 100 MB are gzip-compressed (.aln.gz). They can not be displayed in the browser.
  • learnMSA_posteriors_<tag>.npy: how certain the model is about every residue, the posterior probability of the pHMM state the residue was aligned to (close to 1: confident, low: the residue could also belong to another state). A NumPy array (numpy.load) of 32-bit floats with one value per residue: the residues of all sequences, without gaps, one sequence after the other in the order of the alignment, so the sequence lengths split it. Only for inputs with at most 30,000,000 residues in total, and not for alignments that are too large for the viewer.
  • learnMSA_hmm_<tag>.svg: the plot of the pHMM the produced the alignment
  • learnMSA_input_<tag>.fasta: your input

The alignment is in A2M format by default, which FASTA parsers usually read as well:

  • UPPER case letters are residues in match states, the positions of the pHMM
  • - dashes are deletions, a sequence without a residue at that position
  • lower case letters are insertions between two model positions
  • . dots fill the columns where other sequences have insertions
>seq1
AC-Da.GH
>seq2
ACEDkyGH

The upper case columns and dashes form the core of the alignment, i.e. the most informative positions of the family. With "FASTA output", the file uses only upper case letters and dashes. For inputs with more than 100,000 sequences, the insertion columns are not aligned (see Input and limits).

pHMM plot

The plot shows the model learnMSA trained on your sequences. Long models are wrapped into several rows, and a dashed circle at the end of a row continues in the next row.

  • M match states M1, M2, … that correspond to the upper case columns of the alignment
  • I insert states
  • D delete states
  • L R left and right flanks (sequence before and after the domain)
  • C unannotated segment between two copies of the domain in one sequence

Arrows are transitions, labelled with their probabilities; thicker and greener arrows are more probable. "Start" gives the probabilities to begin in the left flank or directly in the model. Above each row, the sequence logo shows the amino-acid emission distribution of every match state: the taller a letter, the more probable that amino acid at this position. The small logo "ins." is the emission distribution shared by all insert states.

With the advanced options, each row gets more bands under the amino-acid logo. With ProstT5, a 3Di logo shows the emission distribution of the predicted 3Di structure states in the same way. With ProtT5, an emb heatmap shows the learned mean embedding of every match state, one column per state and one row per dimension (red for high, blue for low values).

Open the example plot

Alignment viewer

The job page shows the alignment in an interactive viewer (also available in a full window), one row per sequence; scroll sideways along the alignment.

  • Colour scheme: jobs with a posterior file open in "Posterior confidence": every residue is coloured by the posterior probability of its pHMM state, from red (0) through grey (0.5) to blue (1), so the uncertain parts of the alignment stand out in red. The scale is the same for every job. Without posteriors, A2M output colours residues in match states blue and insertions yellow (gaps stay white) and FASTA output is coloured by amino acid (Clustal). Other colour schemes can be chosen in the menu.
  • HMM states track: one letter per column above the sequences, M (match), I (insert), L or R (flanks) or C (unannotated segment).
  • Hover over a residue or dash to see its exact state in the HMM and, for a residue, the posterior probability of that state.
  • The consensus track, between the HMM states track and the sequences, makes it easier to identify the most frequent residue of a column and locate it in the HMM.
  • Confidence track: the mean posterior probability of the residues in each column, as a bar per column.
  • Occupancy track: the fraction of sequences with a residue (not a gap) in each column. Hover over a bar for the exact numbers.

The posterior colour scheme, the posterior in the tooltip and the confidence track need the posterior file, so jobs without one show the other features only. Alignments larger than 100 MB are not loaded into the viewer; download them instead. Such jobs keep only the alignment, the pHMM plot and your input, without the decoded states and posteriors the viewer would use. Open the example in the viewer

Privacy and citation

No login and no cookies. Your input and results can only be reached through your job link, and are deleted after 30 days; an email address is deleted right after the notification. See the Data Privacy Protection Declaration.

If you use results of this server, please cite learnMSA (see the submission page for the references).