All entries


Python matplotlib: all about fonts

Fonts output into pdf as text, not shape, to be recognized in Illustrator: Change fonts style for all, change the default: Change fonts style for labels, tick marks, and titles: (for each plot, not changing the default) Change legend font style: (for each plot, not changing the default) Source:https://jonathansoma.com/lede/data-studio/matplotlib/exporting-from-matplotlib-to-open-in-adobe-illustrator/https://stackoverflow.com/questions/20753782/default-fonts-in-seaborn-statistical-data-visualization-in-ipythonhttps://stackoverflow.com/questions/47112522/matplotlib-how-to-set-legends-font-typehttps://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.legend.html

Unix rearrange columns

FS and OFS specify the input/output separator Source:https://unix.stackexchange.com/questions/344541/easiest-way-to-rearrange-columns-and-manipulate-text-file

Liftover bam files

The most straightforward way is using CrossMap. Taking from hg19 to hg38 as example: genome liftover chain files can be downloaded here: http://hgdownload.cse.ucsc.edu/goldenpath/hg19/liftOver/ (change according to your needs) It is suggested to always use ‘-a’ option according to the CrossMap website. Source:http://crossmap.sourceforge.net/#convert-bam-cram-sam-format-files

Unix check if a file exists

If need to match wildcard in the file names Source:https://linuxize.com/post/bash-check-if-file-exists/https://stackoverflow.com/questions/6363441/check-if-a-file-exists-with-wildcard-in-shell-script

Loading…

Something went wrong. Please refresh the page and/or try again.