Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
200 changes: 152 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,85 +36,107 @@ usage: stix <options>
-V Verbose mode(print debug information, will increase output file size greatly)
```

## Example(long-read)

## STIX suite

This repository contains all related tools for using STIX. It includes:

1. STIX (main program)
2. Giggle (tool for indexing)
3. excord (SV singals extraction for short-read)
4. excordlr (SV singals extraction for long-read)

The bundled toolset will be published as docker images with version numbers. Please note that the version is NOT the stix version, it is the stix-suite version.


### How to use

Download the docker image with specific version
### Setup demo

```
docker pull zhengxc1993/stix-suite:<version>

git clone https://github.com/zhengxinchang/stix.git
cd stix/demo
```

Run tools

```
docker run --rm zhengxc1993/stix-suite:<version> stix
### Build index

```
# giggle index, takes ~15s
docker run --rm -u $(id -u):$(id -g) -v /etc/passwd:/etc/passwd -v $(pwd):/wkspace/ zhengxc1993/stix-suite:1.0.1 \
sh -c "cd /wkspace/; giggle index -i "data/*.bed.gz" -o ./giggle_idx -s -f"

# stix index, takes ~1s
docker run --rm -u $(id -u):$(id -g) -v /etc/passwd:/etc/passwd -v $(pwd):/wkspace/ zhengxc1993/stix-suite:1.0.1 \
sh -c "cd /wkspace/; stix -i giggle_idx/ -d stix_idx.db -p meta.ped -c 5"

### Versions
```


#### 1.0.1
### Annotate a single SV

- stix[b3fedd9]

- giggle[4071cb7]
**deletion**
```
# runtime: ~1s
docker run --rm -u $(id -u):$(id -g) -v /etc/passwd:/etc/passwd -v $(pwd):/wkspace/ zhengxc1993/stix-suite:1.0.1 \
sh -c "cd /wkspace/; stix \
-i giggle_idx/ \
-d stix_idx.db \
-s 100 \
-t DEL \
-l 1:1076253-1076253 \
-r 1:1076434-1076434 "
```
output:

- excord[v0.2.4]
```
stix_run_giggle_query: left:1 1076253 1076253 right:1 1076434 1076434
Total 0:1 0:1 0:0:0 0:0:0:0
Giggle_File_Id Sample Sex population Super_population Alt_File Pairend Split
0 demo_hg002_hifi NA NA NA demo_hg002_hifi.bed.gz 0 15
```

- excord-lr[v0.1.17]
**insertion**

- stix-merge[1.0.0]
```
# runtime: ~1s
docker run --rm -u $(id -u):$(id -g) -v /etc/passwd:/etc/passwd -v $(pwd):/wkspace/ zhengxc1993/stix-suite:1.0.1 \
sh -c "cd /wkspace/; stix \
-i giggle_idx/ \
-d stix_idx.db \
-s 100 \
-t INS \
-l 1:3477303-3477303 \
-r 1:3477303-3479646 "
```

<details>
output

```bash
cd stix-suite
docker build -t stix-suite:1.0.0 -f Dockerfile versions/1.0.1/
docker tag 784ea063777c zhengxc1993/stix-suite:1.0.1
docker push zhengxc1993/stix-suite:1.0.1
```

</details>
stix_run_giggle_query: left:1 3477303 3477303 right:1 3477303 3479646
Total 0:1 0:1 0:0:0 0:0:0:0
Giggle_File_Id Sample Sex population Super_population Alt_File Pairend Split
0 demo_hg002_hifi NA NA NA demo_hg002_hifi.bed.gz 0 17
```

#### 1.0.0

- stix[b3fedd9]

- giggle[4071cb7]
**Annotate an VCF file**

- excord[v0.2.4]
```
# runtime: ~2s
docker run --rm -v $(pwd):/wkspace/ zhengxc1993/stix-suite:1.0.1 \
sh -c "cd /wkspace/; stix \
-i giggle_idx/ \
-d stix_idx.db \
-s 100 \
-T 5 \
-f demo-query.vcf \
| tee ann.vcf 1>/dev/null"

- excord-lr[v0.1.17]
```

<details>
output

```bash
stix-suite
docker build -t stix-suite:1.0.0 -f Dockerfile versions/1.0.0/
docker tag 784ea063777c zhengxc1993/stix-suite:1.0.0
docker push zhengxc1993/stix-suite:1.0.0
```
</details>
ann.vcf # it should be exactly same with output.ann.vcf.
```

For a specific SV,the `STIX_ZERO` and `STIX_ON`E indicate the `number of positive sample` and `number of negative samples` respectively.
The frequency can be calculated with `STIX_ONE/(STIX_ONE + STIX_ZERO)`.



## Example
## Example(short-read)

The following example is based on four sample BAMs from the 1000 Genomes
project:
Expand Down Expand Up @@ -222,7 +244,89 @@ stix -i four_alt_db -d four.ped.db -s 500 -f 1kg.four.13.14.vcf.gz
```


## Build
## Installation/Build

STIX can be built and run on the Linux system. The installation time on a normal PC usually takes 10-15 minutes, depending on the hardware.

### STIX suite

We recommend using the STIX suite image to use STIX and related tools. These tools include:

1. STIX (main program)
2. Giggle (tool for indexing)
3. excord (SV singals extraction for short-read)
4. excordlr (SV singals extraction for long-read)

The bundled toolset will be published as docker images with version numbers. Please note that the version is NOT the stix version, it is the stix-suite version.


#### How to use

Download the docker image with specific version

```
docker pull zhengxc1993/stix-suite:<version>

```

Run tools

```
docker run --rm -u $(id -u):$(id -g) -v /etc/passwd:/etc/passwd zhengxc1993/stix-suite:<version> stix

```


#### Versions


##### 1.0.1
<details>
- stix[b3fedd9]

- giggle[4071cb7]

- excord[v0.2.4]

- excord-lr[v0.1.17]

- stix-merge[1.0.0]



```bash
cd stix-suite
docker build -t stix-suite:1.0.0 -f Dockerfile versions/1.0.1/
docker tag 784ea063777c zhengxc1993/stix-suite:1.0.1
docker push zhengxc1993/stix-suite:1.0.1
```
</details>


##### 1.0.0

<details>

- stix[b3fedd9]

- giggle[4071cb7]

- excord[v0.2.4]

- excord-lr[v0.1.17]


```bash
stix-suite
docker build -t stix-suite:1.0.0 -f Dockerfile versions/1.0.0/
docker tag 784ea063777c zhengxc1993/stix-suite:1.0.0
docker push zhengxc1993/stix-suite:1.0.0
```
</details>


### build from source

```
git clone https://github.com/ryanlayer/giggle.git
cd giggle
Expand Down
Binary file added demo/data/demo_hg002_hifi.bed.gz
Binary file not shown.
Loading