Fully Explained Git + Python Workflow with uv, ruff and ty
Ruff: Lint & Format Python at Ludicrous Speed
Unlocking Python's Potential: Why 'ty' Is the Tool You didn't Know You Needed
cave! `–` becomes often a single hyphen. Please be aware.
| Replaces: pyenv | Purpose | Command |
| Install a specific Python version | uv python install <version> | |
| List available Python versions | uv python list | |
| Use a specific Python version in a project | uv python use <version> | |
| Automatically install the required Python version | uv run –python <version> script.py | |
| Pin the Python version for a project | uv python pin |
| ############################## | |
| # igenomes | |
| ############################## | |
| # download GRCm38 from igenomes | |
| wget ftp://igenome:G3nom3s4u@ussd-ftp.illumina.com/Mus_musculus/Ensembl/GRCm38/Mus_musculus_Ensembl_GRCm38.tar.gz | |
| tar xvfz Mus_musculus_Ensembl_GRCm38.tar.gz |
| # install IGV viewer for visualization of alignments | |
| wget http://data.broadinstitute.org/igv/projects/downloads/2.4/IGV_2.4.8.zip | |
| unzip IGV_2.4.8.zip | |
| cd IGV_2.4.8 | |
| bash igv.sh |
| # flagstat.fpath <- "~/testing/br-mgd-srt-srt.txt" | |
| # content of the file (flagstat output): | |
| 51712430 + 0 in total (QC-passed reads + QC-failed reads) | |
| 0 + 0 secondary | |
| 0 + 0 supplementary | |
| 0 + 0 duplicates | |
| 46380832 + 0 mapped (89.69% : N/A) |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ;; notes from the book "Vom Problem zum Programm" by Herbert Klaeren and Michael Sperber | |
| ;; on object oriented programming | |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ;; object oriented programming = message passing style + state + self + inheritance | |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ;; object = active container in message passing style |
| """ | |
| Lisp languages support an image-based development cycle at the REPL. | |
| R - having its roots in Lisp - it was first implemented in Scheme - has overtaken this. | |
| R's base command `save.image(filepath)` can save the state of an entire REPL session in a file, | |
| and next time you start R, you can start where you stopped, by hitting `load(filepath)`. | |
| I was asking myself, since Python's REPL is ipython, what supports | |
| similar functionailities for pythonistas. |
#################################################################
# How to install Arch in your Android (into the App TermuxArch)
# and be able to use your Android device like a personal computer
# even running a X server to have GUI
#################################################################
###############################
# Install Termux
| import pandas as pd | |
| df = pd.read_csv("XXXXX_20180101_20171231_start.csv", sep=";", header=None) | |
| df_target = pd.read_csv("XXXX_20180101_20171231_test2_target.csv", sep=";", header=None) | |
| """ | |
| inspect by: | |
| df.head() |