Skip to content

Instantly share code, notes, and snippets.

View dvera's full-sized avatar

Daniel Vera dvera

View GitHub Profile
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Module Imports"
]
},
{
@dvera
dvera / pres.md
Created December 23, 2022 19:23
presentation guidelines

Guidelines for conducting and participating in meetings

Meeting etiquette

  • Presenters should prepare prior to the meeting. Preparations might include:
    • Carefully reviewing materials to be presented for completeness, accuracy, and adherence to guidelines (discussed in sections below).
    • Independently or with others, going through the presentation as if you were presenting it.
    • Saving materials on OneDrive and sharing them prior to the meeting (discussed in sections below).
  • Meeting organizers should set an agenda and email the agenda prior to the start of the meeting by replying to the meeting invite.
@dvera
dvera / .gitignore
Created September 15, 2022 13:17
VoLo .gitignore for jupyter/rstudio/data
# data
/data
# History files
.Rhistory
.Rapp.history
# Session Data files
.RData
.RDataTmp
Anln G2/M
Anp32e G2/M
Atad2 S
Aurka G2/M
Aurkb G2/M
Birc5 G2/M
Blm S
Brip1 S
Bub1 G2/M
Casp8ap2 S
docker run -u $UID:$UID -v $PWD:$PWD -w $PWD ensemblorg/ensembl-vep perl /opt/vep/src/ensembl-vep/INSTALL.pl -a cf -c $PWD/vep_data -s homo_sapiens -y GRCh38
git clone https://github.com/Ensembl/VEP_plugins $PWD/vep_data/Plugins
docker run -i -t -u $UID:$UID -v $PWD:$PWD:rw -v $PWD/vep_data:/opt/vep/.vep -w $PWD ensemblorg/ensembl-vep vep --verbose --everything --humdiv --check_existing --species homo_sapiens --assembly GRCh38 --cache --dir $PWD/vep_data -i $PWD/fermikit.flt.vcf -o $PWD/test
# regulatory build gff
ftp://ftp.ensembl.org/pub/release-94/regulation/homo_sapiens/homo_sapiens.GRCh38.Regulatory_Build.regulatory_features.20161111.gff.gz
@dvera
dvera / eda.install
Last active February 4, 2019 22:40
#!/usr/bin/env bash
apt-get update
add-apt-repository -y -u ppa:certbot/certbot
packages="
csh
gdebi-core
openjdk-8-jdk
python-certbot-nginx
user www-data;
worker_processes auto;
pid /run/nginx.pid;
events {
worker_connections 768;
}
http {
user www-data;
worker_processes auto;
pid /run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
source("https://raw.githubusercontent.com/dvera/mingle/master/R/bamToImat.R")
binsize=100000
x=bamToImat(bams,binsize,minInteractions=1,threads=12)
testsa=lapply(1:length(x),function(i){
ss=summary(x[[i]][[1]])
ss=data.frame(dist=binsize*(ss[,2]-ss[,1]),count=ss[,3])
return(ss)
matPlot <- function(
scoreMats ,
outdir ,
matnames=NULL ,
# per-clustering settings
sortOn=1 ,
sortMethods="kmeans" ,
sortRanges = NULL ,
sortBreaks = NULL ,
sortGroups=3 ,