MCPcopy Index your code
hub / github.com/Koeng101/dnadesign

github.com/Koeng101/dnadesign @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
1,074 symbols 2,781 edges 154 files 464 documented · 43%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

DnaDesign

GitHub license Tests Test Coverage

DnaDesign is a Go project creating tools for automated genetic design, spanning from the lowest levels of DNA sequence manipulation to higher level functionality.

  • Practical: DnaDesign tooling is meant to be used by practitioners of synthetic biology.

  • Modern: DnaDesign is at the bleeding edge of technology. We are happy to adopt the newest advancements in synthetic biology, wasm, LLMs, and more to get our tools in the hands of people who need it.

  • Ambitious: DnaDesign's goal is to be the most complete, open, and well used collection of computational synthetic biology tools ever assembled. If you like our dream and want to support us please star this repo, request a feature, or open a pull request.

Documentation

Repo organization

On the highest level: * lib contains core functionality as a go library. * external contains functions to work with external bioinformatics command-line interfaces. * py contains code to use the dnadesign library in python using a C shared library.

Detailed repo organization

Python

We have python package, dnadesign, which allows python users to use dnadesign. This is a work-in-progress: more documentation coming soon!

Contributing

Write good, useful code. Open a pull request, and we'll see if it fits!

License

Sources

There are a few pieces of "complete" software that we have directly integrated into the source tree (with their associated licenses). These projects don't receive updates anymore (or just bug fixes with years between). In particular, lib has most of these, since we intend to have as few dependencies as possible in lib. The integrated projects include the following. - svb in lib/bio/slow5/svb - intel-cpuid in lib/bio/slow5/svb/intel-cpuid - wordwrap in lib/bio/genbank - errgroup in lib/bio/

Other

DnaDesign is a fork of Poly at commit f76bf05 with a different mission focus.

Changelog

All notable changes to this project will be documented here.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

  • Adds uniref parser #107
  • Fixes iso-8859-1 error in reading uniref data dumps #106
  • Updates uniprot parser to read IDs #104
  • Fixes RecursiveFragment to not add flanks to the initial input #102
  • Fixes add flank bug, releases new version of python lib #101
  • Adds feature for adding flanks to RecursiveFragment. #100
  • Adds cloning and recursion functions to python. #96
  • Adds recursive fragmentation. #92
  • Updated megamash documentation to be more specific. #91
  • Adds automatic python documentation generation. #88
  • Adds genbank parsing to python package. Release version 0.1.5 of dnadesign python. #87
  • Adds fastq parsing to python package. Releases version 0.1.4 of dnadesign python. #86
  • Integrated errgroup into source tree #84
  • Added kmer detection for ligation events in cloning and removed enzyme manager #83
  • Added option for linear ligations #82
  • Added minimal python packaging #81
  • Greatly simplified the Ligate function #77
  • Updated barcoding functions to handle edge case of hanging-edge barcodes #74
  • Updated megamash to use int instead of uint for minimal Kmer counts (so you can use -1) #73
  • Added bcftools to external #72
  • Fixed bug in PCR where certain matching primers wouldn't create any amplicons #71
  • Updated seqhash2 to use base58 rather than base64 #69
  • Updated dual barcodes primer sets to be created without csv files #67
  • Added workers to bio as a way to process data #62
  • Improved megamash efficiency and added []Match JSON conversion #61
  • Added barcoding functionality for sequencing reads #59
  • Added the megamash algorithm #50
  • Changed parsers to return values instead of pointers. Added some sequencing utils #49
  • Added minimap2 and samtools(pileup) integrations in external #46
  • Added sam parser #5
  • Added the LinearFold folding algorithms #38
  • Added Get function to uniprot for getting a single uniprot xml from online #37
  • Removed murmur3 in favor of crc32 for mash #33
  • Patch start codon problems #32
  • Added tests for OpenBSD #31
  • Removed a large number of unneeded dependencies #28
  • Added full rebase text database into tree 27b41fb
  • Updated uniprot to be a standardized parser #22
  • Purged unsupported gff parser #23
  • Moved library to lib directory #21
  • Fixed issue with JSON codon tables #4
  • Added Seqhash v2 #3
  • Added lowercase methylation options during cloning #2
  • Standardized parsers with generics #1

Extension points exported contracts — how you extend this code

ParserInterface (Interface)
ParserInterface is a generic interface that all parsers must support. It is very simple, only requiring two functions, H [8 …
lib/bio/bio.go
Table (Interface)
Table is an interface encompassing what a potentially codon optimized Translation table can do [1 implementers]
lib/synthesis/codon/codon.go
SequenceFolder (Interface)
(no doc) [3 implementers]
lib/fold/fold.go
DataTypes (Interface)
****************************************************************************** Aug 30, 2023 Lower level interfaces ***
lib/bio/bio.go
HeaderTypes (Interface)
HeaderTypes defines the possible header types returned by every parser.
lib/bio/bio.go
WorkerFunc (FuncType)
WorkerFunc defines the type of function that will be run by each worker. It should take a context as its argument for ca
lib/bio/bio.go
Decoder (Interface)
Decoder decodes XML elements2
lib/bio/uniprot/uniprot.go

Core symbols most depended-on inside this repo

parseItemsIntoIntMatrix
called by 32
lib/fold/mfe/energy_params/parse.go
Wait
called by 27
lib/bio/errgroup/errgroup.go
generateCodonTable
called by 25
lib/synthesis/codon/codon.go
Parse
called by 24
lib/bio/bio.go
Go
called by 24
lib/bio/errgroup/errgroup.go
Next
called by 22
lib/bio/bio.go
SET_HELIX_STACKING
called by 21
lib/fold/linearfold/linearfold.go
read
called by 21
lib/bio/genbank/genbank.go

Shape

Function 725
Struct 162
Method 137
TypeAlias 25
Class 15
Interface 7
FuncType 3

Languages

Go93%
Python7%
C++1%

Modules by API surface

lib/bio/uniprot/xml.go73 symbols
lib/fold/linearfold/linearfold.go57 symbols
lib/bio/genbank/genbank.go44 symbols
lib/bio/genbank/genbank_test.go39 symbols
lib/fold/mfe/energy_params/parse.go33 symbols
py/dnadesign/parsers.py32 symbols
lib/bio/bio.go31 symbols
lib/synthesis/codon/codon.go28 symbols
lib/bio/slow5/svb/asm/asm.go27 symbols
py/lib.go25 symbols
lib/bio/slow5/svb/cpuid/cpuid_amd64.go18 symbols
lib/synthesis/codon/codon_test.go17 symbols

For agents

$ claude mcp add dnadesign \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact