-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
560 additions
and
384 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,14 @@ | ||
#!/usr/bin/env bash | ||
#!/bin/bash -euo | ||
|
||
|
||
# First we put the necessary files in into the conda prefix directory: | ||
mkdir -p ${PREFIX}/assemblycomparator2 | ||
cp asscom2 snakefile config.yaml LICENSE ${PREFIX}/assemblycomparator2 | ||
cp -r assets conda_definitions profiles report_subpipeline scripts tests ${PREFIX}/assemblycomparator2 | ||
|
||
# This is the binary that we wish to be able to run. | ||
mkdir -p ${PREFIX}/bin | ||
ln -s ${PREFIX}/assemblycomparator2/asscom2 ${PREFIX}/bin/asscom2 | ||
|
||
export PACKAGE_HOME="${PREFIX}/share/${PKG_NAME}-${PKG_VERSION}-${PKG_BUILDNUM}" | ||
|
||
# # I hope these variables are accessible when the user activates the environment that runs ac2. | ||
# ASSCOM2_BASE=$PREFIX | ||
# ASSCOM2_PROFILE=${ASSCOM2_BASE}/profiles/apptainer/local | ||
# ASSCOM2_DATABASES=${ASSCOM2_BASE}/databases # The user should override this in their .bashrc if they want to use a different dir. | ||
# First we put the necessary files in into the conda prefix/share directory: | ||
mkdir -p "${PACKAGE_HOME}" | ||
chmod 755 asscom2 | ||
cp -f asscom2 workflow/Snakefile config/config.yaml "${PACKAGE_HOME}" | ||
cp -rf docs profile workflow/scripts tests "${PACKAGE_HOME}" | ||
|
||
# # I think it is better to use backslash-sentinel, because then the user can change the variables after having activated the PREFIX environment, and the changes will have effect | ||
# alias asscom2='snakemake --snakefile \${ASSCOM2_BASE}/snakefile --profile \${ASSCOM2_PROFILE} --configfile \${ASSCOM2_BASE}/config.yaml' | ||
# This is the binary that we wish to be able to run. | ||
ln -sf ${PACKAGE_HOME}/asscom2 ${PREFIX}/bin/asscom2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,41 @@ | ||
{% set version = "2.6.2" %} | ||
{% set name = "assemblycomparator2" %} | ||
{% set version = "2.7.1" %} | ||
{% set sha256 = "20d02a94fef9565c21b93c108a5ff95797563a6ec40bd016a581de68ffccca60" %} | ||
|
||
package: | ||
name: assemblycomparator2 | ||
name: {{ name }} | ||
version: {{ version }} | ||
|
||
source: | ||
url: https://github.com/cmkobel/assemblycomparator2/archive/refs/tags/v{{ version }}.tar.gz | ||
sha256: 52d1465c0da1955ee58848043309db81e551a87428e8b10fc55c02437addf6b8 | ||
|
||
sha256: {{ sha256 }} | ||
|
||
build: | ||
number: 0 | ||
noarch: generic | ||
run_exports: | ||
- asscom2 | ||
skip: True # [osx] | ||
- {{ pin_subpackage('assemblycomparator2', max_pin="x") }} | ||
|
||
requirements: | ||
run: | ||
- snakemake =7.32.4 | ||
- mamba >=1.4.9 # Necessary for snakemake to install child environments during development. | ||
|
||
- python >=3.11 | ||
- snakemake-minimal <8 | ||
- pulp <2.8 | ||
- mamba >=1.5.8 # Necessary for snakemake to install child environments during development. | ||
|
||
test: | ||
commands: | ||
- touch dummy.fa; asscom2 --help | ||
|
||
- "touch dummy.fa; asscom2 --help" | ||
|
||
about: | ||
home: https://github.com/cmkobel/assemblycomparator2 | ||
home: "https://github.com/cmkobel/assemblycomparator2" | ||
summary: 'assemblycomparator2: Compare prokaryotic genomic assemblies' | ||
license_family: GPL | ||
license: GPL-3.0 | ||
license_family: GPL3 | ||
license: "GPL-3.0-or-later" | ||
license_file: LICENSE | ||
dev_url: "https://github.com/cmkobel/assemblycomparator2" | ||
doc_url: "https://assemblycomparator2.readthedocs.io/en/latest" | ||
|
||
extra: | ||
skip-lints: | ||
- should_be_noarch_generic | ||
recipe-maintainers: | ||
- cmkobel | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
recipes/difcover/0001-Replaces-fname-char-with-std-string.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
From e0f4ac49aa6f6d3446eed5183ea585f7bea31c34 Mon Sep 17 00:00:00 2001 | ||
From: nikostr <[email protected]> | ||
Date: Fri, 31 May 2024 21:50:45 +0200 | ||
Subject: [PATCH] Replaces fname char with std::string | ||
|
||
|
||
diff --git a/dif_cover_scripts/from_unionbed_to_ratio_per_window_CC0 b/dif_cover_scripts/from_unionbed_to_ratio_per_window_CC0 | ||
old mode 100644 | ||
new mode 100755 | ||
index ee868ce..6c0a513 | ||
Binary files a/dif_cover_scripts/from_unionbed_to_ratio_per_window_CC0 and b/dif_cover_scripts/from_unionbed_to_ratio_per_window_CC0 differ | ||
diff --git a/dif_cover_scripts/from_unionbed_to_ratio_per_window_CC0.cpp b/dif_cover_scripts/from_unionbed_to_ratio_per_window_CC0.cpp | ||
index 88aa296..40152a5 100644 | ||
--- a/dif_cover_scripts/from_unionbed_to_ratio_per_window_CC0.cpp | ||
+++ b/dif_cover_scripts/from_unionbed_to_ratio_per_window_CC0.cpp | ||
@@ -20,7 +20,7 @@ int main( int argc , char** argv ) { | ||
|
||
|
||
int opt, a=1, A=max_cov, b=1, B=max_cov, v=1000, l=0; //!!! Default values for parameters !!!! | ||
- char fname[1000], fff[1000]; | ||
+ char fff[1000]; | ||
|
||
while ((opt = getopt(argc, argv, "a:A:b:B:v:l:")) != -1) { | ||
switch (opt) { | ||
@@ -54,12 +54,12 @@ int main( int argc , char** argv ) { | ||
exit(EXIT_FAILURE); | ||
} | ||
|
||
- strncat(fname,argv[optind],strlen(argv[optind])); | ||
+ std::string fname(argv[optind]); | ||
//printf ("fname=%s\n",fname); | ||
|
||
std::ifstream unionbed_file( fname ) ; | ||
if (!unionbed_file) { | ||
- fprintf(stderr, "Can't open union.bed file %s\n",fname); | ||
+ fprintf(stderr, "Can't open union.bed file %s\n",fname.c_str()); | ||
exit(EXIT_FAILURE); | ||
} | ||
|
||
-- | ||
2.44.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.