Skip to main content

Questions tagged [rosalind]

Rosalind is a platform for learning bioinformatics through problem solving.

0 votes
1 answer
49 views

Problem with Object Types operations in Julia for solving Rosalind problem "Open Reading Frames"

Code context: I am trying to solve the Rosalind problem "Open Reading Frames" (https://rosalind.info/problems/orf/). The approach I am using involves storing each ORF result in a variable ...
Hugo Oliveira's user avatar
0 votes
1 answer
99 views

Finding longest common substring between DNA sequences (Python)

I am working on the "Finding a shared motif" problem from rosalind.info (https://rosalind.info/problems/lcsm/). This problem asks you to find the longest common substring in a collection of &...
Anton Holt's user avatar
1 vote
0 answers
31 views

Solving the Rosalind challenge "Finding a Motif in DNA" [duplicate]

The problem I am currently working on gives you a DNA string and a substring. You need to have your code output the start location of each instance of the substring in the DNA string. For ex; given ...
Mell's user avatar
  • 33
0 votes
1 answer
52 views

With Python, I want to add the last two values of a string but I want to keep double digit numbers together and not include spaces in the string index

I need to create a fibonacci sequence (k = 5, until 5 elements are in the sequence) from an original string containing two starting values. While calling the last two elements in the string forward (...
Dylan Ellis's user avatar
0 votes
1 answer
170 views

Rosalind - Consensus and Profile - Issue with answer formatting

I am working on the Consensus and Profile problem on Rosalind, and I am so close to getting it done. My answer is correct, I have the right consensus string and the correct matrix, but I am having ...
danielpintard's user avatar
0 votes
1 answer
209 views

Rosalind Translating RNA into Protein problem

Hello i tried doing this problem from ROSALIND but when i put the example rna sequence (AUGGCCAUGGCGCCCAGAACUGAGAUCAAUAGUACCCGUAUUAACGGGUGA) it produced me the wrong output "['M', 'M', 'N', 'I']&...
Mike Andrew 's user avatar
0 votes
1 answer
204 views

Cumulative Binomial Probability Python

I tried to calculate the Cumulative Binomial Probability to resolve the "Independent Alleles" problem from Rosalind, and I think I got the program right but the result gives me "wrong&...
MarianaZ's user avatar
0 votes
0 answers
133 views

I can't use properly the replace command in python

I'm new on the platform: I have a doubt about the use of the replace command. Here is my code and what I need to do: The thing is that I need to replace a substring with a string sequence. For example:...
dananada's user avatar
1 vote
1 answer
478 views

Python - Rosalind Open Reading Frame Problem

There's an Open Reading Frame exercise on Rosalind, for which I get different results from what is obtained in the example task. The exercise description can be found here. I have this code: gencode = ...
Benedek Dankó's user avatar
-1 votes
2 answers
195 views

Python Regex Finding a Match That Starts Inside Previous match [duplicate]

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 ...
Oliver's user avatar
  • 335
0 votes
1 answer
91 views

Rosalind Consensus and Profile Problem code doesn't work

This is the problem: http://rosalind.info/problems/cons/ def file_read(fname): with open(fname, "r") as myfile: global data data = myfile.readlines() print(data) ...
sickleox2's user avatar
0 votes
0 answers
93 views

How can I improve the speed of my R code regarding shortest substring implementation problem?

I decided to implement this problem from Rosalind in R. It works great for small sample dataset: >Rosalind_56 ATTAGACCTG >Rosalind_57 CCTGCCGGAA >Rosalind_58 AGACCTGCCG >Rosalind_59 ...
Adamm's user avatar
  • 2,306
0 votes
0 answers
53 views

Want to find the positions where a pattern (substring) starts in another string in python

Input: strA = "ATATATGCGATAT" strB = "ATAT" output: 0 2 9 I was looking for a way to find the starting positions in a string (strA), every time a pattern (strB) starts.
Sukanta's user avatar
  • 75
2 votes
1 answer
1k views

Python: Rosalind Consensus and Profile

I am trying to solve the "Consensus and Profile" challenge on Rosalind. The challenge instructions are as follows: Given: A collection of at most 10 DNA strings of equal length (at most 1 kbp) in ...
annabelperry's user avatar
3 votes
2 answers
1k views

Count frequency of values in pandas DataFrame

Having this pandas.core.frame.DataFrame: Gorilla A T C C A G C T Dog G G G C A A C T Humano A T G G A T C T Drosophila A A G C A A C C Elefante T T ...
Manolo Dominguez Becerra's user avatar

15 30 50 per page