public class SeqUtil extends Object
Constructor and Description |
---|
SeqUtil() |
Modifier and Type | Method and Description |
---|---|
static SeqLocation |
flipStrandSeqLocation(SeqLocation inSeqLoc,
int inNucleotideSeqLength)
Creates a new SeqLocation that is relative to the opposite strand.
|
static String |
getReverseComplementSequence(String inNucleicAcidSeq) |
static BioSequenceType |
guessBioSequenceType(String inSequence)
Guesses the BioSequenceType for the specified sequence.
|
static <T extends BioSequence> |
unique(Collection<T> inSequences)
Retains only a single copy of each distinct sequence.
|
public SeqUtil()
public static <T extends BioSequence> Collection<T> unique(Collection<T> inSequences)
T
- BioSequence-implementing classinSequences
- the collection of (potentially redundant) input sequencespublic static BioSequenceType guessBioSequenceType(String inSequence)
inSequence
- the sequence to guess the sequence type frompublic static String getReverseComplementSequence(String inNucleicAcidSeq)
public static SeqLocation flipStrandSeqLocation(SeqLocation inSeqLoc, int inNucleotideSeqLength)
inSeqLoc
- the initial sequence locationinNucleotideSeqLength
- the length of the nucleotide sequence containing the location
jataylor@hairyfatguy.com