Skip to content

Instantly share code, notes, and snippets.

View yong27's full-sized avatar

Hyungyong Kim yong27

View GitHub Profile
@yong27
yong27 / apply_df_by_multiprocessing.py
Last active April 12, 2023 04:35
pandas DataFrame apply multiprocessing
import multiprocessing
import pandas as pd
import numpy as np
def _apply_df(args):
df, func, kwargs = args
return df.apply(func, **kwargs)
def apply_by_multiprocessing(df, func, **kwargs):
workers = kwargs.pop('workers')
@yong27
yong27 / geo_downloader.py
Last active May 19, 2020 18:19
GEO file downloader from query search result CSV
# -*- coding:utf-8 -*-
"""
GEO file downloader
Requirements
* beautifulsoup4 (pip install lxml beautifulsoup4)
* wget
Usage
1. get CSV file in the GEO browse page.
@yong27
yong27 / COVID19-analysis-0306.ipynb
Created March 6, 2020 05:48
코로나바이러스감염증-19 감염현황 데이터 분석 (03-06 00:00 현재)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yong27
yong27 / COVID19-analysis-0305.ipynb
Created March 5, 2020 06:42
코로나바이러스감염증-19 감염현황 데이터 분석 (03-05 00:00 현재)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yong27
yong27 / COVID19-analysis-0304.ipynb
Last active March 4, 2020 03:36
코로나바이러스감염증-19 감염현황 데이터 분석 (03-04 00:00 현재)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yong27
yong27 / COVID19-analysis-0303.ipynb
Created March 3, 2020 04:13
코로나바이러스감염증-19 감염현황 데이터 분석 (03-03 00:00 현재)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yong27
yong27 / COVID19-analysis-0301.ipynb
Created March 1, 2020 15:36
코로나바이러스감염증-19 감염현황 데이터 분석 (03-01 16:00 현재)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yong27
yong27 / COVID19-analysis-0229.ipynb
Created February 29, 2020 11:02
코로나바이러스감염증-19 감염현황 데이터 분석 (02-29 16:00 현재)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
"""
오늘은 8, 7, 3, 4로 10을 만들어 봅시다!
존재하는 모든 연산을 허용합니다. 단, 숫자 붙이기(ex. 1과 5를 붙여 15를 만드는 것 등)는 허용하지 않습니다. 각 숫자는 한 번씩만 사용합시다.
https://twitter.com/MathQ_kr/status/882781179849482240
"""
from itertools import permutations, product
numbers = 7, 8, 3, 4
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# 1KG VCF analysis\n",
"\n",
"1KG VCF 파일의 일부 (22번 염색체에서 5천개 변이 추철)"
]