Skip to content

Instantly share code, notes, and snippets.

View wyim-pgl's full-sized avatar
😜

Won Cheol Yim wyim-pgl

😜
View GitHub Profile
@wyim-pgl
wyim-pgl / gist:44de6b5b089adb6335bc
Created March 23, 2016 22:15 — forked from brantfaircloth/gist:895282
Substitution models in mrbayes

##GTR lset applyto=() nst=6 # GTR lset applyto=() nst=6 rates=propinv # GTR + I lset applyto=() nst=6 rates=gamma # GTR + gamma lset applyto=() nst=6 rates=invgamma # GTR + I + gamma

##SYM

lset applyto=() nst=6                           # SYM

prset applyto=() statefreqpr=fixed(equal)

@wyim-pgl
wyim-pgl / mummer_duplicate_contigs
Created April 1, 2016 21:04 — forked from inodb/mummer_duplicate_contigs
Map contigs against itself with MUMmer. Then find duplicate contigs
for row in $(cat nucmer.coords | awk -v OFS=, '{if ($10 == 100.00 && $11 == 100.00 && $7 == 100.00 && $12 != $13) {print $12,$13}}')
do
echo $row | tr ',' '\n' | sort | tr '\n' ',' | sed 's/,$//'
echo
done | cut -d, -f2 | sort -u > duplicatecontigs.txt
@wyim-pgl
wyim-pgl / map3.pl
Created May 4, 2017 22:04 — forked from JEEN/map3.pl
use strict;
use warnings;
use Text::CSV_XS;
use Data::Printer;
my $csv = Text::CSV_XS->new({ binary => 1, sep_char => "\t" });
open my $fh, "<", $ARGV[0] or die $!;
open my $fh2, "<", $ARGV[1] or die $!;
# 1. 키맵 생성
@wyim-pgl
wyim-pgl / map2.pl
Created May 4, 2017 22:05 — forked from JEEN/map2.pl
map2.pl
use strict;
use warnings;
use Text::CSV_XS;
use Data::Printer;
my $csv = Text::CSV_XS->new({ binary => 1, sep_char => "\t" });
open my $fh, "<", $ARGV[0] or die $!;
open my $fh2, "<", $ARGV[1] or die $!;
# 1. 키맵 생성
#!/bin/bash
# bash generate random alphanumeric string
#
# bash generate random 32 character alphanumeric string (upper and lowercase) and
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
# bash generate random 32 character alphanumeric string (lowercase only)
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
@wyim-pgl
wyim-pgl / maker_genome_annotation.md
Last active July 26, 2023 07:19 — forked from darencard/maker_genome_annotation.md
In-depth description of running MAKER for genome annotation.

Genome Annotation using MAKER

MAKER is a great tool for annotating a reference genome using empirical and ab initio gene predictions. GMOD, the umbrella organization that includes MAKER, has some nice tutorials online for running MAKER. However, these were quite simplified examples and it took a bit of effort to wrap my head completely around everything. Here I will describe a de novo genome annotation for Boa constrictor in detail, so that there is a record and that it is easy to use this as a guide to annotate any genome.

Software & Data

Software prerequisites:

  1. RepeatModeler and RepeatMasker with all dependencies (I used NCBI BLAST) and RepBase (version used was 20150807).
  2. MAKER MPI version 2.31.8 (though any other version 2 releases should be okay).
  3. [Augustus](http://bio