Skip to content

Instantly share code, notes, and snippets.

View ggonnella's full-sized avatar
🎯

Giorgio Gonnella ggonnella

🎯
  • Bioinformatics
  • Phnom Penh, Cambodia
View GitHub Profile
@ggonnella
ggonnella / add_sequences_to_canu_gfa.py
Created August 29, 2018 12:55
Add sequences from a Fasta file to a GFA file.
#!/usr/bin/env python3
"""
Add sequences from a Fasta file to a GFA file.
"""
import argparse
import sys
import gfapy
op = argparse.ArgumentParser(description=__doc__)
@ggonnella
ggonnella / mysql_DB_clone.rake
Created April 21, 2009 08:47
MySQL rake task for rails to copy the content of the production database to the development database. Please note that the current development database will be DROPPED!
namespace :db do
namespace :mysql do
desc "Overwrite the whole development db with a copy of the production db"
task :init_dev do
config = YAML.load(IO.read("config/database.yml"))
d = config["development"]
p = config["production"]
unless d["adapter"] == "mysql" and