Skip to content

fstrozzi/DNACodes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

DNACodes

A quaternary double parity error correcting Hamming DNA Barcodes for NGS application, written in Scala.

This work was adapted from the paper Generalized DNA Barcode Design Based on Hamming Codes

The API is minimal and the documentation is available here

import org.ptp.DNABarcodes._

val barcode = new DNABarcode("AATA")
barcode.gc // %GC content

// verify and correct a barcode
val wrongBarcode = "ATCAGCAA"
val correctedBarcode = HammingEight.verifyBarcode(wrongBarcode) 
correctedBarcode.verifiedBarcode	// return "NNNNN" if barcode can't be corrected
correctedbarcode.errorCorrected // return TRUE if error correction was performed sucessfully

For more examples on how to use this library, please have a look at the tests

Copyright(c) 2014 Francesco Strozzi

About

Hamming EC DNA Barcodes for NGS applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages