Thursday, November 5, 2015

How to kill process on Linux


lsof +D RNA-SeQC     to list the running programs on this folder


I got

lsof: WARNING: can't stat() nfs file system /mmjggl/packrat/data00
      Output information may be incomplete.
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF  NODE NAME
java    23583  phe   18r   REG   0,59 23365603 32063 RNA-SeQC/.nfs0000000000007d3f0000106d
java    23583  phe   35w   REG   0,59  4091782 32164 RNA-SeQC/ExpoNoTrim/highexpr/.nfs0000000000007da40000106e





kill 23583

Quickly select Excel cells and do the same to all

Zoom out first

Find out which line(line number) contains your character grep -n

grep -n


for more flags, man grep

how to use line break in the find and replace feature of the texteditor on Mac

1. open a text file using the texteditor
2. copy a linebreak character(a complete empty line)
3. command + F to start finding, and past that linebreak character onto the box for replacement


Anyway the linebreak character must be copied but can't be typed in


Don't mass up the linebreak by ^M character

[solved]mv: cannot move ‘tophat150309’ to a subdirectory of itself, ‘tophat150309/tophat150309’

When seeing this message, you are trying to move something to itself

Attention: all the other files you are trying to move, if any, has already been moved to the place you pointed to

[solved]How to grep a bracket ">" using grep


grep '>' mm9+NIST-fixed+Caltech.spikes.fa

ImageJ merge GFP and white field photos

Drag the two images to ImageJ to open;
Image -> color -> merge channels
Add GFP to green and white to gray.

Ctrl + shift + Z and Ctrl + shift+C to further adjust


One trick:  For GFP signal, you'd better use G4.5 method of scaling to make the weak signals visible