/kutils

A random collection of kotlin utilities

Primary LanguageKotlinMIT LicenseMIT

kutils - A collection of kotlin utilities

Download

Installation

To use them add

compile 'de.mpicbg.scicomp:kutils:0.11'

to your dependencies.

What's included?

Questions & Comments

Feel welcome to flood the isssue tracker with requests.

Examples

Most examples rely on kscript for shell integration

Filter a fasta file with a provided set of ids:

kscript - id.lst some.fasta <<"EOF"
// DEPS de.mpicbg.scicomp:kutils:0.7

import de.mpicbg.scicomp.bioinfo.openFasta
import java.io.File

val filterIds = File(args[0]).readLines()

openFasta(args[1]).
        filter { !filterIds.contains(it.id) }.
        forEach { print(it.toEntryString()) }
EOF

See also