Skip to content

Commit 49fa01a

Browse files
committed
Merge branch 'release/v4.0.0'
2 parents bc8bf84 + b976959 commit 49fa01a

File tree

2,534 files changed

+74347
-11854
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,534 files changed

+74347
-11854
lines changed

.gitattributes

Lines changed: 0 additions & 6 deletions
This file was deleted.

.github/workflows/func_tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
pip install pylint
2727
pip install anybadge
2828
pip install coverage
29+
sudo apt-get install bcftools samtools tabix
2930
python -m pip install .
3031
- name: Running ssshtest
3132
run: |

.readthedocs.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# .readthedocs.yaml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Set the version of Python and other tools you might need
9+
build:
10+
os: ubuntu-20.04
11+
tools:
12+
python: "3.9"
13+
# You can also specify other tool versions:
14+
# nodejs: "16"
15+
# rust: "1.55"
16+
# golang: "1.17"
17+
18+
# Build documentation in the docs/ directory with Sphinx
19+
sphinx:
20+
configuration: docs/api/conf.py
21+
22+
# If using Sphinx, optionally build your docs in additional formats such as PDF
23+
# formats:
24+
# - pdf
25+
26+
# Optionally declare the Python requirements required to build your docs
27+
python:
28+
install:
29+
- requirements: docs/requirements.txt

