Skip to content

Instantly share code, notes, and snippets.

View raonyguimaraes's full-sized avatar

Raony Guimaraes raonyguimaraes

View GitHub Profile
@cbergman
cbergman / galaxy-ubuntu-biolinux
Created July 19, 2012 19:03
Installation of Galaxy & (many) dependencies on Ubuntu / Biolinux
# Follow steps 1-4 on Ubuntu or 2-4 on Biolinux
1. Add repositories to your machine configuration
a. Bio-Linux
$ sudo add-apt-repository “deb http://nebc.nerc.ac.uk/bio-linux/ unstable bio-linux”
$ sudo apt-get update
$ sudo apt-get install bio-linux-keyring
b. CRAN
@johandahlberg
johandahlberg / plotCoverageProportions.R
Created June 27, 2013 16:35
A R script to plot cumulative coverage based on GATK DepthOfCoverage output files. Not very pretty, but perhaps helpful to somebody.
library(ggplot2)
setwd("<my working directory>")
removeExtraLine <- function(x) {
x[,2:length(x)]
}
createInitialDataset <- function(x, sampleName) {
extraLineRemoved <- t(removeExtraLine(x))
@vsudilov
vsudilov / gist:ba05178f31079957e855
Created May 12, 2014 18:09
filesystem over ssh tunnel through gateway (ssh+sshfs)
ssh -f -N -L 1233:remote.host:22 gateway.host
sshfs -p 1233 vsudilov@localhost:/nfs_mount /local/mountpoint -o reconnect
from __future__ import unicode_literals, print_function, absolute_import
from gi.repository import Gio
import os.path
VALID = {'toplevel': ('expand', 'size', 'orientation'),
'launcher': ('object-type', 'launcher-location', 'locked', 'menu-path', 'position', 'toplevel-id'),
'applet': ('object-type', 'applet-iid', 'toplevel-id', 'position', 'locked'),
'menu-bar': ('object-type', 'applet-iid', 'toplevel-id', 'position', 'locked'),
'menu': ('object-type', 'toplevel-id', 'position', 'locked'),
'action': ('object-type', 'action-type', 'position', 'toplevel-id'),
@Dulani
Dulani / gist:0279f33148bde7247a05
Last active July 11, 2023 20:28
Installing R Studio Server on an Amazon Linux (Redhat) AMI

Installing R Studio Server on an Amazon Linux (Redhat) AMI

  • Drawn mostly from: http://www.rstudio.com/products/rstudio/download-server/

  • ssh into the instance.

  • Install any outstanding updates
    sudo yum update

  • Install R:
    sudo yum install R

"""
Disable registration/signup
"""
#models.py
from allauth.account.adapter import DefaultAccountAdapter
class MyAccountAdapter(DefaultAccountAdapter):
def is_open_for_signup(self, request):
return False
@kosiara
kosiara / setup_howto.txt
Last active April 21, 2017 03:42
Setup Facebook React-native sample (empty) project on Ubuntu
# author:
# @Bartosz Kosarzycki
#
sudo apt-get install npm
sudo npm install -g react-native-cli
sudo ln -s /usr/bin/nodejs /usr/bin/node
cd /home/user/your/project/path
react-native init AwesomeProject
cd AwesomeProject
@danielecook
danielecook / parallel_bcftools.sh
Last active March 18, 2022 07:46
parallel bcftools
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
function bam_chromosomes() {
# Fetch chromosomes from a bam file
samtools view -H $1 | \
grep -Po 'SN:(.*)\t' | \
cut -c 4-1000
}
@kantale
kantale / example_tool.py
Last active March 8, 2016 04:47
How to setup galaxy with TORQUE in Amazon's cloud
#!/usr/bin/python
import sys
'''
Just a simple tool that adds the line number at
the end of each line
'''
with open(sys.argv[1]) as f_in, open(sys.argv[2], 'w') as f_out: