Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View fbrundu's full-sized avatar
💭
I may be slow to respond.

Francesco G. Brundu fbrundu

💭
I may be slow to respond.
View GitHub Profile
@kantale
kantale / karyoplot.py
Created March 2, 2015 00:17
Plot chromosome Ideograms with karyotype with matplotlib
import os
import matplotlib
from matplotlib.patches import Circle, Wedge, Polygon, Rectangle
from matplotlib.collections import PatchCollection
import matplotlib.pyplot as plt
def karyoplot(karyo_filename, metadata={}, part=1):
'''
To create a karyo_filename go to: http://genome.ucsc.edu/cgi-bin/hgTables
import scipy.io as sio
import pandas as pd
#Load Data
data = sio.loadmat('<your path>/GSM3017261_150000_CNS_nuclei.mat')
#Digital Expression Matrix
DGE = data['DGE']
#Genes
@kdaily
kdaily / symbol2cytoband.R
Created April 3, 2014 17:48
Get the chromosomal location and cytoband for list of HGNC gene symbols using biomaRt
# Code snippet to get chromosomal position and cytoband from gene symbols using
# biomaRt
# Kenneth Daily, 2014
library(biomaRt)
ensembl <- useMart("ensembl", dataset = "hsapiens_gene_ensembl")
# Only use standard human chromosomes
normal.chroms <- c(1:22, "X", "Y", "M")
@daler
daler / LICENSE
Last active November 28, 2021 07:37
Plot chromosome ideograms along with other genomic data
The MIT License (MIT)
Copyright (c) 2016 Ryan Dale
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: