Skip to content

Instantly share code, notes, and snippets.

View mgalardini's full-sized avatar

Marco Galardini mgalardini

View GitHub Profile
#!/usr/bin/env python
import sys
if len(sys.argv) < 4:
sys.stderr.write('USAGE: map2PDB PDB_FILE ALIG_FASTA POS_AA [AA_POS, [AA_POS, ...]]')
sys.stderr.write('\n')
sys.exit(65)
pdb = sys.argv[1]
@mgalardini
mgalardini / parse_sifts.py
Last active November 9, 2016 15:18
Uniprot to PDB residue mapping
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated Thu Nov 20 17:12:58 2014 by generateDS.py version 2.13a.
#
# Command line options:
# ('-f', '')
# ('-o', 'sifts.py')
#
@mgalardini
mgalardini / meme.txt
Created January 13, 2015 17:54
Meme motif file that makes Bio.motifs.read crash
********************************************************************************
MEME - Motif discovery tool
********************************************************************************
MEME version 4.10.0 (Release date: Wed May 21 10:35:36 2014 +1000)
For further information on how to interpret these results or to get
a copy of the MEME software please access http://meme.nbcr.net.
This file may be used as input to the MAST algorithm for searching
sequence databases for matches to groups of motifs. MAST is available
@mgalardini
mgalardini / toggle.md
Last active August 29, 2015 14:13
Toggle code cells in ipython html notebooks
<script type="text/javascript"> show=true; function toggle(){ if (show){ $('div.input').hide(); }else{ $('div.input').show(); } show = !show }
#!/bin/bash
# Copyright (C) <2015> EMBL-European Bioinformatics Institute
# This program is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
@mgalardini
mgalardini / seaborn.ipynb
Created May 18, 2015 15:40
Seaborn tutorial
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mgalardini
mgalardini / html.tpl
Created May 18, 2015 16:37
Ipython notebook html template for code cells toggling
{% extends 'full.tpl' %}
{% block header %}
{{ super() }}
<script type="text/javascript">
show=true;
function toggle(){
if (show){
$('div.input').hide();
}else{
@mgalardini
mgalardini / roary.ipynb
Created June 11, 2015 16:34
Roary plots
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mgalardini
mgalardini / tutorial.ipynb
Last active May 19, 2020 21:53
PM data analysis tutorial using Biopython
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mgalardini
mgalardini / roary_plots.py
Created October 28, 2015 18:20
Roary plots with strain names
#!/usr/bin/env python
# Copyright (C) <2015> EMBL-European Bioinformatics Institute
# This program is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of