Simple solutions for some frequently met bioinformatics & programming problems.
Methods for convertion between common bioinformatics data format.
Download gtfToGenePred from UCSC
gtfToGenePred \
-genePredExt \
-ignoreGroupsWithoutExons \
your.gtf \
/dev/stdout | \
awk 'BEGIN { OFS="\t"} {print $12, $1, $2, $3, $4, $5, $6, $7, $8, $9, $10}' > your.GenePred
gffread input.gff3 -F -O -E -T -o- > output.gtf
import maya
time_now = maya.now().datetime(to_timezone='Asia/Shanghai')
import ast
x = u'[ "A","B","C" , " D"]'
x = ast.literal_eval(x)
#!/bin/bash
str="hello,world,i,like,you,babalala"
arr=(${str//,/ })
for i in ${arr[@]}
do
echo $i
done
M-% ;; replace
M-g g ;; go-to line
M-; ;; comment
C-x r k ;; Kill a rectangle