ROSALIND | Ordering Strings of Varying Length Lexicographically (LEXV)
給定字符序列 $\mathscr{A}$,求由這些字符組成且長度小於等於 k 的所有字串。這些字串須依照 $\mathscr{A}$ 字典序排列。
Given: A permutation of at most 12 symbols defining an ordered alphabet $\mathscr{A}$ and a positive integer n (n≤4).
Return: All strings of length at most n formed from $\mathscr{A}$, ordered lexicographically. (Note: As in “Enumerating k-mers Lexicographically”, alphabet order is based on the order in which the symbols are given.)
ROSALIND | Enumerating k-mers Lexicographically (LEXF)
給定字符序列 $\mathscr{A}$,求由這些字符組成且長度為 k 的所有字串。這些字串須依照 $\mathscr{A}$ 字典序排列。
Given: A permutation of at most 12 symbols defining an ordered alphabet $\mathscr{A}$ and a positive integer n (n≤4).
Return: All strings of length at most n formed from $\mathscr{A}$ , ordered lexicographically. (Note: As in “Enumerating k-mers Lexicographically”, alphabet order is based on the order in which the symbols are given.)
ROSALIND|Enumerating Oriented Gene Orderings (SIGN)
給定一正整數 n,求包含數字 1 到 n 與 -1 到 -n 的所有可能數列與其總數。
A signed permutation of length n is some ordering of the positive integers {1,2,…,n} in which each integer is then provided with either a positive or negative sign (for the sake of simplicity, we omit the positive sign). For example, π=(5,−3,−2,1,4) is a signed permutation of length 5
Given: A positive integer n≤6
Return: The total number of signed permutations of length n, followed by a list of all such permutations (you may list the signed permutations in any order).
ROSALIND|Enumerating Gene Orders (PERM)
給定一正整數 n,求包含數字 1 到 n 的所有可能數列與其總數。
A permutation of length n is an ordering of the positive integers {1,2,…,n} . For example, π=(5,3,2,1,4) is a permutation of length 5.
Given: A positive integer n≤7 .
Return: The total number of permutations of length n , followed by a list of all such permutations (in any order).
ROSALIND|Counting Point Mutations (HAMM)
給定兩等長字串 s 和 t,計算兩者的 Hamming distance dH(s,t)
Given: Two DNA strings s and t of equal length (not exceeding 1 kbp).
Return: The Hamming distance dH(s,t).
DADA2 execution halted (Error in table: attempt to make a table with >= 2^31 elements)
本文純粹是技術問題。我之前以 Qiime2 外掛的 DADA2 處理已切除轉接子的 16S rRNA 基因序列 (V4 region) 時,因為以下錯誤而中斷了執行四天的程式。
1 | Plugin error from dada2: An error was encountered while running DADA2 in R (return code 1), please inspect stdout and stderr to learn more. |
ROSALIND|Complementing a strand of DNA (REVC)
給定 DNA 序列,回傳其反向互補序列。
Given: A DNA string s of length at most 1000 bp.
Return: The reverse complement sc of s.
《時間機器》
ROSALIND|Counting DNA Nucleotides (DNA)
給定 DNA 字串,依照 “A”、”C”、”G”、”T” 的順序,印出四種鹼基符號的數量。
Given: A DNA string s of length at most 1000 nt.
Return: Four integers (separated by spaces) counting the respective number of times that the symbols ‘A’, ‘C’, ‘G’, and ‘T’ occur in s.