Skip to content

Instantly share code, notes, and snippets.

View whatever60's full-sized avatar
🎯
Focusing

Yiming Qu whatever60

🎯
Focusing
View GitHub Profile
from datetime import datetime, date
# Nested f-string
now = datetime.now()
date_spec = now.strftime("%Y-%m-%d %H:%M:%S")
print(f"{now:{date_spec}}")
number = 123456.78987654
spec = ".2f"
print(f"{number:{spec}}")
@whatever60
whatever60 / main.py
Last active July 25, 2023 19:26
scRNA-seq clustering
"""
Requirements:
- scanpy (https://www.github.com/theislab/scanpy)
- SEACells (https://www.github.com/dpeerlab/SEACells)
- Input a adata file or a 10X folder representing a single cell RNA-seq experiment.
- Perform processing (quality control, HVG selection, normalization) using scanpy,
clustering with Leiden (in scanpy) and finding metacell using SEACells.
- Output an adata file and plot several figures.

Guide to a comfortable Windows 11

System settings

  • 任务栏设置
    • 在桌面模式下自动隐藏任务栏
    • 移除不想要的图标
  • 打开存储感知
  • 多任务处理 Alt + Tab:仅打开的窗口
  • 电源和睡眠:从不
@whatever60
whatever60 / email_pro.py
Created December 15, 2020 14:55
send email in batch, created for our student's day
'''
ref:
https://blog.csdn.net/zw981791669/article/details/102219581
https://www.cnblogs.com/iwxk/p/11164627.html
'''
import email
from email.header import Header
from email.mime.text import MIMEText
from email.mime.application import MIMEApplication