SkillAgentSearch skills...

Rosalind.info

Solutions to the bioinformatic coding challenges at rosalind.info

Install / Use

/learn @danhalligan/Rosalind.info

README

http://rosalind.info

CI workflow License Code style

This repository contains solutions to bioinformatics coding challenges from [rosalind.info]. Problems are organised by the various different [locations]:

  • [Python Village]: initial problems to learn a few basics about the Python programming language.
  • [Bioinformatics Stronghold]: problems to discover the algorithms underlying a variety of bioinformatics topics.
  • [Bioinformatics Armory]: unlike the stronghold in the Armory we solve problems by using existing tools.
  • [Bioinformatics Textbook Track]: problems associated with [Bioinformatics Algorithms: An Active Learning Approach].
  • [Algorithmic Heights]: exercises to accompany the book [Algorithms].

Running the solutions

This repository is written as a python module and uses [poetry] and [typer].

Solutions for each problem are located in individual files inside the directory for each location.

You can install the versions of dependencies used here with:

poetry install

To run solutions within this environment run, e.g.:

poetry run rosalind ini2 rosalind_ini2.txt

To run the solution on the provided "Sample Dataset" from [rosalind.info] (which should reproduce the "Sample Output"), run the solution in "test" mode:

poetry run rosalind --test ini2

Testing

pytest-snapshot is used to test solutions to problems. In many cases solutions generated will and should exactly match the "Sample Output" given at rosalind.info. In cases, where e.g. ordering is not important, the expected solutions (in tests/expected) have been updated to match code used here, but are equally valid solutions.

To run the tests use:

poetry run pytest

To update the tests (adding or modifying snapshots / expected output) use:

poetry run pytest --snapshot-update

Note that some solutions (that use Entrez) require an email address. This should be set as an environment variable, e.g.:

export ENTREZ_EMAIL=rosalind.franklin@cam.ac.uk

About

  • My rosalind profile: https://rosalind.info/users/danhalligan/

Solutions

Python Village

Bioinformatics Stronghold

View on GitHub
GitHub Stars17
CategoryDevelopment
Updated1mo ago
Forks1

Languages

Python

Security Score

95/100

Audited on Feb 13, 2026

No findings