Package op
Interface SequenceGenerator
- All Known Implementing Classes:
AminoacidSequenceGenerator
,NucleotideSequenceGenerator
public interface SequenceGenerator
Interface for generating sequences based on a sample identifier.
-
Method Summary
Modifier and TypeMethodDescriptiongetName
(boolean forFile) Retrieves the name of the sequence generator.getSequence
(String sampleIdentifier) Generates a sequence based on the provided sample identifier.
-
Method Details
-
getSequence
Generates a sequence based on the provided sample identifier.- Parameters:
sampleIdentifier
- the identifier for the sample- Returns:
- the generated sequence as a String
- Throws:
MusialException
- If an error occurs during sequence generation
-
getName
Retrieves the name of the sequence generator.- Parameters:
forFile
- true to return a file-friendly name, false for the standard name.- Returns:
- the name of the sequence generator.
-