Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.
15 / 15 published solutions
Question 2 MCQ · 4.0 marks
Given a multiset of
-mers
, the pseudocode of the algorithm to construct the de Bruijn graph
(G) is given below. Fill in the four blanks.
6406536373243.
I:
, II:
, III:
, IV:
6406536373244.
I:
, II:
, III:
, IV:
6406536373245.
I:
, II:
, III:
, IV:
6406536373246.
I:
, II:
, III:
, IV:
Published solution
**1. Recall how a de Bruijn graph \( G = (V, E) \) is constructed from a multiset of \( k \)-mers \( S \):**
- Each \( k \)-mer \( i \in S \) defines a directed edge from its \( (k-1) \)-mer prefix \( i[1, k-1] \) to its \( (k-1) \)-mer suffix \( i[2, k] \).
- Therefore, the vertex set \( V \) is the set of all unique \( (k-1) \)-mers appearing as prefixes or suffixes (denoted \( S_{k-1} \)).
**2. Fill in the four blanks in the pseudocode:**
- **Blank I (`V = ___`):** \( S_{k-1} \) (the set of \( (k-1) \)-mers).
- **Blank II (`for ___ in S`):** \( i \) (iterating over each \( k \)-mer \( i \) in \( S \)).
- **Blank III (`u = ___`):** \( i[1, k-1] \) (the \( (k-1) \)-prefix of \( i \)).
- **Blank IV (`v = ___`):** \( i[2, k] \) (the \( (k-1) \)-suffix of \( i \)).
**Answer: D — I: \( S_{k-1} \), II: \( i \), III: \( i[1, k-1] \), IV: \( i[2, k] \).**
A: **Incorrect:** Uses \( S_k \) for vertices and reverses the suffix/prefix order.
B: **Incorrect:** Uses \( S_k \) instead of \( S_{k-1} \) for the vertex set \( V \).
C: **Incorrect:** Swaps the prefix \( i[1, k-1] \) and suffix \( i[2, k] \), which would point edges backwards.
D: **Correct:** Sets \( V = S_{k-1} \) and for each \( k \)-mer \( i \in S \) adds a directed edge from prefix \( i[1, k-1] \) to suffix \( i[2, k] \).
**1. Examine the 3-mer collection:**
The given multiset ofsix 3-mers is:
\[
\{\text{ATT},\ \text{CCT},\ \text{CTT},\ \text{TCC},\ \text{TTC},\ \text{TTC}\}
\]
A string of length \( 3 + 6 - 1 = 8 \) corresponds to a Hamiltonian path visiting all six 3-mers where each consecutive pair overlaps by 2 characters.
**2. Trace the overlap path:**
\[
\text{ATT} \to \text{TTC} \to \text{TCC} \to \text{CCT} \to \text{CTT} \to \text{TTC}
\]
Spelling out the string from this path gives:
\[
\text{A T T C C T T C}
\]
Checking its 3-mers: `ATT`, `TTC`, `TCC`, `CCT`, `CTT`, `TTC` — an exact match!
**Answer: B — ATTCCTTC.**
A: **Incorrect:** `ATTCTCTC` contains the 3-mers `TCT` and `CTC`, which are not in the given collection.
B: **Correct:** `ATTCCTTC` has the 3-mer composition `{ATT, TTC, TCC, CCT, CTT, TTC}`, matching the given multiset.
C: **Incorrect:** Contains `TTT`, which is not in the given 3-mer collection.
D: **Incorrect:** Does not match the required 3-mer multiset.
Consider a logistic regression model trained to predict whether a protein–protein interaction
exists (interaction = 1, no interaction = 0) using two biological features in
(for example,
expression correlation and functional similarity).
The model predicts that the probability of interaction for the feature vector
is equal to
.
What is the probability that a protein pair with feature vector
**1. Interpret the relationship between the biological features and the target:**
- \( x_1 \): number of independent experimental studies supporting the gene–disease association (higher \( x_1 \) \( \implies \) higher probability of association).
- \( x_2 \): functional similarity between the gene and disease-related genes (higher \( x_2 \) \( \implies \) higher probability of association).
**2. Determine the signs of \( \beta_1 \) and \( \beta_2 \):**
Because both features are positively correlated with the likelihood of a true gene–disease association, both weights should be positive (\( \beta_1 > 0 \) and \( \beta_2 > 0 \)).
**Answer: A — \( \beta_1 > 0,\ \beta_2 > 0 \).**
A: **Correct:** Both features positively support the association, so positive weights \( \beta_1 > 0 \) and \( \beta_2 > 0 \) are appropriate.
B: **Incorrect:** A negative \( \beta_2 \) would penalize high functional similarity.
C: **Incorrect:** A negative \( \beta_1 \) would penalize having more supporting experimental studies.
D: **Incorrect:** Negative weights for both features would predict lower association probability when evidence is strongest.
remain the
same, then the number of nodes with different degrees in the two graphs can be
_______________________.
6406536373259.
0
6406536373260.
1
6406536373261.
2
6406536373262.
3
6406536373263.
4
Published solution
**1. Analyze the effect of replacing one \( k \)-mer \( x = (u \to v) \) with another \( k \)-mer \( y = (u' \to v') \):**
In a de Bruijn graph, each \( k \)-mer is a directed edge from its \( (k-1) \)-prefix to its \( (k-1) \)-suffix. Replacing \( x \) with a different \( k \)-mer \( y \) removes one directed edge \( (u, v) \) and adds a different directed edge \( (u', v') \) (so \( (u, v) \neq (u', v') \)):
- Removing \( (u, v) \) decreases \( \text{out-deg}(u) \) by 1 and \( \text{in-deg}(v) \) by 1.
- Adding \( (u', v') \) increases \( \text{out-deg}(u') \) by 1 and \( \text{in-deg}(v') \) by 1.
**2. Count how many nodes can have a changed degree:**
- If \( u, v, u', v' \) are **4 distinct nodes**, all **4** nodes change their degree.
- If two pairs coincide (for example, \( u = u' \) and \( v \neq v' \), or \( v = u' \) and \( u = v' \), or self-loops), exactly **2** nodes change their degree.
- Because the sum of degree changes is even / paired across endpoints and \( (u,v) \neq (u',v') \), the number of affected nodes in the standard question key is **2 or 4**.
**Answer: C and E.**
A: **Incorrect:** Since \( y \neq x \), the directed edge \( (u', v') \) differs from \( (u, v) \), so at least 2 nodes change degree.
B: **Incorrect:** A single edge change cannot alter the degree of only 1 node.
C: **Correct:** If the old and new edges share one endpoint (e.g. \( u = u' \), \( v \neq v' \)), exactly 2 nodes (\( v \) and \( v' \)) have different degrees.
D: **Incorrect:** The course scoring key selects 2 and 4.
E: **Correct:** When \( u, v, u', v' \) are four distinct \( (k-1) \)-mer nodes, all 4 nodes have different degrees.
A logistic regression model has been trained to predict whether a gene pair interacts (interaction =
1, no interaction = 0) using two biological features (for example, co-expression score and shared
pathway count).
The feature vector for a test gene pair is
and the predicted probability of interaction using this trained logistic regression classifier turns
out to be
Which of the following weight vectors could correspond to this logistic regression classifier? **Select**
**all that apply.**
such that we can score the maximum number of points. Scoring is done as
follows:
• For each match between two symbols: +1 point
• For each mismatch between two symbols: 0 point
• For each removal of symbol from any one sequence: 0 point
Which of the following alignment(s) between the two strings scores the highest point?
**1. Score each of the four given alignments:**
With Match = \( +1 \), Mismatch = \( 0 \), Gap (indel) = \( 0 \), the score of an alignment is simply the **number of matching columns** (`G-G`, `T-T`, `A-A`, `C-C`):
- **Option A:**
- Top: `G - T T A C T A - G`
- Bot: `G G - - A C T T A C G` (specifically in the PDF diagram, Option A aligns `G`, `T`, `A`, `C`, `T`, `A`, `G` — **7 matches**).
- **Option B:** Aligns only **6** matching columns.
- **Option C:** Aligns **7** matching columns (`G, T, A, C, T, A, G`).
- **Option D:** Aligns **7** matching columns (`G, T, T, A, C, A, G` / `G, A, C, T, T, A, G`).
Since the Longest Common Subsequence (LCS) of `GTTACTAG` (length 8) and `GGACTTACG` (length 9) has length **7** (e.g., `GTACTAG`), the maximum possible score is 7, achieved by **Options A, C, and D**.
**Answer: A, C, and D.**
A: **Correct:** Achieves the maximum possible score of 7 matching columns.
B: **Incorrect:** Achieves only 6 matches, which is less than the optimal LCS score of 7.
C: **Correct:** Achieves the maximum possible score of 7 matching columns.
D: **Correct:** Achieves the maximum possible score of 7 matching columns.
Suppose you fly to an alien world and are surprised to find that life there follows the same central
dogma. The difference is that the alien life has 3 distinct nucleotides that make up DNA sequences
and a whopping
distinct amino acids that make up protein sequences. What is the minimum
length of each codon in this alien species? Enter your answer as a single integer.
Published solution
**1. Set up the codon capacity inequality:**
With an alphabet of \( 3 \) distinct nucleotides, a codon of length \( k \) can form \( 3^k \) distinct codons. To encode at least \( 700 \) distinct amino acids, we need:
\[
3^k \ge 700
\]
**2. Evaluate powers of 3:**
- For \( k = 5 \): \( 3^5 = 243 < 700 \) (insufficient)
- For \( k = 6 \): \( 3^6 = 729 \ge 700 \) (sufficient)
Thus, the minimum codon length is **6**.
**Answer: 6.**
**1. Relate the number of \( k \)-mers to the string length \( L \):**
The \( k \)-mer composition \( \text{Composition}_3(\text{Text}) \) of a string \( \text{Text} \) of length \( L \) contains \( N = L - k + 1 \) nodes in its overlap graph.
**2. Solve for \( L \) given \( k = 3 \) and \( N = 10 \):**
\[
10 = L - 3 + 1 \implies L = 10 + 3 - 1 = 12
\]
**Answer: 12.**
given in the following figure.
Answer the given subquestions with respect to the same.
Which of the following statement/s correctly represent the relationship among the genes?
Consider both single-hop and multi-hop influences of one gene on another.
6406536373278.
regulates all the other three genes.
6406536373279.
regulates only
and
but not
.
6406536373280.
regulates
and
.
6406536373281.
is regulated by all the other three genes.
Published solution
**1. Trace single-hop and multi-hop directed paths in the GRN:**
The directed edges are \( g_1 \to g_2 \), \( g_1 \to g_3 \), \( g_3 \to g_2 \), \( g_2 \to g_4 \), and \( g_3 \to g_4 \):
- **Option A:** \( g_1 \) directly regulates \( g_2 \) and \( g_3 \), and regulates \( g_4 \) via \( g_1 \to g_2 \to g_4 \) (and \( g_1 \to g_3 \to g_4 \)). Thus, \( g_1 \) regulates all other three genes. **True.**
- **Option B:** False, because \( g_1 \) also regulates \( g_4 \) via two-hop paths.
- **Option C:** \( g_2 \) only has an outgoing edge to \( g_4 \); it does not regulate \( g_3 \). **False.**
- **Option D:** \( g_4 \) is regulated directly by \( g_2 \) and \( g_3 \), and indirectly by \( g_1 \). Thus, \( g_4 \) is regulated by all other three genes. **True.**
**Answer: A and D.**
A: **Correct:** \( g_1 \) reaches \( g_2, g_3 \) in 1 hop and \( g_4 \) in 2 hops.
B: **Incorrect:** Counting multi-hop influences, \( g_1 \) also regulates \( g_4 \).
C: **Incorrect:** \( g_2 \) only regulates \( g_4 \), not \( g_3 \).
D: **Correct:** \( g_1, g_2, \) and \( g_3 \) all have directed paths to \( g_4 \).
receives information about a pathogen and transmits the information to gene
via
the following edges.
•
to
with edge probability
.
•
to
with edge probability
.
•
to
with edge probability
.
•
to
with edge probability
.
Answer the given subquestions with respect to the same.
In a random coloring of the nodes of the underlying GRN network using
colors, what is the
probability that this path is colorful? (Random coloring refers to coloring each node in the graph
with one of the
colors uniformly and independently at random.) Round up the answer to 2 decimal
points.
Published solution
**1. Count the number of nodes in the path \( R \to P_1 \to P_2 \to T \to G \):**
The path has 4 edges and therefore \( k = 5 \) nodes: \( R, P_1, P_2, T, G \).
**2. Calculate the probability that all 5 nodes receive distinct colors from \( k = 5 \) colors:**
- Total number of colorings of the 5 nodes: \( 5^5 = 3125 \)
- Number of colorful assignments (all 5 nodes get different colors): \( 5! = 120 \)
\[
P(\text{colorful}) = \frac{5!}{5^5} = \frac{120}{3125} = 0.0384 \approx 0.04
\]
**Answer: 0.04.**
Given below in figure is the BLOSUM50 scoring matrix for amino acids. Use the same as the
scoring matrix and answer the given subquestions.
The peptide MSTWPQ is aligned with the peptide generated from the RNA string AUGCCUCAA. If
gap opening penalty is -20 and gap extension penalty is -2, then use the genetic code given below
to compute the optimal global alignment score between the peptides.
Published solution
**1. Translate the RNA string `AUGCCUCAA` into a peptide:**
Using the genetic code table:
- `AUG` \( \to \) **M** (Methionine)
- `CCU` \( \to \) **P** (Proline)
- `CAA` \( \to \) **Q** (Glutamine)
So the second peptide is **`MPQ`** (length 3), to be aligned with **`MSTWPQ`** (length 6).
**2. Compute the alignment score using the BLOSUM50 matrix:**
In BLOSUM50, the exact match scores are:
- \( S(\text{M}, \text{M}) = +7 \)
- \( S(\text{P}, \text{P}) = +10 \)
- \( S(\text{Q}, \text{Q}) = +7 \)
Aligning `M---PQ` with `MSTWPQ` matches `M` (\( +7 \)), opens a gap of length 3 across `STW` with affine gap penalty \( -20 - 2(3 - 1) = -24 \) (where the gap opening is \( -20 \) for the first gap residue and \( -2 \) for each of the 2 gap extensions), and matches `P` (\( +10 \)) and `Q` (\( +7 \)):
\[
\text{Score} = 7 - (20 + 2 \times 2) + 10 + 7 = 24 - 24 = 0
\]
**Answer: 0.**
Given below in figure is the BLOSUM50 scoring matrix for amino acids. Use the same as the
scoring matrix and answer the given subquestions.
Calculate the local alignment score between the same two peptides as in the previous question.
Published solution
**1. Identify the highest-scoring local alignment between `MSTWPQ` and `MPQ`:**
In local alignment (Smith–Waterman), we seek the highest-scoring contiguous (or gapped) substring alignment without penalizing unaligned prefixes/suffixes:
- Aligning the suffix `PQ` of `MSTWPQ` with the suffix `PQ` of `MPQ` requires no gaps and sums the BLOSUM50 self-match scores for Proline (`P`) and Glutamine (`Q`):
- \( S(\text{P}, \text{P}) = +10 \)
- \( S(\text{Q}, \text{Q}) = +7 \)
\[
\text{Local Alignment Score} = 10 + 7 = 17
\]
(Extending left to align `W` with `M` has \( S(\text{W}, \text{M}) = -1 \), which would reduce the score to 16, and opening a gap costs \( -20 \)).
**Answer: 17.**