Skip to content

Instantly share code, notes, and snippets.

View pamag's full-sized avatar

Pablo Marin-Garcia pamag

View GitHub Profile
@pamag
pamag / drawdowns.ipynb
Created May 24, 2021 01:14 — forked from 8one6/drawdowns.ipynb
A review of various functions for computing drawdowns and rolling drawdowns of a given 1-d data structure (numpy array or pandas series).
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pamag
pamag / .vimrc
Created April 24, 2021 23:12 — forked from jmjuanes/.vimrc
My .vimrc file
"
" Installation:
" 1. Set up vundle for vim (https://github.com/VundleVim/Vundle.vim):
" $ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
" 2. Download this `.vimrc` file and save it in your home folder.
" 3. Launch vim in your console and run :PluginInstall.
"
set nocompatible
syntax on
@pamag
pamag / get_fasta_from_gff.sh
Last active November 30, 2015 01:21
get fasta from gff with fasta block
# create fasta file from gff with fasta blocks using bedtools
# see rationale at the end
gffFile=$1;
tmpid=tmp_${$}
# make tmp dir
mkdir $tmpid
echo entering to tempdir: >&2
cd $tmpid
@pamag
pamag / convert_tped_to_hapamp.pl
Created March 18, 2012 05:37
converting tped files into HapMap format
#!/usr/bin/env perl
=head1 [progam_name]
description:
- converts tped files to hapmap files.
=head2 usage
@pamag
pamag / gist:1238026
Created September 23, 2011 17:59 — forked from andrewyatz/gist:1237394
An example of extracting UTR coordinates from an Ensembl transcript
use Bio::EnsEMBL::Registry;
Bio::EnsEMBL::Registry->load_registry_from_db(
-HOST => 'ensembldb.ensembl.org',
-PORT => 5306,
-USER => 'anonymous',
-VERBOSE => 0,
-DB_VERSION => 64
);
my $dba = Bio::EnsEMBL::Registry->get_DBAdaptor('human', 'core');