Class DefaultDotBracket

    • Constructor Detail

      • DefaultDotBracket

        public DefaultDotBracket()
    • Method Detail

      • copyWithStrands

        public static DotBracket copyWithStrands​(DotBracket input,
                                                 Ct ct)
        Creates a copy of existing instance and applies the information in CT format to divide strands accordingly.
        Parameters:
        input - The input dot-bracket structure.
        ct - The CT data to take strand information from.
        Returns:
        An instance of this class.
      • fromString

        public static DefaultDotBracket fromString​(String data)
        Parses a string into an instance of this class. The string must be in format:
             >strand_name
             ACGU
             .().
         

        The first line (strand name) is optional. The three lines might appear multiple times.

        Parameters:
        data - The string to parse.
        Returns:
        An instance of this class.
      • combineStrands

        public final List<DotBracket> combineStrands()
        Description copied from interface: DotBracket
        Combines strands which share a base pair into a new dot-bracket instance and returns a list of those.
        Specified by:
        combineStrands in interface DotBracket
        Returns:
        The list of dot-bracket instances, each containing strands which only pair with each other.
      • strands

        @Auxiliary
        @Default
        public List<Strand> strands()
        Specified by:
        strands in interface DotBracket
        Returns:
        The list of strands.
      • sequence

        @Parameter(order=1)
        public abstract String sequence()
        Specified by:
        sequence in interface DotBracket
        Returns:
        The sequence of nucleotides.
      • structure

        @Parameter(order=2)
        public abstract String structure()
        Specified by:
        structure in interface DotBracket
        Returns:
        The sequence of dots and brackets representing paired and unpaired residues.
      • validate

        @Check
        protected void validate()
      • candidatesToCombine

        protected final List<List<Strand>> candidatesToCombine()