{"id":17868250,"url":"https://github.com/matmoore/rosalind-problems","last_synced_at":"2025-04-02T22:26:36.979Z","repository":{"id":159741414,"uuid":"617609108","full_name":"MatMoore/rosalind-problems","owner":"MatMoore","description":"Solutions to bioinformatics problems","archived":false,"fork":false,"pushed_at":"2023-07-03T20:33:31.000Z","size":86,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T12:47:08.609Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MatMoore.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-22T18:35:30.000Z","updated_at":"2023-04-01T21:39:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"534c6a39-b9d6-488d-8e7f-7377263ae8ca","html_url":"https://github.com/MatMoore/rosalind-problems","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatMoore%2Frosalind-problems","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatMoore%2Frosalind-problems/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatMoore%2Frosalind-problems/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatMoore%2Frosalind-problems/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MatMoore","download_url":"https://codeload.github.com/MatMoore/rosalind-problems/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246901592,"owners_count":20852248,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-28T09:57:23.765Z","updated_at":"2025-04-02T22:26:36.953Z","avatar_url":"https://github.com/MatMoore.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rosalind problems\n\nThis repo contains my solutions to the bioinformatics problems at https://rosalind.info/problems\n\n## To run the solutions\n\n- `ruby runner.rb` runs all the solutions.\n- `ruby runner.rb PROBLEM_ID` runs a single solution.\n- `ruby runner.rb -o PROBLEM_ID` copies an input from `~/Downloads`, then runs the solution.\n\n## Some fun ruby stuff I used along the way\n\n### Zeitwerk\n\nThe runner module uses the [Zeitwerk](https://github.com/fxn/zeitwerk) autoloader to eager load all the code for the project, based on the directory structure. This saves me writing lots of 'require' statements.\n\n### Characterization testing\n\nThe runner uses [characertization testing](https://en.wikipedia.org/wiki/Characterization_test) to ensure my previous solutions don't break when refactoring code.\n\nThis works great for exercises like this, since my definition of working code is simply: \"does it produce a solution that was marked correct?\".\n\n### Data classes\n\nRuby 3.2 added a new data class for defining immutable value objects. I use it in the `GeneticString` module for modelling DNA and RNA.\n\nI made the classes themselves private and provided factory methods to make sure sequences are valid when constructing these values.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatmoore%2Frosalind-problems","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatmoore%2Frosalind-problems","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatmoore%2Frosalind-problems/lists"}