https://github.com/robertaboukhalil/oct4th
CLI for converting CSV/TSV files to Excel spreadsheets without mangling gene names
https://github.com/robertaboukhalil/oct4th
excel genes
Last synced: about 1 year ago
JSON representation
CLI for converting CSV/TSV files to Excel spreadsheets without mangling gene names
- Host: GitHub
- URL: https://github.com/robertaboukhalil/oct4th
- Owner: robertaboukhalil
- License: mit
- Created: 2020-06-07T20:39:54.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2023-07-12T02:44:21.000Z (about 3 years ago)
- Last Synced: 2025-04-29T11:56:35.304Z (about 1 year ago)
- Topics: excel, genes
- Language: Python
- Homepage: https://pypi.org/manage/project/oct4th
- Size: 14.6 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# oct4th
------------------
CLI tool to convert CSV/TSV files to Excel spreadsheets, while not converting gene names (e.g. OCT4, DEC1) into dates in the process.
For converting small files, you can use the [Oct4th web application](https://oct4th.sandbox.bio).
To learn more about this issue, check out [this article](https://medium.com/@robaboukhalil/how-to-fix-excels-gene-to-date-conversion-5c98d0072450).
## Installation
```bash
pip3 install -U oct4th
```
## Usage
### As a CLI:
```bash
# Convert a CSV file to XLSX
oct4th --input ./data/test.csv --output ./data/test.xlsx
```
### From Python:
```python
import oct4th
# Convert a CSV file to XLSX
oct4th.csv_to_xlsx(file_in="./data/test.csv", file_out="./data/test.xlsx")
```
## Developing
```bash
python3 -m venv ve
. ve/bin/activate
pip install setuptools wheel twine pytest xlsxwriter pandas xlrd
```
## Run Tests
```bash
PYTHONPATH=. pytest ./tests/
```
## Deploy
```bash
# Clean up and rebuild
. ve/bin/activate
rm -rf ./build/ ./dist/
python3 setup.py sdist bdist_wheel
# Check before deploying
twine check dist/*
# Upload to testpypi
python3 -m twine upload --repository testpypi dist/*
# Test install
deactivate; pip3 install -U -i https://test.pypi.org/simple/ oct4th==1.0.0b9
# Deploy to pypi
# python3 -m twine upload --repository pypi dist/*
```