Skip to content

Instantly share code, notes, and snippets.

View masurca_installation_msu.sh
# MaSuRCA 3.2.6 installation on MSU hpcc
ssh dev-intel14
cd bin
wget https://github.com/alekseyzimin/masurca/releases/download/3.2.6/MaSuRCA-3.2.6.tar.gz
tar -xvzf MaSuRCA-3.2.6.tar.gz
cd MaSuRCA-3.2.6
module load GNU/4.8.3
BOOST_ROOT=install ./install.sh
View contig_sigs.py
import screed
import os
from os import path
import subprocess
from subprocess import Popen, PIPE
def make_dir(dirname):
if os.path.isdir(dirname) == False:
os.mkdir(dirname)
print("Directory created:", dirname)
View denovo_Trinity_make_gene_transcript_tables.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View bash_tricks.sh
# makes all files read only
chmod -w *
# renames files with underscores
for i in *.fastq; do j=$(echo $i | cut -d_ -f1-3 ); k=$(echo $i | cut -d_ -f5); echo mv $i "$j-$k"; done
# adds pwd to $PATH in .bashrc
echo export PATH=$(pwd):$PATH >> ~/.bashrc
# renames files
View agalma_tutorial_March2018.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View agalma_test_Jetstream
(agalma) ljcohen@js-169-78:~/tmp$ agalma test
Created temp directory '/home/ljcohen/tmp/agalma-test-transcriptome-VE7'
biolite.config.parse_env_resources: database=/home/ljcohen/tmp/agalma-test-transcriptome-VE7/agalma.sqlite
biolite.utils.safe_mkdir: directory '/home/ljcohen/tmp/agalma-test-transcriptome-VE7' already exists
SRX288285 [2018-03-05 20:03:47]
/home/ljcohen/tmp/agalma-test-transcriptome-VE7/SRX288285_1.fq.gz (3.6 MB)
/home/ljcohen/tmp/agalma-test-transcriptome-VE7/SRX288285_2.fq.gz (3.7 MB)
species: Agalma elegans
ncbi_id: 316166
itis_id: None
View recursive_wget.sh
# password required
wget -r -l1 --no-parent --user=user --password=password http://server.server.edu/path/to/files/
# no password required
wget -r -l1 --no-parent --no-check-certificate https://server.server.edu/path/to/files
# If ftp server, with user and password required:
wget -r --user XXX --password XXX ftp://1234.5678.10
# Login to ftp server,
@johnsolk
johnsolk / outfmt6_m8_NCBI_Blastheader.txt
Created Jan 19, 2018 — forked from Verrus/outfmt6_m8_NCBI_Blastheader.txt
NCBI Blast output header -outfmt 6 or -m8 header in tabular form
View outfmt6_m8_NCBI_Blastheader.txt
query_id subject_id pct_identity aln_length n_of_mismatches gap_openings q_start q_end s_start s_end e_value bit_score
View sourmash_msu_hpcc.sh
# load modules
module load GNU/4.8.3 anaconda parallel
module unload python
# setup conda env
conda create --name sourmash_nov2017 python=3.5
# use this to activate env:
source activate sourmash_nov2017
View msu_modules_dammit.sh
# load these modules to run dammit on MSU HPCC
source /mnt/home/ljcohen/.bashrc
module load GNU/4.8.3
module unload python
module load anaconda
module load parallel
source activate dammit
module load LAST/737
export DAMMIT_DB_DIR=/mnt/research/ged/data/dammitdb/