This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
using namespace std; | |
template<typename T1> | |
class test_class{ | |
T1 X; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
using namespace std; | |
class base{ | |
public: | |
float X; | |
void getX(){ cout << endl << X << endl;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Claas Heuer, 2014 | |
############################### | |
############################### | |
# Using transformed model for efficient GBLUP | |
# | |
# X = Incidence matrix for fixed effects | |
# G = Genomic relationship matrix | |
# y = vector of phenotypes | |
# id = vector of ids |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# take from http://serverfault.com/questions/172806/use-sed-recursively-in-linux | |
find . -type f -print0 | xargs -0 sed -i 's/foo/bar/g' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get svn: | |
sudo apt-get install subversion | |
# get the svn-repository you are working with (e.g. Rforge project) | |
svn checkout svn+ssh://[email protected]/svnroot/cgen/ | |
# a local folder on your machine will be created in the place from where | |
# you executed the command. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from the Rfroge manual: | |
install.packages("mypackage", repos = c("http://R-Forge.R-project.org", | |
"http://your.nearest.CRAN.mirror.org"), dep = TRUE) | |
# for example | |
install.packages("cgenpp", repos=c("http://R-Forge.R-project.org", | |
"http://cran.at.r-project.org"),dependencies=TRUE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Download the most recent source package | |
curl -L -o master.zip https://github.com/cheuerde/cpgen/archive/master.zip | |
# Extract source package | |
unzip master.zip | |
mv cpgen-master cpgen | |
HAS_MV=true | |
# check if Makevars-file exists | |
if [ ! -e ${HOME}/.R/Makevars ];then mkdir ${HOME}/.R; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'calc' <- function (asreml) | |
{ | |
summ <- summary(asreml) | |
vc <- summ$varcomp | |
DF <- nrow(vc) | |
if ("Fixed" %in% levels(vc$constraint)) | |
DF <- DF - table(vc$constraint)["Fixed"] | |
if ("Constrained" %in% levels(vc$constraint)) | |
DF <- DF - table(vc$constraint)["Constrained"] | |
names(DF) <- "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Befehl 'sed' | |
sed 's/AA/0/g' phen_gen.txt >phen_gen_neu.txt | |
# ein programm lokal ausführen: | |
./ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# GNU GCC COMPILER INSTALLATION SCRIPT | |
# | |
# Copyright (c) 2014 Benjamin Beurdouche. All rights reserved. | |
# | |
# You might want to modify the first line to specify your own install location. | |
# Prerequisites : binutils autoconf automake libtool autogen gettext cloog dejagnu | |
OlderNewer