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: Sex.DetERRmine #3497

Merged
merged 69 commits into from
Nov 28, 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
c6f40ee
Initial commit
Nov 20, 2024
99d8cb4
Merge branch 'snakemake:master' into sexdeterrmine
tdayris Nov 25, 2024
580e5e2
Fix log format
tdayris Nov 25, 2024
54eea00
Add extra
tdayris Nov 25, 2024
4af7254
Remove shell tree
tdayris Nov 25, 2024
31f18d8
fmt
Nov 25, 2024
0e3e017
Merge branch 'master' into sexdeterrmine
tdayris Nov 27, 2024
a00cdcd
Merge branch 'master' into sexdeterrmine
tdayris Nov 27, 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
29 changes: 29 additions & 0 deletions bio/sexdeterrmine/environment.linux-64.pin.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This file may be used to create an environment using:
# $ conda create --name <env> --file <this file>
# platform: linux-64
# created-by: conda 24.9.2
@EXPLICIT
https://conda.anaconda.org/conda-forge/linux-64/_libgcc_mutex-0.1-conda_forge.tar.bz2#d7c89558ba9fa0495403155b64376d81
https://conda.anaconda.org/conda-forge/linux-64/ca-certificates-2024.8.30-hbcca054_0.conda#c27d1c142233b5bc9ca570c6e2e0c244
https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.43-h712a8e2_2.conda#048b02e3962f066da18efe3a21b77672
https://conda.anaconda.org/conda-forge/linux-64/python_abi-3.13-5_cp313.conda#381bbd2a92c863f640a55b6ff3c35161
https://conda.anaconda.org/conda-forge/noarch/tzdata-2024b-hc8b5060_0.conda#8ac3367aafb1cc0a068483c580af8015
https://conda.anaconda.org/conda-forge/linux-64/libgomp-14.2.0-h77fa898_1.conda#cc3573974587f12dda90d96e3e55a702
https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-2_gnu.tar.bz2#73aaf86a425cc6e73fcf236a5a46396d
https://conda.anaconda.org/conda-forge/linux-64/libgcc-14.2.0-h77fa898_1.conda#3cb76c3f10d3bc7f1105b2fc9db984df
https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.6.4-h5888daf_0.conda#db833e03127376d461e1e13e76f09b6c
https://conda.anaconda.org/conda-forge/linux-64/libgcc-ng-14.2.0-h69a702a_1.conda#e39480b9ca41323497b05492a63bc35b
https://conda.anaconda.org/conda-forge/linux-64/libzlib-1.3.1-hb9d3cd8_2.conda#edb0dca6bc32e4f4789199455a1dbeb8
https://conda.anaconda.org/conda-forge/linux-64/openssl-3.4.0-hb9d3cd8_0.conda#23cc74f77eb99315c0360ec3533147a9
https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-h4bc722e_7.conda#62ee74e96c5ebb0af99386de58cf9553
https://conda.anaconda.org/conda-forge/linux-64/libffi-3.4.2-h7f98852_5.tar.bz2#d645c6d2ac96843a2bfaccd2d62b3ac3
https://conda.anaconda.org/conda-forge/linux-64/libmpdec-4.0.0-h4bc722e_0.conda#aeb98fdeb2e8f25d43ef71fbacbeec80
https://conda.anaconda.org/conda-forge/linux-64/libsqlite-3.47.0-hadc24fc_1.conda#b6f02b52a174e612e89548f4663ce56a
https://conda.anaconda.org/conda-forge/linux-64/libuuid-2.38.1-h0b41bf4_0.conda#40b61aab5c7ba9ff276c41cfffe6b80b
https://conda.anaconda.org/conda-forge/linux-64/ncurses-6.5-he02047a_1.conda#70caf8bb6cf39a0b6b7efc885f51c0fe
https://conda.anaconda.org/conda-forge/linux-64/tk-8.6.13-noxft_h4845f30_101.conda#d453b98d9c83e71da0741bb0ff4d76bc
https://conda.anaconda.org/conda-forge/linux-64/xz-5.2.6-h166bdaf_0.tar.bz2#2161070d867d1b1204ea749c8eec4ef0
https://conda.anaconda.org/conda-forge/linux-64/readline-8.2-h8228510_1.conda#47d31b792659ce70f470b5c82fdfb7a4
https://conda.anaconda.org/conda-forge/linux-64/python-3.13.0-h9ebbce0_100_cp313.conda#08e9aef080f33daeb192b2ddc7e4721f
https://conda.anaconda.org/conda-forge/noarch/pip-24.3.1-pyh145f28c_0.conda#ca3afe2d7b893a8c8cdf489d30a2b1a3
https://conda.anaconda.org/bioconda/noarch/sexdeterrmine-1.1.2-hdfd78af_1.tar.bz2#2e9b8e1a34bf366825e78812da25b66a
6 changes: 6 additions & 0 deletions bio/sexdeterrmine/environment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
channels:
- bioconda
- conda-forge
- nodefaults
dependencies:
- sexdeterrmine=1.1.2
13 changes: 13 additions & 0 deletions bio/sexdeterrmine/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Sex.detERRmine
description: |
calculate the relative coverage of X and Y chromosomes, and their associated error bars, out of capture data.
authors:
- Thibault Dayris
input:
- depth: Path to samtools depths file accross multiple samples with a header line giving sample names.
output:
- Path to result table
params:
- No extra parameters handled.
notes: |
See depth header format at: https://github.com/TCLamnidis/Sex.DetERRmine/tree/master?tab=readme-ov-file#instructions
11 changes: 11 additions & 0 deletions bio/sexdeterrmine/test/Snakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
rule test_sexdeterrmine:
input:
depth="samples.depth.tsv",
output:
tsv="results.tsv",
json="results.json",
tdayris marked this conversation as resolved.
Show resolved Hide resolved
threads: 1
log:
"sexdeterrmine.log",
wrapper:
"master/bio/sexdeterrmine"
5 changes: 5 additions & 0 deletions bio/sexdeterrmine/test/samples.depth.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#Chr Pos Sample1 Sample2 Sample3 Sample4 Sample5
1 752566 1 1 1 1 1
X 776546 0 0 0 0 1
Y 832918 0 1 0 0 0
Y 842013 0 1 0 3 1
44 changes: 44 additions & 0 deletions bio/sexdeterrmine/wrapper.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# coding: utf-8

