Counting Nucleotides
Given a single-stranded DNA sequence composed only of the characters A, C, G and T, count how many times each …
Foundational programming on biological data: strings, counting, complements and comparisons.
Given a single-stranded DNA sequence composed only of the characters A, C, G and T, count how many times each …
Given a DNA string representing the coding strand, produce the corresponding RNA string by replacing every T with U. All …
Given a DNA string, return its reverse complement: take the complement of each base (A to T, T to A, …
Given two DNA strings of equal length, count the positions at which their symbols differ. This is the Hamming distance. …
Read a sequence identifier on the first line and a DNA sequence on the second line. Print a three-line report: …
You are given a minimum length and a list of DNA sequences. Print every sequence whose length is greater than …
Given a coding DNA sequence, split it into non-overlapping codons of three bases, starting at position 0, and count how …
You are given an adapter sequence and a set of reads. For each read, if the adapter appears anywhere in …
You are given a set of DNA sequences. Compute and print, each on its own line: Count: <number of sequences> …
You are given records, one per line, each supposed to contain an identifier and a DNA sequence separated by a …
FASTA-formatted text arrives on standard input. Every record begins with a header line whose first character is >. Print a …
FASTA-formatted text arrives on standard input. For every header line, print the identifier: the header text with the leading > …
Tab-separated text arrives on standard input. The first line is a header and must be skipped. The first line of …
Tab-separated data arrives on standard input. The first line of input is a numeric threshold. The second line is a …
A list of values arrives on standard input, one per line. Count how many times each distinct value appears, and …
A single DNA sequence arrives on standard input. Transcribe it into RNA by replacing every occurrence of T with U, …