uiz Space

January 2025 term · Algorithmic Thinking in Bioinformatics · BSBT4001

Algorithmic Thinking in Bioinformatics Quiz 1: 23 February 2025 (January 2025 term)

The IIT Madras BS Algorithmic Thinking in Bioinformatics (Algorithmic Thinking in Bioinformatics) Quiz 1 paper sat on 23 Feb 2025, in the January 2025 term: 16 questions for 50 marks in 120 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
16
Marks
50
Duration
120 min
MCQ
3
Numerical
10
MSQ
2
Written
1

Updated

Official paper: IIT M DEGREE AN EXAM QDB2 23 Feb 2025 · No negative marking.

Question 1

+3 marksOne correct option

Given below is the algorithm to print the longest common subsequence between the ii-prefix of vv and the jj-prefix of ww. The matrix Backtrack\mathit{Backtrack} stores the directions along which the algorithm should perform the backtracking operation in the form of arrows. Fill the given blanks to complete the algorithm.

text
OUTPUTLCS(Backtrack, v, i, j)
if i = 0 or j = 0
return
if Backtrack_{i,j} = ↓
OUTPUTLCS([ I ])
else if Backtrack_{i,j} = →
OUTPUTLCS([ II ])
else
OUTPUTLCS([ III ])
output v_i
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • B

Question 2

+3 marksNumerical answer

Calculate the optimal global alignment score for the DNA sequences GAATTC and GATTA. Scoring is done as follows:
• For every match: +2 points
• For every mismatch: -1 points
• For every insertion or deletion: -2 points

Show answer

Correct answer: 5

Question 3

+3 marksNumerical answer
Show answer

Correct answer: 5

Question 4

+4 marksNumerical answer
Show answer

Correct answer: 50

Question 5

+5 marksNumerical answer

You are analyzing a dataset of N=100N = 100 protein-protein interaction (PPI) samples. Each interaction is represented by 3 numerical features: X=[X(1),X(2),X(3)]X = [X^{(1)}, X^{(2)}, X^{(3)}], where X(1),X(2),X(3)∈RX^{(1)}, X^{(2)}, X^{(3)} \in \mathbb{R}. The binary target variable yy represents whether an interaction occurs (y=1y = 1) or not (y=0y = 0).

You aim to train a logistic regression model with L2 regularization (ridge regression) to predict interactions based on these features. The regularized cost function, J(θ)J(\theta), is defined as:

J(θ)=J′(θ)+λ∑i=13θi2J(\theta) = J'(\theta) + \lambda \sum_{i=1}^{3} \theta_i^2

where, J′(θ)J'(\theta) is the cross entropy loss as seen in lecture videos.

J(θ)J(\theta) penalizes large weights to avoid overfitting using the following settings:

  • Regularization strength λ=0.1\lambda = 0.1
  • Initial parameters: θ0=0.5, θ1=−0.5, θ2=0.3, θ3=−0.2\theta_0 = 0.5,\ \theta_1 = -0.5,\ \theta_2 = 0.3,\ \theta_3 = -0.2
  • Learning rate: α=0.01\alpha = 0.01

Compute the regularized cost function J(θ)J(\theta), for a single protein interaction sample xuv=[2,3,1]x_{uv} = [2, 3, 1] with target yuv=1y_{uv} = 1.

Note: Use λ/2m\lambda/2m as the constant in regularization term of the cost function, where mm is the batch size.

Show answer

Correct answer: 0.6325 (accepted within ±0.0075)

Question 6

+3 marksOne or more correct options

The figure below shows the genetic code describing the translation of an RNA codon into one of the twenty different amino acids. Use the figure below to answer the given subquestions.

A protein “X” has only three amino acids – “Serine”, “Leucine” and “Valine” in the same order. Which of the following RNA strings translate into the protein “X”?

Select all that apply.

  1. A

    CUC AGUGU A

  2. B

    CUUUUGAGCGUUGUU

  3. C

    AGUCUCGU A

  4. D

    UC AUU AGUG

  5. E

    UCGUUGGUU

Show answer

Correct answers

  • C

    AGUCUCGU A

  • D

    UC AUU AGUG

  • E

    UCGUUGGUU

Question 7

+3 marksNumerical answer

The figure below shows the genetic code describing the translation of an RNA codon into one of the twenty different amino acids. Use the figure below to answer the given subquestions.

What is the probability that a random RNA sequence of length 3 encodes for the “Arginine” amino acid? Assume that the different positions of the 3-mer RNA sequence are set to a nucleotide independently and uniformly at random.

Show answer

Correct answer: 0.09495 (accepted within ±0.00495)

Question 8

+3 marksNumerical answer

The figure below shows the genetic code describing the translation of an RNA codon into one of the twenty different amino acids. Use the figure below to answer the given subquestions.

Suppose protein X consists of 3 amino acids. What is the maximum number of possible mRNA sequences that can generate the protein X?

Show answer

Correct answer: 216

Question 9

+3 marksNumerical answer

