Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/edawson/pliib

A hacky little C++ library that holds some useful functions.
https://github.com/edawson/pliib

Last synced: 4 days ago
JSON representation

A hacky little C++ library that holds some useful functions.

Awesome Lists containing this project

README

        

pliib: Some common C++ utility functions for bioinformatics
-------
Eric T Dawson
December 2015

![C/C++ CI for pliib](https://github.com/edawson/pliib/workflows/C/C++%20CI%20for%20pliib/badge.svg)

### Functionality
There are two main kinds of functions in this library:
- String manipulation
- Capitalize a string
- Reverse a string
- Reverse compliment a string
- Split a string by a delimiter
- Join a vector of strings by a delimiter

- Threadpool-style work functions
- Apply a function to a vector of inputs

### Example Usage:

#include "pliib.hpp"
using namespace pliib;

// Split a string:
string s = "ACT;TGC;AAA;aNoThErString;"
vector ret;
split(s, ';', ret);
// ret is modified to hold the tokens of s split by semicolons.
// ret = {"ACT", "TGC", "AAA", "aNoThErString"}

## License:
MIT

### Contact:
Eric T Dawson
github: edawson