本家様 https://github.com/cdienem/StarTool
The StarTool executes commands for selecting and editing data in a Relion STAR file.
The given order of commands defines the order of execution meaning that editing commands work on previously made selections (except when changing global properties as tablenames, column names etc.).
Such edited STAR files can be written out as a new starfile and subsets (selections) can be exported as well.
Behind the scenes, the STAR file is loaded into an in-memory SQLite3 database.
Selections and edits are executed in that database and only when writing back into a file, the data will be retrieved from the database.
Therefore, the StarTool could be easily extended as an interface for solutions where STAR files are stored in an SQLite database.
(deepL様翻訳)
StarToolは、Relion STARファイル内のデータを選択・編集するためのコマンドを実行します。
指定されたコマンドの順序が実行順序を定義します。つまり、編集コマンドは以前に選択されたものに対して機能します(タブ名、列名などのグローバルプロパティを変更する場合を除く)。
そのような編集されたSTARファイルは、新しいSTARファイルとして書き出すことができ、サブセット(選択項目)も同様にエクスポートできます。
裏側では、STARファイルはインメモリSQLite3データベースに読み込まれます。
選択と編集はそのデータベースで実行され、ファイルに書き戻すときだけ、データがデータベースから取り出されます。
したがって、StarToolは、STARファイルがSQLiteデータベースに保存されているソリューションのインターフェースとして簡単に拡張できます。