Skip to content

Instantly share code, notes, and snippets.

@hliang
hliang / build-gcc.sh
Last active January 19, 2018 06:55 — forked from jeetsukumaran/build-gcc.sh
Build and Install GCC Suite from Scratch
#! /bin/bash
GCC_VERSION="6.4.0"
WORKDIR="$HOME/gcc"
INSTALLDIR="/BIGDATA/app/gcc/6.4.0"
# get the source code
cd $WORKDIR
wget http://www.netgull.com/gcc/releases/gcc-${GCC_VERSION}/gcc-${GCC_VERSION}.tar.xz
tar -xf gcc-${GCC_VERSION}.tar.xz
#!/usr/bin/perl
#
# Usage: sspace_evidence2agp.pl formattedcontigs.fasta < final.evidence > out.agp 2> out.stderr
# e.g. sspace_evidence2agp.pl intermediate_results/standard_output.formattedcontigs.fasta < standard_output.final.evidence > standard_output.agp 2> standard_output.agp.stderr
#
# What this script does:
# 1) Uses the *.final.evidence file created by SSPACE to generate an AGP v2.0 file.
# 2) Uses information in the *.formattedcontigs.fasta file to recover the original contig
# names.
# 3) Non-positive length gaps are output as component_type=U and gap length 100, as per the