Skip to content

Instantly share code, notes, and snippets.

View armish's full-sized avatar
🔬
here and there

B. Arman Aksoy armish

🔬
here and there
View GitHub Profile
@armish
armish / basicOncoPrint.R
Last active January 23, 2024 14:13
A simple R script to visualize OncoPrints out of an alteration matrix
# This function sorts the matrix for better visualization of mutual exclusivity across genes
memoSort <- function(M) {
geneOrder <- sort(rowSums(M), decreasing=TRUE, index.return=TRUE)$ix;
scoreCol <- function(x) {
score <- 0;
for(i in 1:length(x)) {
if(x[i]) {
score <- score + 2^(length(x)-i);
}
}
@armish
armish / ChatGPT function return - annotate genes with HGNC fields.ipynb
Created June 16, 2023 18:09
Use ChatGPT's new function return functionality to enrich an answer with HGNC's most recent annotation for gene-related questions
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@armish
armish / minibucket.ipynb
Created June 26, 2017 13:38
Experimenting with direct use of buckets for the cohorts-level analyses
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@armish
armish / seaborn_mt_sinai_colors.ipynb
Created March 18, 2016 21:24
Applying Mt Sinai branding to seaborn plots
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@armish
armish / gdc_download.ml
Last active April 4, 2017 23:23
Experiments with replacing gdc-client with a ketrew workflow
#use "topfind";;
#thread
#use "biokepi_machine.ml";;
open Biokepi
open KEDSL
open Cmdliner
(* simple aliases *)

Keybase proof

I hereby claim:

  • I am armish on github.
  • I am armish (https://keybase.io/armish) on keybase.
  • I have a public key ASCZY1H-Zg-Yt8dFqLLOAdRtNJPEvhilMDnwYwWAfaZTpQo

To claim this, I am signing this object:

@armish
armish / Dockerfile.pyensembl
Created July 27, 2016 17:11
Docker image with all genomes cached via pyensembl in it
# This Docker image is meant to serve commonly used Ensembl Genomes
# already cached via PyEnsembl. Any application that depends on
# the pyensembl library can use this image to speed things up
# as caching these genomes is a huge bottleneck for most applications
FROM ubuntu:latest
MAINTAINER B. Arman Aksoy <arman@aksoy.org>
## We will be needing a few utilities to get this going
@armish
armish / fastqc_to_email.sh
Created July 15, 2016 18:25
A script to summarize FASTQC results to be included in an email.
#!/bin/bash
# Usage:
# $ bash fastqc_to_email.sh REPORT_HEADER /path/to/file1.html /path/to/file2.html ...
#
# requires the unzipped folder containing the summaries to be present in the same folder
# with the HTML report!
JOB_NAME=$1
echo "# FASTQC ran for $JOB_NAME"
@armish
armish / dna_repair_molecules.tsv
Created June 17, 2016 16:06
Reactome - DNA Repair molecules (all)
MoleculeType Identifier MoleculeName
Chemical Compounds 15414 S-adenosyl-L-methionine [ChEBI:15414]
Chemical Compounds 16680 S-adenosyl-L-homocysteine [ChEBI:16680]
Chemical Compounds 15351 acetyl-CoA [ChEBI:15351]
Chemical Compounds 17154 nicotinamide [ChEBI:17154]
Chemical Compounds 16960 ADP-D-ribose [ChEBI:16960]
Chemical Compounds 15377 water [ChEBI:15377]
Chemical Compounds 15422 ATP [ChEBI:15422]
Chemical Compounds 15846 NAD(+) [ChEBI:15846]
Chemical Compounds 15379 dioxygen [ChEBI:15379]
@armish
armish / tcga_purity_vaf.ipynb
Created May 24, 2016 01:51
TCGA - purity estimation from VAF
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.