Skip to content

Instantly share code, notes, and snippets.

Aligning > 1MB long sequences (e.g. long DNA sequences) can take quite long with Needleman Wunsch
An alternative is using the BWA:
http://bioinformatics-core-shared-training.github.io/cruk-bioinf-sschool/Day1/Sequence%20Alignment_July2015_ShamithSamarajiwa.pdf
#1 Create index:
../bwa-0.7.17/bwa index -p index_path -a bwtsw dna_reference.fasta
./bwa-0.7.17/bwa mem -t 16 index_path dna_of_interest.fasta | ./samtools-1.16.1/samtools sort -o output.bam -
@MartGro
MartGro / extract_roi.py
Last active December 15, 2022 15:41
How to create binary masks from a ImageJ ROI in python (from roi zip files)
# This relies on the read-roi library from here: https://github.com/hadim/read-roi
# Additionally, it requires shapely for the polygons
# And ray for parallelizing
from read_roi import read_roi_zip
import glob
#find all roi zip files
all_zip_path = glob.glob("your_folder/*.zip")
1) Download FlatCAM_beta_8.994_sources
2) Python 3.8
3) Manually install gdal from conda
4) Bug fixes:
- Vector bug fix

Übersicht: https://alte-gemuesesorten-erhalten.de/unsere-sorten/bezugsquellen/


Online-Shop der Samenbau Nordost Kooperative (https://samenbau-nordost.de/shop/?orderby=popularity) (Saatgut von den Betrieben Keimzelle, Landwirtschaftsbetrieb Johannishöhe, Saatgut- und Permakulturgarten Alt-Rosenthal, Saatguterhaltung & Jungpflanzen Albrecht Vetters, Samenbau Grete Peschken)

Online-Shop vom VERN e.V. (https://vern.de/bestellung/saatgut-bestellung) (Saatgut aus dem Erhaltungsgarten des VERN sowie von den Mitgliedsbetrieben Keimzelle, Landwirtschaftsbetrieb Johannishöhe, Saatgut- und Permakulturgarten Alt-Rosenthal, deinHof e.V., Gärtnerei Apfeltraum, Samenbau und Blumen Alexandra Becker)

Online-Shop von Dreschflegel (https://www.dreschflegel-shop.de/) (Saatgut von Samenbau Grete Peschken, Sonnensamen – Saatzucht Marcus Ströhla und weiteren 22 Betrieben)

Online-Shop vom Bio-Lieferservice „Der Landkorb“ (Saatgut vom Betrieb Keimzelle)

A collection of useful tools for simulating solar power installations with python

PVLIB:

https://github.com/pvlib/pvlib-python https://pvlib-python.readthedocs.io/en/stable/index.html

pvlib python is a community supported tool that provides a set of functions and classes for simulating the performance of photovoltaic energy systems. pvlib python was originally ported from the PVLIB MATLAB toolbox developed at Sandia National Laboratories and it implements many of the models and methods developed at the Labs. More information on Sandia Labs PV performance modeling programs can be found at the PVPMC. We collaborate with the PVLIB MATLAB project, but operate independently of it.

Prosumpy

https://github.com/energy-modelling-toolkit/prosumpy

@MartGro
MartGro / Chatterjees_Xi.ipynb
Created December 26, 2021 19:55
Quick demonstration of a new coefficient of correlation
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MartGro
MartGro / sort_csv _keep_header.sh
Created December 3, 2021 11:42
Sort CSV file based on numerical value of fist field (shell command)
{ head -n1 unsorted.csv && tail -n+2 unsorted.csv | sort -n --field-separator="," -k 1,1; } > sorted.csv;
@MartGro
MartGro / build.log
Created June 4, 2020 16:14
Log of failed XML::DOM::XPath installation
cpanm (App::cpanminus) 1.7044 on perl 5.030003 built for x86_64-linux
Work directory is /home/stud/ga42vor/.cpanm/work/1591284564.30315
You have make /usr/bin/make
You have LWP 6.44
You have /bin/tar: tar (GNU tar) 1.29
Copyright © 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
@MartGro
MartGro / build.log
Created June 4, 2020 16:12
Build Log of Failed Bioperl installation (DB_File)
cpanm (App::cpanminus) 1.7044 on perl 5.030003 built for x86_64-linux
Work directory is /home/stud/ga42vor/.cpanm/work/1591284525.30081
You have make /usr/bin/make
You have LWP 6.44
You have /bin/tar: tar (GNU tar) 1.29
Copyright © 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
import itertools
def listen_permutator(a,b):
comb = itertools.product(a,b)
comb = [flatten([j for j in i]) for i in comb]
#print(list(comb))
comb = set(tuple(sorted(i)) for i in comb if len(i) == len(set(i)))
return [list(i) for i in comb]
def flatten(l):