package bio_io
A library for reading and writing common file formats used in bioinformatics like FASTA files
Install
Dune Dependency
Authors
Maintainers
Sources
0.6.0.tar.gz
md5=b1482999e17b5adc24740f95f80b92e3
sha512=ed6bc59b2d78551b84f8651e2d0670fb88f3ebcf88152196c6826bb90ade93efcec714e136be91beaef44949ef3f0c12f033ff37ab166ba30e192d50f6d6fee6
README.md.html
Bio_io
Bio_io
is an OCaml library that provides programmatic access to common file formats used in bioinformatics like FASTA files.
Quick Start
Install
opam install bio_io
Example
Read a FASTA file and print the ID and sequence length for each record.
open! Base
let fasta_file = "sequences.fasta"
let () =
(* This open gives you [In_channel] and [Record]. *)
let open Bio_io.Fasta in
In_channel.with_file_iter_records fasta_file ~f:(fun record ->
(* Print the ID and the length of the sequence. *)
Stdio.printf "%s => %d\n" (Record.id record) (Record.seq_length record))
Docs
For more examples, API, and other usage info, see the docs.
License
Licensed under the Apache License, Version 2.0 or the MIT license, at your option. This program may not be copied, modified, or distributed except according to those terms.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>