public class Alignments extends Object
ConcurrencyTools
utility, ConcurrencyTools.shutdown()
or
ConcurrencyTools.shutdownAndAwaitTermination()
must be called.Modifier and Type | Class and Description |
---|---|
static class |
Alignments.PairInProfileScorerType
List of implemented sequence pair in a profile scoring routines.
|
static class |
Alignments.PairwiseSequenceAlignerType
List of implemented pairwise sequence alignment routines.
|
static class |
Alignments.PairwiseSequenceScorerType
List of implemented pairwise sequence scoring routines.
|
static class |
Alignments.ProfileProfileAlignerType
List of implemented profile-profile alignment routines.
|
static class |
Alignments.RefinerType
List of implemented profile refinement routines.
|
Modifier and Type | Method and Description |
---|---|
static <S extends Sequence<C>,C extends Compound> |
getAllPairsAlignments(List<S> sequences,
Alignments.PairwiseSequenceAlignerType type,
GapPenalty gapPenalty,
SubstitutionMatrix<C> subMatrix)
|
static <S extends Sequence<C>,C extends Compound> |
getAllPairsScorers(List<S> sequences,
Alignments.PairwiseSequenceScorerType type,
GapPenalty gapPenalty,
SubstitutionMatrix<C> subMatrix)
|
static <S extends Sequence<C>,C extends Compound> |
getAllPairsScores(List<S> sequences,
Alignments.PairwiseSequenceScorerType type,
GapPenalty gapPenalty,
SubstitutionMatrix<C> subMatrix)
|
static <S extends Sequence<C>,C extends Compound> |
getMultipleSequenceAlignment(List<S> sequences,
Object... settings)
|
static <S extends Sequence<C>,C extends Compound> |
getPairwiseAligner(S query,
S target,
Alignments.PairwiseSequenceAlignerType type,
GapPenalty gapPenalty,
SubstitutionMatrix<C> subMatrix)
Factory method which constructs a pairwise sequence aligner.
|
static <S extends Sequence<C>,C extends Compound> |
getPairwiseAlignment(S query,
S target,
Alignments.PairwiseSequenceAlignerType type,
GapPenalty gapPenalty,
SubstitutionMatrix<C> subMatrix)
Factory method which computes a sequence alignment for the given
Sequence pair. |
static <S extends Sequence<C>,C extends Compound> |
getProgressiveAlignment(GuideTree<S,C> tree,
Alignments.ProfileProfileAlignerType type,
GapPenalty gapPenalty,
SubstitutionMatrix<C> subMatrix)
Factory method to run the profile-profile alignments of a progressive multiple sequence alignment concurrently.
|
static <S extends Sequence<C>,C extends Compound> |
runPairwiseScorers(List<PairwiseSequenceScorer<S,C>> scorers)
Factory method to run a list of scorers concurrently.
|
public static <S extends Sequence<C>,C extends Compound> List<SequencePair<S,C>> getAllPairsAlignments(List<S> sequences, Alignments.PairwiseSequenceAlignerType type, GapPenalty gapPenalty, SubstitutionMatrix<C> subMatrix)
Sequence
pairs in the given List
.
This method runs the alignments in parallel by submitting all of the alignments to the shared thread pool of the
ConcurrencyTools
utility.S
- each Sequence
of an alignment pair is of type SC
- each element of an AlignedSequence
is a Compound
of type Csequences
- the List
of Sequence
s to aligntype
- chosen type from list of pairwise sequence alignment routinesgapPenalty
- the gap penalties used during alignmentsubMatrix
- the set of substitution scores used during alignmentpublic static <S extends Sequence<C>,C extends Compound> Profile<S,C> getMultipleSequenceAlignment(List<S> sequences, Object... settings)
public static <S extends Sequence<C>,C extends Compound> SequencePair<S,C> getPairwiseAlignment(S query, S target, Alignments.PairwiseSequenceAlignerType type, GapPenalty gapPenalty, SubstitutionMatrix<C> subMatrix)
Sequence
pair.S
- each Sequence
of the pair is of type SC
- each element of an AlignedSequence
is a Compound
of type Cquery
- the first Sequence
s to aligntarget
- the second Sequence
s to aligntype
- chosen type from list of pairwise sequence alignment routinesgapPenalty
- the gap penalties used during alignmentsubMatrix
- the set of substitution scores used during alignmentpublic static <S extends Sequence<C>,C extends Compound> List<PairwiseSequenceScorer<S,C>> getAllPairsScorers(List<S> sequences, Alignments.PairwiseSequenceScorerType type, GapPenalty gapPenalty, SubstitutionMatrix<C> subMatrix)
S
- each Sequence
of a pair is of type SC
- each element of a Sequence
is a Compound
of type Csequences
- the List
of Sequence
s to aligntype
- chosen type from list of pairwise sequence scoring routinesgapPenalty
- the gap penalties used during alignmentsubMatrix
- the set of substitution scores used during alignmentpublic static <S extends Sequence<C>,C extends Compound> double[] getAllPairsScores(List<S> sequences, Alignments.PairwiseSequenceScorerType type, GapPenalty gapPenalty, SubstitutionMatrix<C> subMatrix)
Sequence
pairs in the given List
.
This method runs the scorings in parallel by submitting all of the scorings to the shared thread pool of the
ConcurrencyTools
utility.S
- each Sequence
of a pair is of type SC
- each element of a Sequence
is a Compound
of type Csequences
- the List
of Sequence
s to aligntype
- chosen type from list of pairwise sequence scoring routinesgapPenalty
- the gap penalties used during alignmentsubMatrix
- the set of substitution scores used during alignmentpublic static <S extends Sequence<C>,C extends Compound> PairwiseSequenceAligner<S,C> getPairwiseAligner(S query, S target, Alignments.PairwiseSequenceAlignerType type, GapPenalty gapPenalty, SubstitutionMatrix<C> subMatrix)
S
- each Sequence
of an alignment pair is of type SC
- each element of an AlignedSequence
is a Compound
of type Cquery
- the first Sequence
to aligntarget
- the second Sequence
to aligntype
- chosen type from list of pairwise sequence alignment routinesgapPenalty
- the gap penalties used during alignmentsubMatrix
- the set of substitution scores used during alignmentpublic static <S extends Sequence<C>,C extends Compound> Profile<S,C> getProgressiveAlignment(GuideTree<S,C> tree, Alignments.ProfileProfileAlignerType type, GapPenalty gapPenalty, SubstitutionMatrix<C> subMatrix)
ConcurrencyTools
utility.S
- each Sequence
of the Profile
pair is of type SC
- each element of an AlignedSequence
is a Compound
of type Ctree
- guide tree to follow aligning profiles from leaves to roottype
- chosen type from list of profile-profile alignment routinesgapPenalty
- the gap penalties used during alignmentsubMatrix
- the set of substitution scores used during alignmentpublic static <S extends Sequence<C>,C extends Compound> double[] runPairwiseScorers(List<PairwiseSequenceScorer<S,C>> scorers)
ConcurrencyTools
utility.Copyright © 2000–2016 BioJava. All rights reserved.