Skip to content

Commit

Permalink
Update version to 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaccha committed Apr 18, 2024
1 parent aac5725 commit 33d39eb
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "tataki"
authors = ["Tazro Ohta ([email protected])"]
version = "0.2.2"
version = "0.3.0"
edition = "2021"
repository = "https://github.com/sapporo-wes/tataki"
license = "apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM debian:bookworm-slim

LABEL org.opencontainers.image.authors="Tazro Ohta ([email protected])"
LABEL org.opencontainers.image.url="https://github.com/sapporo-wes/tataki"
LABEL org.opencontainers.image.version="v0.2.2"
LABEL org.opencontainers.image.version="v0.3.0"
LABEL org.opencontainers.image.licenses="Apache2.0"
LABEL org.opencontainers.image.description="CLI tool designed primarily for detecting file formats in the bio-science field"

Expand Down
59 changes: 44 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,30 @@ docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v /tmp:/tmp -v $PW

## Quick Start

Determining the file format of a local file:
Determine the file format of a local file:

```shell
$ tataki path/to/unknown/file.txt -q
File Path,Edam ID,Label
path/to/unknown/file.txt,http://edamontology.org/format_2572,BAM
```

Output result in YAML format:
Determine the file format of remote file, and output result in YAML format:

```shell
$ tataki path/to/unknown/file.txt -q -f yaml
path/to/unknown/file.txt:
$ tataki https://path/to/unknown/file.txt -q -f yaml
https://path/to/unknown/file.txt:
label: BAM
id: http://edamontology.org/format_2572
```

Read the whole records from the input file:

This may take while depending on the file size.

```shell
$ tataki https://path/to/unknown/file.txt -q --tidy
https://path/to/unknown/file.txt:
label: BAM
id: http://edamontology.org/format_2572
```
Expand All @@ -77,21 +88,39 @@ Arguments:
[FILE|URL]... Path to the file

Options:
-o, --output <FILE> Path to the output file [default: stdout]
-f <OUTPUT_FORMAT> [default: csv] [possible values: yaml, tsv, csv, json]
--cache-dir <DIR> Specify the directory in which to create a temporary directory. If this option is not provided, a temporary directory will be created in the default system temporary directory (/tmp)
-c, --conf <FILE> Specify the tataki configuration file. If this option is not provided, the default configuration will be used. The option `--dry-run` shows the default configuration file
--dry-run Output the configuration file in yaml format and exit the program. If `--conf` option is not provided, the default configuration file will be shown
-v, --verbose Show verbose log messages
-q, --quiet Suppress all log messages
-h, --help Print help
-V, --version Print version

Version: v0.2.2
-o, --output <FILE> Path to the output file [default: stdout]
-f <OUTPUT_FORMAT> [default: csv] [possible values: yaml, tsv, csv, json]
-C, --cache-dir <DIR> Specify the directory in which to create a temporary directory. If this option is not provided, a temporary directory will be created in the default system temporary directory (/tmp)
-c, --conf <FILE> Specify the tataki configuration file. If this option is not provided, the default configuration will be used. The option `--dry-run` shows the default configuration file
-t, --tidy Attempt to read the whole lines from the input files
-n, --num-records <NUM_RECORDS> Number of records to read from the input file. Conflicts with `--tidy` option [default: 100000]
--dry-run Output the configuration file in yaml format and exit the program. If `--conf` option is not provided, the default configuration file will be shown
-v, --verbose Show verbose log messages
-q, --quiet Suppress all log messages
-h, --help Print help
-V, --version Print version

Version: v0.3.0
```

## Detailed Usage

### Changing the number of records to read

By default, Tataki reads the first 100,000 records of the input file. You can change this number by using the `-n|--num-records=<NUM_RECORDS>` option.

```shell
tataki <FILE|URL> -n 1000
```

#### Avoiding misidentifyll

By using the `-t|--tidy` option, Tataki attempts to read the whole lines from the input files. This options helps when the file is truncated or its end is corrupted.

```shell
tataki <FILE|URL> -t
```

### Determining Formats in Your Preferred Order

Using the `-c|--conf=<FILE>` option allows you to change the order or set the file formats to use for determination.
Expand Down

0 comments on commit 33d39eb

Please sign in to comment.