Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Example of loading MSAViewer from a string">
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
<script src="https://cdn.bio.sh/msa/latest/msa.min.gz.js"></script>
<div id="msa">Loading Multiple Alignment...</div>
<pre style="display: none" id="fasta-file">
>seq1
ACTG
>seq2
ACGG</pre>
  
</body>
</html>
 
var fasta = document.getElementById("fasta-file").innerText;
var m = msa({
    el: document.getElementById("msa"),
    seqs: msa.io.fasta.parse(fasta)
});
m.render();
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers