{"id":18669967,"url":"https://github.com/blahah/seqtkrb","last_synced_at":"2025-08-08T10:36:17.893Z","repository":{"id":33893659,"uuid":"37607011","full_name":"blahah/seqtkrb","owner":"blahah","description":"Fast FASTA/FASTQ operations. Ruby gem wrapper for seqtk (https://github.com/lh3/seqtk)","archived":false,"fork":false,"pushed_at":"2015-06-17T19:38:08.000Z","size":168,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-24T02:39:30.356Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blahah.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-17T16:31:59.000Z","updated_at":"2015-06-17T16:32:13.000Z","dependencies_parsed_at":"2022-08-17T20:15:27.802Z","dependency_job_id":null,"html_url":"https://github.com/blahah/seqtkrb","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/blahah/seqtkrb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blahah%2Fseqtkrb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blahah%2Fseqtkrb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blahah%2Fseqtkrb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blahah%2Fseqtkrb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blahah","download_url":"https://codeload.github.com/blahah/seqtkrb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blahah%2Fseqtkrb/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269409300,"owners_count":24412140,"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","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-07T08:49:21.319Z","updated_at":"2025-08-08T10:36:17.875Z","avatar_url":"https://github.com/blahah.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# seqtkrb [![Build Status](https://img.shields.io/travis/Blahah/seqtkrb.svg)](https://travis-ci.org/Blahah/seqtkrb) [![Coverage Status](https://img.shields.io/coveralls/jekyll/jekyll.svg)](https://coveralls.io/r/Blahah/seqtkrb?branch=master)\n\nseqtkrb is a ruby gem that wraps [seqtk](). This gives you fast access to basic operations on FASTA/FASTQ files without having to roll your own C extension or write a slow implementation in ruby.\n\nCurrently only the sampling functionality of seqtk is exposed. Create an issue or a Pull Request if you want more functionality.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'seqtkrb'\n```\n\nAnd then execute:\n\n```\n$ bundle\n```\n\nOr install it yourself as:\n\n```\n$ gem install seqtkrb\n```\n\n## Usage\n\n```ruby\nrequire 'seqtkrb'\n\nseq = Seqtkrb::Seqtk.new # will download and install seqtk if it is not found\n\n# basic sampling\nseq.sample('reads.fq', 'sampled.fq' 10_000) # sample 10,000 reads\nseq.sample('reads.fq', 'sampled.fq' 0.5) # sample reads with 50% chance of taking each read\n\n# sampling from paired files\nseq.sample('reads_l.fq', 'sampled_l.fq', 1_000, 1234) # sample 1,000 left reads with seed 1234\nseq.sample('reads_r.fq', 'sampled_r.fq', 1_000, 1234) # sample the matching right reads\n\n# low memory sampling (uses two passes)\nseq.sample_lowmem('reads.fq', 'sampled.fq', 1_000_000) # sample 1 million reads\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/[my-github-username]/seqtkrb/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblahah%2Fseqtkrb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblahah%2Fseqtkrb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblahah%2Fseqtkrb/lists"}