Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

Simple Java code for sequence alignment and scoring, built on top of biojava-alignment.

License

Notifications You must be signed in to change notification settings

dmyersturnbull/sequence-alignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sequence-alignment

A simple Java package for sequence alignment and scoring.

In particular, can calculate a p-value by a permutation test. Alignments of permuted sequences are calculated quickly using an aligner that only records the score (see SequenceAligner.alignFast()).

Example usage:

SequenceAligner<DnaSequence, NucleotideCompound> aligner =
	SequenceAligner.dna(Alignments.PairwiseSequenceAlignerType.GLOBAL)
	.setGapPenalty(new SimpleGapPenalty(11, 1))
	.setMatrix(SubstitutionMatrixHelper.getNuc4_4()) // the default anyway
	.build()
SequenceAlignmentWithPvalue<DnaSequence, NucleotideCompound> alignment
    = aligner.alignAndCalcPvalue(200, sequenceA, sequenceB);
    alignment.getPvalue(); // returns a double

Warning: there is currently a bug in the p-value calculations; see issue #1.

In addition, contiguous gaps are handled incorrectly; see Biojava issue #213.

The software is licensed under the Apache License, Version 2.0.

About

Simple Java code for sequence alignment and scoring, built on top of biojava-alignment.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published