Rosalind is a platform for learning bioinformatics through problem solving.
Questions tagged [rosalind]
56 questions
0
votes
1 answer
Rosalind: Overlap Graphs in OCaml
How to solve the Overlap Graphs problem on Rosalind?
http://rosalind.info/problems/grph/

ev0118
- 29
- 1
0
votes
1 answer
compute gc content and print the maximum gc content along with its key
I am getting the error "list assignment index out of range" in line 9
I have to get the key with the maximum gc content and print the gc content value along with the key.
This is just an example I am doing, while the problem may contain more than 2…

Abhishek Singh
- 19
- 2
0
votes
3 answers
Rosalind translating rna into protein python
Here is my solution to the problem of rosalind project.
def prot(rna):
for i in xrange(3, (5*len(rna))//4+1, 4):
rna=rna[:i]+','+rna[i:]
rnaList=rna.split(',')
bases=['U','C','A','G']
codons = [a+b+c for a in bases for b in bases for c…

DGB
- 61
- 1
- 6
0
votes
5 answers
Apply a formula to a line of data where it crosses multiple lines
I'm just making my first steps to try to learn a bit of Python. Currently working my way through the Rosalind online course which aims to teach bioinformatics python skills.
(very good by the way, see: rosalind.info)
I am struggling with one…

mu0u506a
- 31
- 4
-1
votes
2 answers
Python Regex Finding a Match That Starts Inside Previous match
I'm looking to find the index for all substrings in a string in python. My current regex code can't find a match that has it's start in a previous match.
I have a string: s = r'GATATATGCATATACTT' and a subtring t = r'ATAT'. There should be matches…

Oliver
- 281
- 3
- 14
-1
votes
1 answer
RNA Splicing Python (No output given)
I have been working on Rosalind exercises for Bioinformatics stronghold on RNA Splicing. I am currently using Python 3.6 version. It didn't tell me there is any error in my code, so I'm assuming my code is fine. However, there is no output produced,…

programmer211216
- 49
- 1
- 7
-1
votes
1 answer
Inferring mRNA from Protein Rosalind
Problem
For positive integers aa and nn, aa modulo nn (written amodnamodn in shorthand) is the remainder when aa is divided by nn. For example, 29mod11=729mod11=7 because 29=11×2+729=11×2+7.
Modular arithmetic is the study of addition, subtraction,…

Vineeth Ramesh
- 13
- 2
-1
votes
3 answers
Finding all elements of a dictionary of lists that have a specific element in that list
I was working on a problem through Rosalind. It's been a week since I've been stuck. I'm going to try to explain this as simply as possible.
Input - A string called Genome, and integers k, L, and t. A genome is a string of genetic code to sort…

chasethewhiterabbitt
- 199
- 1
- 3
- 10
-3
votes
1 answer
Rosalind doesn't accept "Variables and Some Arithmetic" task
Link for the problem http://rosalind.info/problems/ini2/
Given: Two positive integers a and b, each less than 1000.
Return: The integer corresponding to the square of the hypotenuse of the right
triangle whose legs have lengths a and b
For…

Starim
- 3
- 2
-3
votes
3 answers
Rosalind resolution noob
This is my solution to the problem presented here: http://rosalind.info/problems/subs/.
def subs(string,subString):
lista=[]
i=0
while i < (len(string)-len(subString)):
if string[i:(i+len(subString)-1)]==subString:
…

DGB
- 61
- 1
- 6
-4
votes
1 answer
Rosalind Pattern Matching Java Not Accepted
I was able to test the below code for the sample input data given and was able to validate successfully.
http://rosalind.info/problems/1c/
But somehow for any dataset that I download, the answer is not being accepted by the website. I'm not sure If…

crackerplace
- 5,305
- 8
- 34
- 42