Skip to content

Commit

Permalink
Merge branch 'fix-hg19-metadata' into 'dev'
Browse files Browse the repository at this point in the history
Fix hg19 metadata and tag 0.3.2

Closes CW-5248

See merge request epi2melabs/ont-spectre!17
  • Loading branch information
Alexey Zabelkin committed Nov 8, 2024
2 parents 566b761 + 59b425f commit 069821a
Show file tree
Hide file tree
Showing 15 changed files with 30 additions and 56 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v0.3.2]
### Fixed
- Remove extra character in hg19 metadata file

### Added
- System tests of hg002 real variation with hg19 reference

## [v0.3.1]
### Changed
- This is a housekeeping release to update the ont-spectre conda package requirements.
Expand Down
2 changes: 1 addition & 1 deletion spectre/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.3.1"
__version__ = "0.3.2"
2 changes: 1 addition & 1 deletion spectre/data/hg19_metadata.mdr
Original file line number Diff line number Diff line change
Expand Up @@ -569,4 +569,4 @@ NSPOS chrY 23901000 23952000
NSPOS chrY 28819000 58820000
NSPOS chrY 58917000 58968000
NSPOS chrGL000210.1 9000 11000
NSPOS chrGL000197.1 23000 24000s
NSPOS chrGL000197.1 23000 24000
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18 75152000 75392000 DEL
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
chrom length bases mean min max
18 78077248 3089503474 39.570 0 4899
18_region 78077248 3089503474 39.570 0 4899
total 78077248 3089503474 39.570 0 4899
total_region 78077248 3089503474 39.570 0 4899
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

11 changes: 0 additions & 11 deletions tests/data/system_tests/hg002_chr19_simulations/input/metadata.mdr

This file was deleted.

21 changes: 15 additions & 6 deletions tests/system_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ set -euo pipefail

declare -a data=(
"hg002_chr18_realvar"
"hg002_chr18_realvar_hg19"
"hg002_chr19_simulations"
)

Expand All @@ -15,7 +16,17 @@ do
pfx="tests/data/system_tests/$sample/"
echo "Data path prefix: $pfx"

# spectre cleanup and run
if [[ "$sample" == *"hg19"* ]]; then
metadata="hg19_metadata"
blacklist="hg19_blacklist_v1.0"
else
metadata="hg38_metadata"
blacklist="hg38_blacklist_v1.0"
fi

echo "Using metadata: $metadata"
echo "Using blacklist: $blacklist"

rm -rf $pfx/output_spectre
spectre CNVCaller \
--bin-size 1000 \
Expand All @@ -24,8 +35,8 @@ do
--sample-id sample \
--output-dir $pfx/output_spectre \
--reference $pfx/input/ref.fna.gz \
--metadata $pfx/input/metadata.mdr \
--blacklist $pfx/input/blacklist.bed
--metadata $metadata \
--blacklist $blacklist

# gziping and indexing for truvari input
vcf_output="$pfx/output_spectre/sample.vcf"
Expand All @@ -52,6 +63,4 @@ do
exit 1
fi

done


done

0 comments on commit 069821a

Please sign in to comment.