Skip to content

Instantly share code, notes, and snippets.

View alihamraoui's full-sized avatar
🐾
🐕

Hamraoui Ali alihamraoui

🐾
🐕
View GitHub Profile
@millerh1
millerh1 / tidy_venn.diagram.R
Created September 20, 2021 17:19
Tidy venn.diagram
library(magrittr)
# Venn diagram plot in tidy pipe
plt <- list(
"A" = 1:100,
"B" = 96:140
) %>%
VennDiagram::venn.diagram(filename = NULL) %>%
grid::grid.draw(.) %>%
ggplotify::grid2grob() %>%
@gireeshkbogu
gireeshkbogu / convert_GTF_to_BED12.sh
Last active April 17, 2024 03:21
How to convert GTF format into BED12 or BIGBED format?
# see below for UPDATES that include more shorter ways of conversions
# How to convert GTF format into BED12 format (Human-hg19)?
# How to convert GTF or BED format into BIGBED format?
# Why BIGBED (If GTF or BED file is very large to upload in UCSC, you can use trackHubs. However trackHubs do not accept either of the formats. Therefore you would need bigBed format)
# First, download UCSC scripts
wget http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/gtfToGenePred
wget http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/genePredToBed
wget http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/bedToBigBed