twobitreader-1.0.1: reader for the 2bit file format
Safe HaskellSafe-Inferred
LanguageHaskell2010

Bio.TwoBit.Tool

Synopsis

Documentation

parseAnno :: String -> ByteString -> [Either GffError Cdna] Source #

Parses annotations in GFF format. We want to turn an annotation and a 2bit file into a FastA of the transcriptome (one sequence per annotated transcript), that looks like the stuff Lior Pachter feeds into Kallisto. Annotations come in two dialects of GFF, either GFF3 or GTF. We autodetect and understand both.

vcfToTwoBit :: [ByteString] -> EncodeProgress Source #

Extracts the reference from a VCF. This assumes the presence of at least one record per site. The VCF must be sorted by position. When writing out, we try to match the order of the contigs as listed in the header. Unlisted contigs follow at the end with their order preserved; contigs without data are not written at all.