Giter Club home page Giter Club logo

xsplit's Introduction

xSplit

xSplit is a versatile command-line tool engineered for rapid and controlled splitting of large tabular data files into multiple segments. By targeting a specific column, it groups adjacent rows with identical values, facilitating precise segmentation. Designed with a minimal memory footprint, xSplit is ideal for bioinformatics, big data applications, and parallel processing of extensive datasets.

Table of Contents

Features

  • Dynamic Splitting: Segment files based on a target column, ensuring uniform distribution.
  • High Efficiency: Optimized for speed with minimal memory usage, tailored for large-scale data.
  • Flexible Delimiters: Supports various delimiters, including tabs, commas, or user-defined characters.
  • Cross-Platform: Pre-compiled binaries available for Linux and macOS.

Installation

Choose the appropriate binary for your OS from the Releases page and add it to your PATH. Alternatively, build from source (instructions below).

Usage

Invoke xSplit with:

xSplit --splits NUMBER --prefix PREFIX --column INDEX [OPTIONS]

Options:

  • -n, --splits: Define output files (required).
  • -p, --prefix: Name output files (required).
  • -c, --column: Select common column index (1-based, required).
  • -d, --delimiter: Specify delimiter (default: tab).

Example:

Split a file by the 3rd column into 4 segments:

cat input.tsv | xSplit -n 4 -p ./output -c 3

Building from Source

  1. Clone the repository: git clone URL_TO_REPOSITORY
  2. Navigate to the directory: cd xSplit
  3. Compile: cargo build --release
  4. Find the binary in target/release

Contact

xSplit offers a specialized solution for segmenting large tabular data, maintaining the integrity of related rows. Its efficiency and adaptability make it a valuable tool for researchers, data scientists, and professionals handling vast datasets.

xsplit's People

Contributors

pre-mrna avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.