GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - umr-ds/NOREC4DNA at dev/unified

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

137 Commits
137 Commits

Folders and files

NameName
Last commit message
Last commit date
.INFILES
.INFILES
 
 
helpful_scripts
helpful_scripts
 
 
multiplexer
multiplexer
 
 
norec4dna
norec4dna
 
 
optimizer
optimizer
 
 
patch
patch
 
 
plot
plot
 
 
results/ACGT_dist
results/ACGT_dist
 
 
simulator
simulator
 
 
tests
tests
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
ConfigWorker.py
ConfigWorker.py
 
 
Dockerfile
Dockerfile
 
 
Dorn
Dorn
 
 
Jenkinsfile
Jenkinsfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
cdnarules.c
cdnarules.c
 
 
data_1mb.test
data_1mb.test
 
 
data_2mb.test
data_2mb.test
 
 
demo_decode.py
demo_decode.py
 
 
demo_encode.py
demo_encode.py
 
 
demo_multithreaded_raptor_encode.py
demo_multithreaded_raptor_encode.py
 
 
demo_online_decode.py
demo_online_decode.py
 
 
demo_online_encode.py
demo_online_encode.py
 
 
demo_raptor_decode.py
demo_raptor_decode.py
 
 
demo_raptor_encode.py
demo_raptor_encode.py
 
 
find_minimum_packets.py
find_minimum_packets.py
 
 
invivo_window_decoder.py
invivo_window_decoder.py
 
 
logo.jpg
logo.jpg
 
 
mosla.json
mosla.json
 
 
norec_analysis.py
norec_analysis.py
 
 
pyproject.toml
pyproject.toml
 
 
requirements.txt
requirements.txt
 
 
requirements_plot.txt
requirements_plot.txt
 
 
ru10_find_minimum_packets.py
ru10_find_minimum_packets.py
 
 
semi_automatic_reconstruction_toolkit.py
semi_automatic_reconstruction_toolkit.py
 
 
setup.py
setup.py
 
 
sleeping_beauty
sleeping_beauty
 
 
spacing_analysis.py
spacing_analysis.py
 
 
spacing_results
spacing_results
 
 
spacing_results_w_xor
spacing_results_w_xor
 
 
unified_dna_lt.py
unified_dna_lt.py
 
 
unified_dna_online.py
unified_dna_online.py
 
 
unified_dna_raptor.py
unified_dna_raptor.py
 
 

Repository files navigation

NOREC4DNA

NOREC4DNA is an all-in-one Suite for analyzing, testing and converting Data into DNA-Chunks to use for a DNA-Storage-System using integrated DNA-Rules as well as the MOSLA DNA-Simulation-API.

NOREC4DNA implements LT, Online, and Raptor (RU10) Fountain Codes.

Overview:

  • Install
    • Docker
    • Source
  • Usage
    • Docker
  • Tools
  • Example

Install

Using docker

⚠️ Docker builds are currently not recommended (deprecated)

  • Building the docker container from source:
    • git clone [email protected]:umr-ds/NOREC4DNA.git
    • docker build . --tag norec4dna
  • pulling the container from Dockerhub:
    • TBA once NOREC4DNA is available on Dockerhub

From source

  • Clone the repository:

    • git clone [email protected]:umr-ds/NOREC4DNA.git
  • OPTIONAL create a virtual environment (recommended):

    • python3 -m venv <name_of_virtualenv>
    • activate/source the newly created venv: source <name_of_virtualenv>/bin/activate (for UNIX)
  • Installing the dependencies:

    • depending on your distro you might need to manually install LLVM as well as gcc and build-essential
    • pip3 install -r requirements.txt
    • if a packages fails to install, it might be required to install the python3-dev packages using apt
  • Install NOREC4DNA:

    • python -m build . --installer pip
    • pip install -e .

If you plan to build NOREC4DNA from source under Windows we recommend using Anaconda!


Usage

Docker

To get the en- and decoded files from NOREC4DNA using docker you might need to map a volume into the container.

Alternatively you could use the docker cp command to transfer the desired files.

Find minimum

Building and running

Build the docker container:

docker build --tag norec4dna_gd

Run:

docker run --name norec4dna_gd_multiple_files -d -t -v /tmp/norec4dna/:/norec4dna/tmp norec4dna_gd (Parameter...)

