Closed sbliven closed 8 years ago
It took me quite a while to figure out how to make a MSA based on a string in javascript. You might consider adding an example of this to the documentation.
Oh I am sorry, there's even a cleaner way to do this, by using msa.io.fasta.parse(<string>)
which yields a sequence object.
var fasta = ">seq1\n\
ACTG\n\
>seq2\n\
ACGG\n";
var opts = {
el: document.getElementById("msa"),
seqs: msa.io.fasta.parse(fasta),
vis: {
conserv: false,
overviewbox: false
}
};
var m = msa(opts);
m.render();
I will definitely update the docs now :)
I will definitely update the docs now :)
-> #209
Thanks, that's very helpful.
It took me quite a while to figure out how to make a MSA based on a string in javascript. You might consider adding an example of this to the documentation.
jsbin