Skip to content
/ sw2swb Public

A tool to convert Spacewalk text-based files (.swt) to Spacewalk binary files (.sw). This format based on the Hierarchical Data Format (HDF5).

License

Notifications You must be signed in to change notification settings

turner/sw2swb

Repository files navigation

sw2swb

A tool to convert Spacewalk text-based files (.swt) to Spacewalk binary files (.sw). This format is based on the Hierarchical Data Format (HDF5).

Installation

Tested with Python 3.12.2

pip install git+https://github.com/jrobinso/hdf5-indexer.git
pip install git+https://github.com/turner/sw2swb.git

Command Line Usage

Convert a text based ball & stick file to a binary format. The use of -single-point indicates the data has a single xyz location for a single genomic extent

sw2swb -f ball-and-stick.swt -n ball-and-stick -single-point

Convert a text based pointcloud file to a binary format. The use of -multi-point indicates the data has multiple xyz location for a single genomic extent

sw2swb -f pointcloud.swt -n pointcloud -multi-point

Examples

Command Line

wget "https://www.dropbox.com/scl/fi/6e0mgljxd9pqo7coi5dy7/ball-and-stick.swt?rlkey=flan64vir2791z78knpotbpcb&st=tfbrqgc3&dl=0" -O ball-and-stick.swt
pip install git+https://github.com/jrobinso/hdf5-indexer.git
pip install git+https://github.com/turner/sw2swb.git
sw2swb -f ball-and-stick.swt -n ball-and-stick -single-point

Google Colab Notebook - Convert CSV data to Spacewalk file

Convert CSV data to Spacewalk file

About

A tool to convert Spacewalk text-based files (.swt) to Spacewalk binary files (.sw). This format based on the Hierarchical Data Format (HDF5).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages