biojs-io / biojs-io-clustal

Parses clustal files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

biojs-io-clustal

Build Status NPM version Dependencies Code Climate NPM downloads

npm install biojs-io-clustal

Use in your browser

Download a compiled version for browser use.

Try out in RequireBin or in Codepen.

How-to

read(url)

Parses an url an calls your parse method with the returned body.

Clustal.read("https://raw.githubusercontent.com/greenify/biojs-io-clustal/blob/master/test/p53.clustalo.clustal", function(err, model) {
	// model is the parsed url
});

If callback is undefined, read returns a promise.

Clustal.read("https://raw.githubusercontent.com/greenify/biojs-io-clustal/blob/master/test/p53.clustalo.clustal").then(function(model) {
	// model is the parsed url
}, function(err){
	console.error("err happened during downloading", err);
});

function is your async callback.

parse(str)

var seqs = Clustal.parse(str);

Sequence object

this.seq 
this.name 
this.id 

License

Apache 2

About

Parses clustal files

License:Apache License 2.0


Languages

Language:CoffeeScript 60.1%Language:JavaScript 31.4%Language:HTML 8.4%