Entering edit mode
8 days ago
eggrandio ▴ 40
I was wondering if there is any package that allows reading Snapgene .dna files directly into R. Even if it does not conserve the features/primers/annotations it would be enough.
I know I can export them from Snapgene into fasta or genbank format, but I am looking for a way to import them directly in .dna format.
.dnafiles appear to be in a binary format so more than likely not.
They are binary files, but their format is well established (https://incenp.org/dvlpt/docs/binary-sequence-formats/binary-sequence-formats.pdf) and they should be "easy" to import. In fact, there are libraries for Python that import them directly as dictionaries or Biopython SeqRecords (https://pypi.org/project/snapgene-reader/)