### Installation:
$ pip install sliders
## text2table
### Description: Command-line tool to convert structured text data into CSV format. Currently includes built-in support for fastqc and samtools flagstat files. You can also provide a custom JSON file with instructions for parsing your text files. Text2table is a front-end tool for using the flextableparser python module.
- ### Usage:
# Convert a fastqc file into CSV format $ text2table –schema=fastqc fastqc.data # Write parsed CSV data to a file (1) $ text2table –schema=fastqc fastqc.data 2>&1 > fastqc.csv # Write parsed CSV data to a file (2) $ text2table –schema=fastqc –output_file=out.csv fastqc.data # Parse multiple input files $ text2table –schema=fastqc 1_fastqc.data 2_fastqc.data # Provide static values to be added as columns $ text2table –schema=fastqc –output_file=out.csv –static_values=series=test,sample=A fastqc.data # For debugging, only write log messages to the console $ text2table –schema=fastqc 1_fastqc.data 2_fastqc.data 2>&1 >/dev/null
## flextableparser
### Description: Python module for converting structred text data to CSV format.
- ### Usage:
>>> from sliders import flextableparser >>> parser = flextableparser.FlexTableParser() >>> parser.configure(json_file) >>> parser.add_static_value(key, value) >>> parser.parse_file(input_file) >>> output = parser.parse_file(input_file)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file sliders-0.2.1.tar.gz.
File metadata
- Download URL: sliders-0.2.1.tar.gz
- Upload date:
- Size: 153.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
832b4ebbcca458c40be2a8b4981b29a0cf3c36d5f9b00fe4c9f44e07d9ee3861
|
|
| MD5 |
ced7150189eff0276cbeaa22ddadb6dc
|
|
| BLAKE2b-256 |
db857bd2e7c7e7a42401558f878a0b83777ccf01a05840173c450e149981327e
|