Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: NGS-bits SampleAncestry #3502

Merged
merged 69 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
ab82604
[fix] (template): Missing code in wrappers' doc. Error #187
Sep 21, 2020
de77ade
Merge remote-tracking branch 'upstream/master'
Nov 9, 2020
9b1447e
Merge branch 'snakemake:master' into master
tdayris Jul 2, 2021
91fd32d
Merge remote-tracking branch 'upstream/master'
Jul 16, 2021
ed2a885
Merge branch 'master' of https://github.com/tdayris/snakemake-wrappers
Jul 16, 2021
2a1655b
Merge remote-tracking branch 'upstream/master'
tdayris Apr 29, 2022
044cf8a
Merge remote-tracking branch 'upstream/master'
tdayris May 13, 2022
5b1c7b4
Merge remote-tracking branch 'upstreamhttp/master'
Jun 27, 2022
aea600e
Merge remote-tracking branch 'upstream/master'
Oct 11, 2022
ac4ac81
perf: update utils/datavzrd/environment.yaml. (#566)
johanneskoester Oct 11, 2022
88c479c
perf: update bio/bcftools/call/environment.yaml. (#567)
johanneskoester Oct 11, 2022
8d92bb5
perf: update bio/bcftools/concat/environment.yaml. (#568)
johanneskoester Oct 11, 2022
1c444dc
perf: autobump bio/bcftools/index/environment.yaml (#570)
johanneskoester Oct 11, 2022
534f834
chore: release 1.15.1 (#569)
github-actions[bot] Oct 12, 2022
7eb277c
perf: update bio/bgzip/environment.yaml. (#577)
snakedeploy-bot[bot] Oct 12, 2022
63f8acb
perf: update bio/bellerophon/environment.yaml. (#576)
snakedeploy-bot[bot] Oct 12, 2022
963bedf
perf: update bio/assembly-stats/environment.yaml. (#575)
snakedeploy-bot[bot] Oct 12, 2022
ff74710
perf: update bio/adapterremoval/environment.yaml. (#573)
snakedeploy-bot[bot] Oct 12, 2022
bb60c16
chore: autobump conda envs (#571)
johanneskoester Oct 12, 2022
d9a7a6a
perf: update bio/delly/environment.yaml. (#584)
snakedeploy-bot[bot] Oct 12, 2022
e0220d2
perf: update bio/busco/environment.yaml. (#581)
snakedeploy-bot[bot] Oct 12, 2022
ae10993
perf: update bio/clustalo/environment.yaml. (#582)
snakedeploy-bot[bot] Oct 12, 2022
76c9845
perf: update bio/fastp/environment.yaml. (#585)
snakedeploy-bot[bot] Oct 12, 2022
853a36d
perf: update bio/fastq_screen/environment.yaml. (#586)
snakedeploy-bot[bot] Oct 12, 2022
576c54a
perf: update bio/fasttree/environment.yaml. (#588)
snakedeploy-bot[bot] Oct 12, 2022
e473ff7
perf: update bio/fastqc/environment.yaml. (#587)
snakedeploy-bot[bot] Oct 12, 2022
6f5f48f
perf: update bio/filtlong/environment.yaml. (#589)
snakedeploy-bot[bot] Oct 12, 2022
5a1f598
perf: update bio/freebayes/environment.yaml. (#590)
snakedeploy-bot[bot] Oct 12, 2022
f60db66
perf: update bio/genefuse/environment.yaml. (#591)
snakedeploy-bot[bot] Oct 12, 2022
cb6b616
perf: update bio/genomepy/environment.yaml. (#592)
snakedeploy-bot[bot] Oct 12, 2022
f618f0d
chore: release 1.15.2 (#578)
github-actions[bot] Oct 12, 2022
141e09e
fix: set RG tag (#593)
FelixMoelder Oct 13, 2022
278f508
Update conventional-prs.yml
johanneskoester Oct 13, 2022
de6ce85
perf: autobump bio/deepvariant (#583)
snakedeploy-bot[bot] Oct 13, 2022
f9332c2
feat: bazam wrapper (#580)
christopher-schroeder Oct 13, 2022
39c488d
chore: release 1.16.0 (#596)
github-actions[bot] Oct 13, 2022
d1a68e5
Merge remote-tracking branch 'upstream/master'
Dec 5, 2022
7aadebb
Merge remote-tracking branch 'upstream/master'
Mar 31, 2023
6878cd6
Merge remote-tracking branch 'upstream/master'
Apr 7, 2023
77a2f4c
revert
Apr 11, 2023
939082e
revert
Apr 14, 2023
91ec8ee
Merge branch 'master' of https://github.com/tdayris/snakemake-wrappers
Apr 14, 2023
90518cf
Merge remote-tracking branch 'upstream/master'
May 2, 2023
bfdc5e0
Merge branch 'master' of https://github.com/snakemake/snakemake-wrappers
Jun 14, 2023
51730a3
Merge remote-tracking branch 'upstream/master'
Jul 11, 2023
537693b
Merge remote-tracking branch 'upstream/master'
Jul 26, 2023
8e9f3ab
Merge remote-tracking branch 'upstream/master'
Aug 9, 2023
55e063c
Merge remote-tracking branch 'upstream/master'
Aug 11, 2023
aae0451
Merge branch 'master' of https://github.com/snakemake/snakemake-wrappers
tdayris Nov 24, 2023
4c0c2dc
Merge branch 'snakemake:master' into master
tdayris Feb 28, 2024
e655c03
Merge branch 'snakemake:master' into master
tdayris Mar 6, 2024
9368db6
Merge branch 'snakemake:master' into master
tdayris Jun 14, 2024
20f5129
Merge branch 'snakemake:master' into master
tdayris Jul 16, 2024
a19d670
Merge branch 'snakemake:master' into master
tdayris Aug 26, 2024
0f6b3e2
Merge remote-tracking branch 'upstream/master'
Oct 4, 2024
4728a1b
Merge remote-tracking branch 'upstream/master'
Oct 29, 2024
3405b9f
Merge remote-tracking branch 'upstream/master'
Nov 6, 2024
7033673
Merge remote-tracking branch 'upstream/master'
Nov 7, 2024
4d62fb0
Merge branch 'snakemake:master' into master
tdayris Nov 8, 2024
11ba7ad
Merge remote-tracking branch 'upstream/master'
Nov 20, 2024
8f274a5
Merge branch 'master' of https://github.com/tdayris/snakemake-wrappers
Nov 20, 2024
15e01b5
Merge remote-tracking branch 'upstream/master'
Nov 22, 2024
d03571c
Initial commit
Nov 26, 2024
7b57101
Passing tests
Nov 26, 2024
2d11127
Merge branch 'master' into ngsbits-SampleAncestry
tdayris Nov 27, 2024
7c3b141
Merge branch 'master' into ngsbits-SampleAncestry
tdayris Nov 27, 2024
8072ebf
Tool update
Nov 29, 2024
4f6710b
Merge branch 'master' into ngsbits-SampleAncestry
tdayris Nov 29, 2024
3175ddf
Code format
fgvieira Dec 2, 2024
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
166 changes: 166 additions & 0 deletions bio/ngsbits/sampleancestry/environment.linux-64.pin.txt

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions bio/ngsbits/sampleancestry/environment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
channels:
- conda-forge
- bioconda
- nodefaults
dependencies:
- ngs-bits=2024_11
13 changes: 13 additions & 0 deletions bio/ngsbits/sampleancestry/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: NGS-bits SampleAncestry
url: https://github.com/imgag/ngs-bits/blob/master/doc/tools/SampleAncestry/index.md
description: Estimates the ancestry of a sample based on variants.
authors:
- Thibault Dayris
input:
- Path to one or multiple VCF file(s).
output:
- Path to results table (TSV)
params:
- extra: Optional parameters besides IO
notes: |
To estimate ancestry, the input VCF file must have enough variants AND variants that overlaps known human variants ancestry.
13 changes: 13 additions & 0 deletions bio/ngsbits/sampleancestry/test/Snakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
rule test_ngsbits_sampleancestry:
input:
# Either a single VCF or a list of VCF files
"sample.vcf",
tdayris marked this conversation as resolved.
Show resolved Hide resolved
output:
"ancestry.tsv",
threads: 1
log:
"ancestry.log",
params:
extra="-min_snps 4 -build hg19",
tdayris marked this conversation as resolved.
Show resolved Hide resolved
wrapper:
"master/bio/ngsbits/sampleancestry"
11 changes: 11 additions & 0 deletions bio/ngsbits/sampleancestry/test/sample.vcf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
##fileformat=VCFv4.0
##INFO=<ID=AF_AFR,Number=1,Type=String,Description="no description available">
##INFO=<ID=AF_EAS,Number=1,Type=String,Description="no description available">
##INFO=<ID=AF_EUR,Number=1,Type=String,Description="no description available">
##INFO=<ID=AF_SAS,Number=1,Type=String,Description="no description available">
#CHROM POS ID REF ALT QUAL FILTER INFO FORMAT Sample1
chr1 69270 . A G . . AF_AFR=0.360;AF_EAS=0.998;AF_EUR=0.911;AF_SAS=0.902 GT 1/1
chr1 69897 . T C . . AF_AFR=0.312;AF_EAS=0.777;AF_EUR=0.844;AF_SAS=0.805 GT 0/1
chr1 325155 . C A . . AF_AFR=0.653;AF_EAS=0.971;AF_EUR=0.769;AF_SAS=0.497 GT 1/1
chr1 881627 . G A . . AF_AFR=0.130;AF_EAS=0.658;AF_EUR=0.636;AF_SAS=0.565 GT 0/1
chr1 914852 . G C . . AF_AFR=0.249;AF_EAS=0.722;AF_EUR=0.596;AF_SAS=0.622 GT 1/1
23 changes: 23 additions & 0 deletions bio/ngsbits/sampleancestry/wrapper.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# coding: utf-8

"""Snakemake wrapper for NGS-bits SampleAncestry"""

__author__ = "Thibault Dayris"
__copyright__ = "Copyright 2024, Thibault Dayris"
__email__ = "thibault.dayris@gustaveroussy.fr"
__license__ = "MIT"

from snakemake.shell import shell

log = snakemake.log_fmt_shell(
stdout=False,
stderr=True,
)
extra = snakemake.params.get("extra", "")

shell(
"SampleAncestry {extra}"
" -in {snakemake.input}"
" -out {snakemake.output:q}"
" {log}"
)
16 changes: 16 additions & 0 deletions test_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3579,6 +3579,20 @@ def test_nanosim_metagenome(run):
)


def test_ngsbits_sampleancestry(run):
run(
"bio/ngsbits/sampleancestry",
[
"snakemake",
"--cores",
"1",
"--use-conda",
"-F",
"ancestry.tsv",
],
)


def test_ngsderive(run):
run(
"bio/ngsderive",
Expand Down Expand Up @@ -5959,12 +5973,14 @@ def test_vg_autoindex_giraffe(run):
["snakemake", "--cores", "1", "resources/genome.dist", "--use-conda", "-F"],
)


def test_vg_autoindex_map(run):
run(
"bio/vg/autoindex",
["snakemake", "--cores", "1", "resources/genome.xg", "--use-conda", "-F"],
)


def test_vg_construct(run):
run(
"bio/vg/construct",
Expand Down
Loading