Skip to content

Instantly share code, notes, and snippets.

View jjenny's full-sized avatar

Jenny Chen jjenny

  • Harvard Data Science Fellow
View GitHub Profile
@jjenny
jjenny / gtf2bed.py
Last active March 10, 2017 22:07 — forked from davidliwei/gtf2bed.py
modified gtf2bed.py which works with output from stringtie
#!/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.
'''