#sequences #frame #nucleotide #amino #acid #rna #dna

nightly bin+lib orf

Translates nucleotide sequences to Amino Acid sequences. (RNA and DNA, shifts reading frames and reverses)

1 unstable release

Uses old Rust 2015

0.1.0 Jun 4, 2016

#5 in #amino

MIT license

19KB
343 lines

transcriptome_translator

Translates nucleotide sequences to Amino Acid sequences. (RNA and DNA, shifts reading frames and reverses)

Takes a FASTA file of nucleotide sequences and outputs another FASTA file with Amino Acids.

Deserializing is done with nom.

Threadpools are utilized to allow scaling with hardware, after nom has finished parsing tasks are dispatched as threads become available and then the file is written into a fasta format text file.

WARNING: You must edit main.rs to the /home/user/transcriptome_translator/test/test-nucleo.FASTA for this to work properly, it will panic because of the unwrap for loading the file to memmap.

Compile Time Instructions:

Included in the repo is test/test-nucleo.FASTA, these are test FASTA encoded sequence data than can be used for your testing purposes. To compile your data find where the file is loaded in fn start_parse() and modify the Path to suit your needs, currently only works on linux.

The path must be the full path e.x "/home/user/transcriptome_translator/test/test-nucleo.FASTA"

Caveats(for which there were many):

FASTA encodings must decode to utf-8 compliant format.

##TODO:

  • Use fold_many_0! from nom to allow parsing deserialized structures as they are completed instead of weaiting for a vector of types.
  • Remove warnings by fixing camel_casing and other assorted warnings.
  • Remove the FASTA parser from main.rs and move it to it's own folder/repo.
  • Complete FASTA spec to include support for ';'.
  • Create a parser to read FASTA in reverse to eliminate the need for vec.reverse(), this should be done with another thread.

#Contributors

Last but certainly not least:

panicbit

Dependencies

~4MB
~79K SLoC