Consider the following cell signaling network and answer the given subquestions with respect to the same. Please note that the weight we written next to each edge e is the probability of (information flow through) this edge, and that the probability (or score) of a path is calculated under the assumption that the information flow through different edges are independent of each other.

Show answer

Correct answer: 180

Question 10

+3 marksOne correct option

Consider the following cell signaling network and answer the given subquestions with respect to the same. Please note that the weight we written next to each edge e is the probability of (information flow through) this edge, and that the probability (or score) of a path is calculated under the assumption that the information flow through different edges are independent of each other.

  1. A

    YES

  2. B

    NO

Show answer

Correct answer

  • A

    YES

Question 11

+3 marksNumerical answer

Consider the following cell signaling network and answer the given subquestions with respect to the same. Please note that the weight we written next to each edge e is the probability of (information flow through) this edge, and that the probability (or score) of a path is calculated under the assumption that the information flow through different edges are independent of each other.

In a random coloring of the path Ra, X1, Y1, Z1, G1 using 6 colors, what is the probability that this path is colorful? (Random coloring refers to coloring each node in the graph with one of the 6 colors uniformly and independently at random.)

Show answer

Correct answer: 0.09495 (accepted within ±0.00495)

Question 12

+3 marksOne or more correct options

Answer the given subquestions about the graphs given below regarding overlap and de Bruijn graphs. Recall that the Hamiltonian path approach is used in an overlap graph and the Eulerian path approach is used in the de Bruijn graph for the genome assembly problem.
(Hint: Be careful with the direction of the arrows.)

Which of the given graphs can be the overlap graph representing all k-mers of a string representing some linear (non-circular) genome?

Select all that apply.

  1. A

    Graph 1

  2. B

    Graph 2

  3. C

    Graph 3

Show answer

Correct answers

  • A

    Graph 1

  • B

    Graph 2

Question 13

+3 marksOne correct option

Answer the given subquestions about the graphs given below regarding overlap and de Bruijn graphs. Recall that the Hamiltonian path approach is used in an overlap graph and the Eulerian path approach is used in the de Bruijn graph for the genome assembly problem.
(Hint: Be careful with the direction of the arrows.)

Which of the given graphs can be the de Bruijn graph representing all k-mers of a string representing some linear (non-circular) genome?

  1. A

    Graph 1

  2. B

    Graph 2

  3. C

    Graph 3

Show answer

Correct answer

  • C

    Graph 3

Question 14

+2 marksNumerical answer

Consider the following two global alignments for the two input DNA sequences: v=GTTACTAGv = GTTACTAG and w=GGACTTACGw = GGACTTACG and answer the given subquestions with respect to the same.

-G--TTACTAG
GGACTTAC--G

(a) Alignment 1

G---TTACTAG
GGACTTAC--G

(b) Alignment 2

Also consider the following score matrix (S).

1st String \ 2nd StringACGT-
A1-3-5-1-3
C-41-3-2-3
G-9-71-1-3
T-3-5-81-4
--4-2-2-1

Table 2: Score Matrix S

Show answer

Correct answer: 0

Question 15

+2 marksNumerical answer

Consider the following two global alignments for the two input DNA sequences: v=GTTACTAGv = GTTACTAG and w=GGACTTACGw = GGACTTACG and answer the given subquestions with respect to the same.

-G--TTACTAG
GGACTTAC--G

(a) Alignment 1

G---TTACTAG
GGACTTAC--G

(b) Alignment 2

Also consider the following score matrix (S).

1st String \ 2nd StringACGT-
A1-3-5-1-3
C-41-3-2-3
G-9-71-1-3
T-3-5-81-4
--4-2-2-1

Table 2: Score Matrix S

Suppose we compute the score using the score matrix (S). What is the difference in the alignment score for the two global alignments? Enter the value as a single integer.

Show answer

Correct answer: 0

Question 16

+4 marksWritten answer

Consider the following two global alignments for the two input DNA sequences: v=GTTACTAGv = GTTACTAG and w=GGACTTACGw = GGACTTACG and answer the given subquestions with respect to the same.

-G--TTACTAG
GGACTTAC--G

(a) Alignment 1

G---TTACTAG
GGACTTAC--G

(b) Alignment 2

Also consider the following score matrix (S).

1st String \ 2nd StringACGT-
A1-3-5-1-3
C-41-3-2-3
G-9-71-1-3
T-3-5-81-4
--4-2-2-1

Table 2: Score Matrix S

Suppose the score is calculated as follows:

score=#matches−2×#mismatches+total gap penalty\mathit{score} = \#\mathit{matches} - 2 \times \#\mathit{mismatches} + \mathit{total\ gap\ penalty}

For every gap of length kk, the gap penalty is calculated as σ−(k−1)\sigma - (k-1), where the gap opening penalty σ\sigma is computed from the score matrix SS given in Table 2. The total gap penalty is the sum of the gap penalties for every gap.

What is the difference in the alignment score?

Enter the value as a single integer.

Show answer

Correct answer: 3 or -3