Skip to content

Feature/export

Ghost User requested to merge feature/export into develop

Created by: S4K4YUME

Changes

Through this PR our tool will have some rudimentary export functionality.

A button in the navigation-sidebar labeled export will export the current tree (stored in the app as this.tree) Hence exporting a subtree means first making that your "main" tree by clicking on the icon (next to the label of the node on the RHS) to do so.

Ideally I would like to expand on this by giving the user some options/settings to tweak the export. However, I think that is not the priority right now.

What does it export?

export-YYYY_MM_DD-HHMM.ngl which is a plain/text file with UTF-8 encoding. In the file we will have both the label/node name and it's length. Hence this might inflate some files (i.e. the NCBI) if they did not originally included a length attribute (we initialize to 1).

The latter point is why I think it would be nice to let the user tweak the export some through a small settings pop-up, though it might fall out of scope for this project and the goal we try to achieve. (Does it give us a better grade? Or do we personally think it is a must?)

Location of the button

I'm not too happy with how the buttons now stack in two rows, but in the buffer period I think we can handle this as part of the design-choices we will make.

Merge request reports

Loading