Alternatively you can run the script directly: python3 find_minimum_packets.py <Parameters>

Parameters

First enter the filename of the file to generate the packets for.

FILE (--parameters)

The following parameters can be set:

--repair_symbols=[no_symbols]

The number of repair_symbols for ReedSolomon (default=2). This does only apply if --error_correction is set to reedsolomon

--list_size=[size]

Size of operational list per thread, inferred by the number cores if sequential is set to true. The list size should always be greater than the out_size to ensure optimal results (default=1000).

--out_size=[size]

Number of packets to save after combining the lists and sorting them by the packets error_prob (default=1000).

--chunk_size=[size]

Size of chunks to split the file into, inferred from number of chunks and the filesize if not set (default=0).

--number_of_chunks=[no_chunks]

Number of chunks to split the file into, ignored if chunksize is set to value != 0 (default=300).

--sequential

If set, all seed will be generated in a sequential matter. (Recommended!)

--spare1core

If activated, one core is not used for the calculation of the lists.

--method=[RU10/Online/LT]

Sets the method to generate the packets with. Available are RU10, Online and LT.

--seed_size_str=[I,H,...]

Set the struct-string for the seed field. See https://docs.python.org/3/library/struct.html#format-characters for more information

--drop_above

Sets an upper-limit for the error probability. WARNING: This might reduce the total number of sequences returned!

With optimization

--optimization

Activates the automated optimization of the chunk distribution in the packets with different options.

--overhead=[overhead (0.1=10%)]

Overhead to use for the optimization, where 0.1 means 10% additional packets based on the number of packets needed to decode the file (default=0.1).

--overhead_factor=[factor (0.1=10%)]

If the overhead is not enough to optimize the packets, the overhead factor is a factor that allows exceeding the given overhead to try to optimize the chunk distribution (default=0.0).

--errorprob_factor=[factor (0.1=10%)]

A factor for the maximum allowed error_prob of the additional packets based on the average error_prob of the packets needed to decode (default=0.1). If set to 0.0 no more packets may be added since the packets with the lowest error_probs were already used to decode the file.

--plot Generates and saves different plots to show the results.


Tools

demo_*.py

Demo applications for fast en- and decoding of sequences.

ru10_find_minimum_packets.py (Deprecated)

--error_correction [nocode, crc, reedsolomon]

Defines the error detection / correction algorithm to use per packet. (Default: nocode = no error-detection/correction)

--split_input

Sets the number of pre-splits to perform Default: 1 (= do not split the input file into multiple NOREC rounds) WARNING: If set, this value should be known during decoding (thus using a bruteforce approach this value might be reconstructed)

--store_as_fasta

If set, stores the result in a .fasta file instead of one file per sequence

--insert_header

If set, besides the created chunks an additional header chunk will be added. This chunk stores the filename and the correct padding for the last chunk. (Recommended!) WARNING: If not set, the reconstructed file will most likely be longer due to the \00-padding at the end.

ConfigWorker.py

Allows easy en- and decoding used .ini files. Since the supplied encoder can create such .ini files, this is especially useful for easy decoding.

helpful_scripts

there are various more or less useful scripts inside helpful_scripts/


Example

To try out NOREC4DNA you can use the demo_*_encode.py python scripts:

python demo_raptor_encode.py Dorn --error_correction=reedsolomon --repair_symbols=3 --as_dna --insert_header

this should create a new folder "RU10_Dorn" as well as an Dorn_*.ini file.

To decode the file from DNA one could either use demo_*_decode.py:

python demo_raptor_decode.py RU10_Dorn --use_header_chunk --error_correction=reedsolomon --repair_symbols=3 --number_of_chunks=145 (number as seen in the ini, unless --save_number_of_chunks was defined during encoding)

or use the ConfigWorker.py:

python ConfigWorker.py <name of the .ini-file>

The decoded file will be saved as DEC_RU10_Dorn if no header-chunk was added during encoding, otherwise the file will be saved under the correct filename.

if the header-chunk was NOT used, the created file will have padding \00-bytes at the end.

About

No description, website, or topics provided.

Resources

Readme
License
Activity
Custom properties

Stars

12 stars

Watchers

4 watching

Forks

4 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.