gtf2json

Crates.iogtf2json
lib.rsgtf2json
version0.1.2
sourcesrc
created_at2023-07-19 17:32:46.826269
updated_at2023-07-19 20:57:56.360099
descriptionA tool to convert GTF files to newline-delim JSON
homepage
repositoryhttps://github.com/noamteyssier/gtf2json
max_upload_size
id920588
size461,538
Noam Teyssier (noamteyssier)

documentation

README

gtf2json

A simple CLI utility to convert a GTF file to NDJSON for fast parsing

Summary

The GTF file format is fantastic when working with bedtools since it is essentially a modified version of the BED file format.

However, if you're interested in the annotations column, it can be a massive headache to parse - especially if you're operating on the full genome.

I wrote this tool to convert the GTF file format into streamable newline-delim JSON.

This makes it convenient to load with polars in python incredibly fast and skip all the annotation parsing.

Installation

You can install this with the rust package manager cargo:

cargo install gtf2json

Usage

# classic i/o
gtf2json -i <input.gtf> -o output.json

# write to stdout
gtf2json -i <input.gtf> 
Commit count: 31

cargo fmt