rosalind

Rosalind “Mendel's First Law” IPRB

谁都会走 提交于 2019-12-11 07:08:36
问题 As preparation for an upcoming bioinformatics course, I am doing some assignments from rosalind.info. I am currently stuck in the assignment "Mendel's First Law". I think I could brute force myself through this, but that somehow my thinking must be too convoluted. My approach would be this: Build a tree of probabilities which has three levels. There are two creatures that mate, creature A and creature B. First level is, what is the probability for picking as creature A homozygous dominant (k)

Python: Multiple Consensus sequences

拟墨画扇 提交于 2019-12-11 04:42:35
问题 starting from a list of dna sequences, I must have in return all the possible consensus (the resulting sequence with the highest nucleotide frequency in each position) sequences. If in some positions the nucleotides have the same highest frequency, I must obtain all possible combinations with the highest frequency. I also must have in return the profile matrix ( a matrix with the frequencies of each nucleotide for each sequence). This is my code so far (but it returns only one consensus