Interface SequenceFileUtilities

  • All Known Implementing Classes:
    BioJavaSequenceFileUtilitiesImpl

    public interface SequenceFileUtilities
    Utility class for executing common functions on sequence files
    • Method Detail

      • countSequenceFileLengthInBases

        java.lang.Long countSequenceFileLengthInBases​(java.nio.file.Path file)
                                               throws UnsupportedReferenceFileContentError
        Calculate the length of a sequence file in bases
        Parameters:
        file - The reference file object to calculate
        Returns:
        The number of bases in the file
        Throws:
        UnsupportedReferenceFileContentError - When the file content is *not* DNA (ambiguous IUPAC bases, protein, etc.)