"""Snakemake wrapper for Sex.DetERRmine"""

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

from snakemake.shell import shell
from tempfile import TemporaryDirectory

import os
import os.path

log = snakemake.log_fmt_shell(
stdout=False,
stderr=True,
append=False,
)
extra = snakemake.params.get("extra", "")
tdayris marked this conversation as resolved.
Show resolved Hide resolved
tdayris marked this conversation as resolved.
Show resolved Hide resolved

tdayris marked this conversation as resolved.
Show resolved Hide resolved
with TemporaryDirectory() as tempdir:
old_path = os.getcwd()
depth_path = os.path.realpath(snakemake.input.depth)
os.chdir(tempdir)
tdayris marked this conversation as resolved.
Show resolved Hide resolved
shell(f"sexdeterrmine --Input {depth_path} {extra} > out.tsv 2> sexdeterrmine.log")
tdayris marked this conversation as resolved.
Show resolved Hide resolved

log = snakemake.log_fmt_shell(
stdout=True,
stderr=True,
append=True,
)

os.chdir(old_path)
os.replace(f"{tempdir}/sexdeterrmine.log", str(snakemake.log))
tdayris marked this conversation as resolved.
Show resolved Hide resolved

tsv = snakemake.output.get("tsv")
if tsv:
shell("mv --verbose {tempdir}/out.tsv {tsv} {log}")

json = snakemake.output.get("json")
if json:
shell("mv --verbose {tempdir}/sexdeterrmine.json {json} {log}")
tdayris marked this conversation as resolved.
Show resolved Hide resolved
tdayris marked this conversation as resolved.
Show resolved Hide resolved
6 changes: 6 additions & 0 deletions test_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4615,6 +4615,12 @@ def test_gseapy_gsea(run):
)


def test_sexdeterrmine(run):
run(
"bio/sexdeterrmine",
["snakemake", "--cores", "1", "results.tsv", "-F", "--use-conda"],
)

def test_sourmash_compute(run):
run(
"bio/sourmash/compute/",
Expand Down
Loading