Go to file
coolneng 24d7820165
Replace niv with flakes
2021-11-02 16:11:17 +01:00
data Remove redundant directories 2021-05-04 11:13:25 +02:00
src Consider the read start in the Cys location 2021-05-15 17:49:39 +02:00
.gitignore Generate FASTQ files from the simulated repertoire 2021-04-22 13:59:45 +02:00
LICENSE.md Initial commit 2021-02-18 00:01:17 +01:00
README.md Rename output file to curesim-HVR.fastq 2021-05-14 20:01:56 +02:00
flake.lock Replace niv with flakes 2021-11-02 16:11:17 +01:00
flake.nix Replace niv with flakes 2021-11-02 16:11:17 +01:00
generation.sh Add usage instructions to the README 2021-05-04 01:28:49 +02:00
shell.nix Replace niv with flakes 2021-11-02 16:11:17 +01:00



locigenesis is a tool that generates a human T-cell receptor (TCR), runs it through a sequence reader simulation tool and extracts CDR3.

The goal of this project is to generate both HVR sequences with and without sequencing errors, in order to create datasets for a Machine Learning algorithm.


  • immuneSIM: in silico generation of human and mouse BCR and TCR repertoires
  • CuReSim: read simulator that mimics Ion Torrent sequencing


This project uses Nix to ensure reproducible builds.

  1. Install Nix (compatible with MacOS, Linux and WSL):
curl -L https://nixos.org/nix/install | sh
  1. Clone the repository:
git clone https://git.coolneng.duckdns.org/coolneng/locigenesis
  1. Change the working directory to the project:
cd locigenesis
  1. Enter the nix-shell:

After running these commands, you will find yourself in a shell that contains all the needed dependencies.


An execution script that accepts 2 parameters is provided, the following command invokes it:

./generation.sh <number of sequences> <number of reads>
  • <number of sequences>: an integer that specifies the number of different sequences to generate
  • <number of reads>: an integer that specifies the number of reads to perform on each sequence

The script will generate 2 files under the data directory:

HVR.fastq curesim-HVR.fastq
Contains the original CDR3 sequence Contains CDR3 after the read simulation, with sequencing errors