README.md

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,45 @@
1-
```
2-
████████╗██████╗ ██╗ ██╗██╗ ██╗ █████╗ ██████╗ ██╗
3-
╚══██╔══╝██╔══██╗██║ ██║██║ ██║██╔══██╗██╔══██╗██║
4-
██║ ██████╔╝██║ ██║██║ ██║███████║██████╔╝██║
5-
██║ ██╔══██╗██║ ██║╚██╗ ██╔╝██╔══██║██╔══██╗██║
6-
██║ ██║ ██║╚██████╔╝ ╚████╔╝ ██║ ██║██║ ██║██║
7-
╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝
8-
```
91
[![PyPI version](https://badge.fury.io/py/Truvari.svg)](https://badge.fury.io/py/Truvari)
102
[![pylint](imgs/pylint.svg)](https://github.com/acenglish/truvari/actions/workflows/pylint.yml)
113
[![FuncTests](https://github.com/acenglish/truvari/actions/workflows/func_tests.yml/badge.svg?branch=develop&event=push)](https://github.com/acenglish/truvari/actions/workflows/func_tests.yml)
124
[![coverage](imgs/coverage.svg)](https://github.com/acenglish/truvari/actions/workflows/func_tests.yml)
135
[![develop](https://img.shields.io/github/commits-since/acenglish/truvari/v3.5.0)](https://github.com/ACEnglish/truvari/compare/v3.5.0...develop)
146
[![Downloads](https://pepy.tech/badge/truvari)](https://pepy.tech/project/truvari)
157

8+
![Logo](https://raw.githubusercontent.com/ACEnglish/truvari/develop/imgs/BoxScale1_DarkBG.png)
169
Toolkit for benchmarking, merging, and annotating Structrual Variants
1710

18-
[WIKI page](https://github.com/acenglish/truvari/wiki) has detailed documentation.
19-
See [Updates](https://github.com/acenglish/truvari/wiki/Updates) on new versions.
20-
Read our [Paper](https://doi.org/10.1101/2022.02.21.481353) for more details.
11+
📚 [WIKI page](https://github.com/acenglish/truvari/wiki) has detailed documentation.
12+
📈 See [Updates](https://github.com/acenglish/truvari/wiki/Updates) on new versions.
13+
📝 Read our [Paper](https://genomebiology.biomedcentral.com/articles/10.1186/s13059-022-02840-6) to learn more.
2114

22-
## Installation
15+
## 💻 Installation
2316
Truvari uses Python 3.6+ and can be installed with pip:
2417
```
2518
python3 -m pip install Truvari
2619
```
2720
For details and more installation options, see [Installation](https://github.com/acenglish/truvari/wiki/Installation) on the wiki.
2821

29-
## Quick Start
22+
## Quick Start
3023

3124
Each sub-command contains help documentation. Start with `truvari -h` to see available commands.
3225

3326
The current most common Truvari use case is for structural variation benchmarking:
3427
```
3528
truvari bench -b base.vcf.gz -c comp.vcf.gz -o output_dir/
3629
```
37-
## Truvari Commands
30+
## 🧬 Truvari Commands
3831

3932
- [bench](https://github.com/acenglish/truvari/wiki/bench) - Performance metrics from comparison of two VCFs
4033
- [collapse](https://github.com/acenglish/truvari/wiki/collapse) - Collapse possibly redundant VCF entries
4134
- [anno](https://github.com/acenglish/truvari/wiki/anno) - Add SV annotations to a VCF
42-
- [vcf2df](https://github.com/acenglish/truvari/wiki/vcf2df) - Turn a VCF into a pandas DataFrame
4335
- [consistency](https://github.com/acenglish/truvari/wiki/consistency) - Consistency report between multiple VCFs
44-
- [divide](https://github.com/ACEnglish/truvari/wiki/divide) - Divide a VCF into independent parts
36+
- [vcf2df](https://github.com/acenglish/truvari/wiki/vcf2df) - Turn a VCF into a pandas DataFrame
4537
- [segment](https://github.com/acenglish/truvari/wiki/segment) - Normalization of SVs into disjointed genomic regions
38+
- [stratify](https://github.com/acenglish/truvari/wiki/stratify) - Count variants per-region in vcf
39+
- [divide](https://github.com/ACEnglish/truvari/wiki/divide) - Divide a VCF into independent shards
4640
- [phab](https://github.com/ACEnglish/truvari/wiki/phab) - Harmonize variant representations using MSA
41+
- [refine](https://github.com/ACEnglish/truvari/wiki/refine) - Automated bench result refinement with phab
4742

48-
## More Information
43+
## 🔎 More Information
4944

50-
Find more details and discussions about Truvari on the [WIKI page](https://github.com/acenglish/truvari/wiki).
45+
All documentation about Truvari is on the [WIKI](https://github.com/acenglish/truvari/wiki). Additional information about using Truvari can be found in [Discussions](https://github.com/ACEnglish/truvari/discussions)

Singularity.def

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,32 @@ Stage: spython-base
66
. /opt/truvari-source
77
%post
88

9-
apt-get -qq update && apt-get install -yq \
10-
python3-pip \
11-
python3-dev \
12-
curl \
13-
&& \
14-
rm -rf /var/lib/apt/lists/*
9+
10+
apt-get -qq update \
11+
&& DEBIAN_FRONTEND=noninteractive apt-get install -yq \
12+
bcftools \
13+
curl \
14+
python3-dev \
15+
python3-pip \
16+
samtools \
17+
tabix \
18+
vcftools \
19+
wget \
20+
&& \
21+
rm -rf /var/lib/apt/lists/*
1522

1623
cd /opt/truvari-source
1724

25+
wget https://mafft.cbrc.jp/alignment/software/mafft_7.505-1_amd64.deb \
26+
&& dpkg -i mafft_7.505-1_amd64.deb && rm mafft_7.505-1_amd64.deb
27+
1828
python3 -m pip install --upgrade pip && \
19-
python3 -m pip install setproctitle pylint anybadge coverage && \
20-
python3 -m pip install --upgrade setuptools && \
21-
python3 -m pip install ./
29+
python3 -m pip install setproctitle pylint anybadge coverage && \
30+
python3 -m pip install --upgrade setuptools && \
31+
python3 -m pip install ./
32+
2233

34+
mkdir /data
2335
cd /data
2436

2537
%runscript

docs/api/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,15 @@
99
# If extensions (or modules to document with autodoc) are in another directory,
1010
# add these directories to sys.path here. If the directory is relative to the
1111
# documentation root, use os.path.abspath to make it absolute, like shown here.
12+
import os
13+
import sys
14+
sys.path.insert(0, os.path.abspath('../../'))
1215

1316

1417
# -- Project information -----------------------------------------------------
1518

1619
project = 'Truvari'
17-
copyright = '2021, Adam English'
20+
copyright = '2023, Adam English'
1821
author = 'Adam English'
1922

2023

docs/api/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ Welcome to Truvari's documentation!
88

99
This documentation is aimed at developers looking to reuse truvari's code.
1010

11-
For those looking to use truavari as a tool for analysis, full documentation
12-
is available via the github page
11+
For those looking to use truvari for analysis, full documentation
12+
is available via the github wiki
1313

14-
https://github.com/ACEnglish/truvari
14+
https://github.com/ACEnglish/truvari/wiki
1515

1616
.. toctree::
1717
:maxdepth: 2

docs/api/local_build.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
#sphinx-apidoc -f -F ../../truvari/ -o /data/docs/api/ --ext-autodoc -M
2-
# requires pip install sphinx & sphinx_rtd_theme
31
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4-
# will overwrite your python
2+
python3 -m pip install sphinx sphinx_rtd_theme
3+
# will overwrite your current environment's truvari
54
cd ../../
65
python3 setup.py install
76
cd -

0 commit comments

Comments
 (0)