Skip to content

Instantly share code, notes, and snippets.

View kcho's full-sized avatar

Kang Ik Kevin Cho kcho

  • Psychiatry Neuroimaging Laboratory
  • Boston, MA, USA
View GitHub Profile
@kcho
kcho / Usan_script.sh
Last active June 13, 2020 02:50
SRR_fasta_download_trim_alignment
#!/bin/bash
# 12th June 2020
# workshop by Usan Ong
# Environment settings
analysis_dir=${PWD}
trimmomatic=/Users/kevin/Downloads/Trimmomatic-0.39/trimmomatic-0.39.jar
hisat2=/Users/kevin/Downloads/hisat2-2.2.0/hisat2
#downloaded from hisat2 website
@kcho
kcho / GLP_correlation.ipynb
Created May 18, 2017 04:10
GLP_correlation.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kcho
kcho / dti_mni_tractography.sh
Created May 18, 2017 02:23
MNI tractography
for i in $@
do
echo ${i}
MNIdir=${i}/DTI_MNI
if [ ! -d ${MNIdir} ]
then
mkdir ${MNIdir}
fi
# MNI registration
@kcho
kcho / intensity_correlation.ipynb
Created January 26, 2017 02:00
2d image intensity correlation
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kcho
kcho / GHR_Figure_in_the_MNI_space.ipynb
Created September 12, 2016 05:20
GHR_Figure_in_the_MNI_space
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Server
# BI server address
server=
id_at_server=
# Create id and append it to the BI server's authorized host list
ssh-keygen -t rsa
cat /root/.ssh/id_rsa.pub | ssh ${id_at_server}@${server} 'cat >> .ssh/authorized_keys'
#host checking
echo "Host *" >> /root/.ssh/config
import nibabel as nb
import numpy as np
from nilearn.image import resample_img
import pp
from glob import glob
import os
import re
def main():
workshopDataLoc = '/media/workshop/openData_for_workshop/NITRC/workshop'
@kcho
kcho / breaker.py
Created August 5, 2016 04:20
PCC random noise + measurement reduction
import nibabel as nb
import numpy.ma as ma
import numpy as np
from nilearn.image import resample_img
import pp
from glob import glob
import os
import re
def main():
import numpy as np
import cv2
from matplotlib import pyplot as plt
def drawMatches(img1, kp1, img2, kp2, matches):
@kcho
kcho / temple_CC_FA
Created December 24, 2015 02:29
temple freesurfer ROI
import pandas as pd
import numpy
import os
import seaborn as sns
import nibabel as nib
import matplotlib
from nilearn import plotting, image
import nipype.interfaces.freesurfer as fs
import nipype.interfaces.fsl as fsl
from nipype import Node, MapNode, Workflow