{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Converting .pairs to .parquet" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Here is how a classical .pairs file looks like:" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\".pairs" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "For more details about .pairs file format please look at the [documentation](https://pairtools.readthedocs.io/en/latest/index.html)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "In order to convert .pairs to .parquet you need to run an easy cli command (which has similar parameters to pairtools functions). Here is an example with useful parameters:" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "pairs_to_parquet csv-to-parquet -o test.parquet --nproc 4 --tmpdir /temp_directory --memory 35G test.pairs.gz" ] } ], "metadata": { "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.12.5" } }, "nbformat": 4, "nbformat_minor": 2 }