Make printable QR code labels for samples using basic information about a project. The sample names iterate from 1 to N, where N is the number of samples; the replicate numbers iterate from 1 to M, where M is the number of replicates per sample. We are planning for a future release where the sample names can be provided in a spreadsheet.
If you don't have Conda installed on your machine, install Miniconda for your operating system (Python 3.7+ version).
Create a conda environment called labels
where you will install the package qrcode
:
conda create -n labels pandas click python=3
source activate labels
pip install qrcode[pil]
Clone the Labelmaker repository to your computer:
git clone https://github.com/cuttlefishh/labelmaker
cd labelmaker
Just run the command generate_labels.py
with the required parameters, for example:
./generate_labels.py \
--project MyProject \
--contact MySurname \
--sample_type DNA_0.2um \
--date 20180929 \
--num_samples 5 \
--num_replicates 2 \
--label_width 1.05 \
--label_height 0.5
To learn more about each parameter, run ./generate_labels.py --help
.