Skip to content

Instantly share code, notes, and snippets.

@budsonjelmont
budsonjelmont / gtf2bed.py
Last active October 15, 2019 19:37 — forked from davidliwei/gtf2bed.py
Converting Cufflinks predictions (.GTF) into .BED annotations
#!/usr/bin/env python3
'''
gtf2bed.py converts GTF file to BED file.
Usage: gtf2bed.py {OPTIONS} [.GTF file]
History
Nov.5th 2012:
1. Allow conversion from general GTF files (instead of only Cufflinks supports).
2. If multiple identical transcript_id exist, transcript_id will be appended a string like "_DUP#" to separate.
'''