-
Notifications
You must be signed in to change notification settings - Fork 0
Format translation
Francesco Palozzi edited this page Jun 6, 2026
·
1 revision
RNAFile source = io.loadFile(Path.of("structure.bpseq"));
RNAFile translated = translator.translate(source, RNAFormat.DB);
System.out.println("New format: " + translated.getFormat());
translated.getContent().forEach(System.out::println);Before translating, check which target formats are compatible with a given source:
List<RNAFormat> available = translator.getAvailableTranslations(RNAFormat.BPSEQ);
available.forEach(System.out::println);Translate all loaded files at once using streams:
io.loadDirectory(Path.of("/data/bpseq/"));
List<RNAFile> translated = io.getLoadedRNAFiles().stream()
.map(f -> translator.translate(f, RNAFormat.DB))
.toList();- Supported Formats — format details and constraints
- Saving Files — write translated files to disk
- Examples
- Home
RNA2DFormatIO – Copyright © 2026 Francesco Palozzi.
University of Camerino – Licensed under the Apache License, Version 2.0.