This is a Python script to convert CSV files into LOOM format that matches a given structure. The script takes an input CSV file and an output file name (.loom
extension will be added if not provided) and produces the transformed LOOM file.
- Python 3.7 or higher
- Clone this repository or download the script.
- Set up a Python virtual environment:
- Install the virtual environment package if it's not installed:
pip install virtualenv
- Create a new virtual environment:
virtualenv venv
- Activate the virtual environment:
- On Windows:
.\venv\Scripts\activate
- On Linux/Mac:
source venv/bin/activate
- On Windows:
- Install the virtual environment package if it's not installed:
- Install the necessary Python packages with pip:
pip install uuid
Run the script with the -i
or --input
parameter for the input CSV file and the -o
or --output
parameter for the output LOOM file.
Example:
python csv2loom.py -i input.csv -o output
This will create a file named output.loom
in the same directory as the script.
This project is licensed under the MIT License - see the LICENSE file for details.