0.0
The project is in a healthy, maintained state
Strain numbers are microbiological culture collection identifiers
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

 Project Readme

StrainCode

A gem for parsing and formatting strain numbers from microbiological culture collections

Installation

gem install strain-code

Usage

require 'strain-code'

# Parse one or more numbers in a variety of formats
str_no = StrainCode.parse <<STR_NO
  ATCC 33152  = CCUG 9568  = CIP 103854  ;
  DSM 25069  = DSM_7513  = JCM:7571;
  NBIMCC:8848 = NCTC 11192, Strain Philadelphia 1
STR_NO

# Get the URLs to the entry in the corresponding catalogues
str_no.map(&:url)

# Get the name and country of each catalogue (if available)
str_no.map(&:catalogue).map { |i| [i.name, i.country_code] if i }