Skip to content

Instantly share code, notes, and snippets.

@holgerbrandl
Created March 9, 2018 09:57
Show Gist options
  • Save holgerbrandl/d0ef0f702fd81dd36a047899719d7b32 to your computer and use it in GitHub Desktop.
Save holgerbrandl/d0ef0f702fd81dd36a047899719d7b32 to your computer and use it in GitHub Desktop.
Output read ids and corresponding read lengths for a fastq argument file
#!/usr/bin/env kscript
@file:DependsOn("de.mpicbg.scicomp:kutils:0.9.0")
import de.mpicbg.scicomp.bioinfo.openFastq
openFastq(args[0]).forEach { println(it.id+""+it.sequence.length) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment