src/SequenceDNA.java
/**
     * Returns AT content of a sement of sequence given by start and end indices
     * overloads version that takes a seq Interval instead of start and end indices
     * @param startIndex  starting index
     * @param endIndex  ending index
     * @return AT content of segment
     */
Returns AT content of a sement of sequence given by start and end indices
overloads version that takes a seq Interval instead of start and end indices
@param startIndex  starting index
@param endIndex  ending index
@return AT content of segment
Returns AT content of a sement of sequence given by start and end indices overloads version that takes a seq Interval instead of start and end indices @param startIndex starting index @param endIndex ending index @return AT content of segment
double atContent(int startIndex, int endIndex) {
        int numberAT = 0;
        for(int i = startIndex; i < endIndex + 1; i++) {
            if(sequence.charAt(i) == 'A' || sequence.charAt(i) == 'T') {
                numberAT++;
            }
        }
        return (double)numberAT/(endIndex - startIndex +1);
    }
double atContent ( int startIndex , int endIndex ) { int numberAT = 0 ; for ( int i = startIndex ; i < endIndex + 1 ; i ++ ) { if ( sequence . charAt ( i ) == 'A' || sequence . charAt ( i ) == 'T' ) { numberAT ++ ; } } return ( double ) numberAT / ( endIndex - startIndex + 1 ) ; }
Returns AT content of a sement of sequence given by start and end indices
 overloads version that takes a seq Interval instead of start and end indices
 @param startIndex  starting index
 @param endIndex  ending index
 @return AT content of segment
Returns AT content of a sement of sequence given by start and end indices overloads version that takes a seq Interval instead of start and end indices @param startIndex starting index @param endIndex ending index @return AT content of segment