Skip to main content

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.

To learn more about this issue, check out this article.

Installation

pip3 install -U oct4th

If you don't have access to a computer where you can run pip, check out this Colab notebook.

Usage

As a CLI:

# Convert a CSV file to XLSX
oct4th --input ./data/test.csv --output ./data/test.xlsx

From Python:

import oct4th

# Convert a CSV file to XLSX
oct4th.csv_to_xlsx(file_in="./data/test.csv", file_out="./data/test.xlsx")

Developing

python3 -m venv ve
. ve/bin/activate
pip install setuptools wheel twine pytest xlsxwriter pandas xlrd

Run Tests

PYTHONPATH=. pytest ./tests/

Deploy

# 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/*

Metadata

Release files for oct4th 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for oct4th 1.0.1
File Size Uploaded
oct4th-1.0.1.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for oct4th 1.0.1
File Interpreter ABI Platform
oct4th-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.8 kB

Release files / oct4th-1.0.1.tar.gz

Download URL oct4th-1.0.1.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f8c0d36d025f7b10753349bc28597c9774c06dab80b71b8515ebc3ad98653262
BLAKE2b-256 checksum
How to use checksums
f15fa417fc4704f4a9535466de3fe63d72add2bedbfe7945a7bb23a67bc773a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

Release files / oct4th-1.0.1-py3-none-any.whl

Download URL oct4th-1.0.1-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6086afb789bb0b855dcc28055251dfe7d3076f7d6ba2a5ad9a6ca9b280d5111d
BLAKE2b-256 checksum
How to use checksums
2504c494d28f947e7c32a3ec43c0d490fd976f4b86b17564d6f27292ef7589ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page