Skip to content

Instantly share code, notes, and snippets.

View suqingdong's full-sized avatar
🐍

Qingdong Su suqingdong

🐍
View GitHub Profile
@suqingdong
suqingdong / README.md
Last active July 25, 2023 08:12
Convert image to SVG format with wrapper

Installation

python3 -m pip install -r requirements.txt

Usage

python3 img2svg.py input.png

python3 img2svg.py input.png -c conf.txt
@suqingdong
suqingdong / PubMed-Pubdate.md
Last active November 30, 2022 02:47
PubMed-Pubdate
@suqingdong
suqingdong / OA-PDF-DOWNLOAD.md
Last active October 31, 2022 09:32
Open Access Article PDF Download
@suqingdong
suqingdong / demo.md
Last active January 5, 2022 08:40
figshare.com数据集批量下载

image

image

*********************************************************
* _ooOoo_ *
* o8888888o *
* 88" . "88 *
* (| ^_^ |) *
* O\ = /O *
* ____/'---'\____ *
* .' \\| |// '. *
* / \\||| : |||// \ *
* / _||||| -:- |||||- \ *
// Title文字滚动效果
$(document).ready(function () {
var s = (document.title + " ... ").split("");
function title_move(){
s.push(s[0]);
s.shift();// 去掉数组的第一个元素
document.title = s.join("");
}
setInterval(title_move, 500);//设置时间间隔运行
@suqingdong
suqingdong / citations.py
Created December 20, 2019 02:13
Generate citations for given PMID(s)
#!/usr/bin/env python2
# coding: utf-8
"""\033[1;3;34m
Generate citations for given PMID(s)
\033[0m"""
import os
import re
import sys
import requests
@suqingdong
suqingdong / mutation_stats.py
Created November 19, 2019 04:48
mutations statistics
#!/usr/bin/env python
# -*- encoding: utf8 -*-
"""
mutation statistics for each sample
"""
import os
import re
import time
from functools import partial
from collections import defaultdict
@suqingdong
suqingdong / cosmic_download.sh
Created November 1, 2019 09:27
COSMIC Data Downloader
username=your_username
password=your_password
auth_string=$(echo $username:$password | base64)
echo "# auth string: $auth_string"
cosmic_url=https://cancer.sanger.ac.uk/cosmic
# ===================
# get current version
@suqingdong
suqingdong / install_sjm.sh
Created November 1, 2019 02:15
Compile SJM with SGE
set -e
INSTALL_DIR=/mnt/xxxxx/sjm/sjm-1.2.0
# ===============
# 1 install tclap
# ===============
echo install tclap ...
wget https://jaist.dl.sourceforge.net/project/tclap/tclap-1.2.2.tar.gz
tar xf tclap-1.2.2.tar.gz