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 Type
    Method
    Description
    getName(boolean forFile)
    Retrieves the name of the sequence generator.
    getSequence(String sampleIdentifier)
    Generates a sequence based on the provided sample identifier.
  • Method Details

    • getSequence

      String getSequence(String sampleIdentifier) throws MusialException
      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

      String getName(boolean forFile)
      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.