Skip to content

Commit 7ea014c

Browse files
committed
update metadata to v1.1.0
1 parent bd5fd41 commit 7ea014c

File tree

7 files changed

+152
-27
lines changed

7 files changed

+152
-27
lines changed

.editorconfig

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ root = true
66
[*]
77
end_of_line = lf
88
insert_final_newline = true
9+
trim_trailing_whitespace = true
910
charset = utf-8
1011
indent_style = space
1112
indent_size = 4
1213

1314
[*.{tsv,tab}]
1415
indent_style = tab
1516

16-
[*.{yml,yaml,json}]
17+
[*.{yml,yaml,json,toml,tml}]
1718
indent_style = space
1819
indent_size = 2

.gitignore

+65
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,63 @@
1+
# ====================
2+
# gitignore entries
3+
# for R
4+
# ====================
5+
6+
# History files
7+
.Rhistory
8+
.Rapp.history
9+
10+
# Session Data files
11+
.RData
12+
.RDataTmp
13+
14+
# User-specific files
15+
.Ruserdata
16+
17+
# Example code in package build process
18+
*-Ex.R
19+
20+
# Output files from R CMD build
21+
/*.tar.gz
22+
23+
# Output files from R CMD check
24+
/*.Rcheck/
25+
26+
# RStudio files
27+
.Rproj.user/
28+
29+
# produced vignettes
30+
vignettes/*.html
31+
vignettes/*.pdf
32+
33+
# OAuth2 token, see https://github.com/hadley/httr/releases/tag/v0.3
34+
.httr-oauth
35+
36+
# knitr and R markdown default cache directories
37+
*_cache/
38+
/cache/
39+
40+
# Temporary files created by R markdown
41+
*.utf8.md
42+
*.knit.md
43+
44+
# R Environment Variables
45+
.Renviron
46+
47+
# pkgdown site
48+
docs/
49+
50+
# translation temp files
51+
po/*~
52+
53+
# RStudio Connect folder
54+
rsconnect/
55+
56+
# ====================
57+
# gitignore entries
58+
# for PYTHON
59+
# ====================
60+
161
# Byte-compiled / optimized / DLL files
262
__pycache__/
363
*.py[cod]
@@ -128,6 +188,11 @@ dmypy.json
128188
# Pyre type checker
129189
.pyre/
130190

191+
# ====================
192+
# gitignore entries
193+
# CUSTOM
194+
# ====================
195+
131196
# VS code
132197
.vscode/
133198

CITATION.md

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Citing this repository
2+
3+
If you are using the content of this repository in whole or in part for your own work,
4+
please credit the Core Unit Bioinformatics in an appropriate form.
5+
6+
In general, please add this statement to the acknowledgments of your publication:
7+
8+
This work was supported by the Core Unit Bioinformatics
9+
of the Medical Faculty of the Heinrich Heine University Düsseldorf.
10+
11+
Additionally, please follow the below instructions to obtain a citable reference
12+
for your publication.
13+
14+
## Identifying the right source link
15+
16+
Each repository of the Core Unit Bioinformatics is assigned a persistent
17+
identifier (PID) at some point (usually after the prototype stage). Please use
18+
this PID to link to the repository. You always find the PID in the top-level
19+
`pyproject.toml`. Depending on the type of repository (project, workflow, or
20+
workflow template), the relevant PID is listed in the corresponding metadata
21+
section:
22+
23+
```toml
24+
# workflow repository
25+
[cubi.workflow]
26+
pid = "THE-PID"
27+
```
28+
29+
```toml
30+
# workflow template repository
31+
[cubi.workflow.template]
32+
pid = "THE-PID"
33+
```
34+
35+
```toml
36+
# project repository
37+
[cubi.project]
38+
pid = "THE-PID"
39+
```
40+
41+
If a PID has not yet been assigned to the repository, please use the repository URL,
42+
and, if time permits, contact the repository maintainer regarding assigning a PID
43+
in the near future.
44+
45+
### 1. Release version
46+
47+
For release versions, please use the respective version string in addition to the source link,
48+
i.e. ideally in combination with the PID, and integrate that information into your list
49+
of references as appropriate.
50+
51+
Note that repositories of the type "project" may not contain a lot of code, and are thus
52+
often not amenable to the usual "release cycle" following bug fixes, feature integrations and so on.
53+
Hence, the "project" metadata do not contain a "version" key (as opposed to workflow and workflow
54+
template repositories). See the next point if you encounter that situation.
55+
56+
### 2. Development (non-release) version
57+
58+
For development versions, please use the respective git commit hash in addtion to the source link,
59+
i.e. ideally in combination with the PID, and integrate that information into your list
60+
of references as appropriate. It is strongly recommended to only use git commits from the two
61+
central branches `main` and `dev`.
62+
63+
If a "project" repository is lacking an explicit release version, please use the same strategy
64+
to obtain a citable reference of the repository.
65+
66+
67+
### 3. None of the above
68+
69+
Please get in touch and we'll find a solution for your case :-)

README.md

+1-16
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,4 @@ Add info here - be concise, and provide more details in [the workflow documentat
2626

2727
# Citation
2828

29-
If you use this workflow (or non-trivial parts of it such as a whole sub-module),
30-
please credit the Core Unit Bioinformatics as follows:
31-
32-
1. you use a release version with DOI:
33-
- please use the DOI to link to the workflow version
34-
- integrate the DOI into the references of your publication (if applicable)
35-
2. you use a dev/non-release version:
36-
- please link to the workflow repository where appropriate (e.g., in your Methods section)
37-
- (recommended: report the exact commit hash you are referring to)
38-
- please add the following statement to your acknowledgements:
39-
```
40-
This work was supported by the Core Unit Bioinformatics of the Medical Faculty
41-
of the Heinrich Heine University Düsseldorf.
42-
```
43-
3. you think none of the above options apply in your case:
44-
- please get in touch and let's talk about it :-)
29+
If not indicated otherwise above, please follow [these instructions](CITATION.md) to cite this repository in your own work.

pyproject.toml

+13-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
[tool.black]
42
line-length = 88
53

@@ -16,17 +14,22 @@ disable=[
1614
[tool.isort]
1715
profile = "black"
1816

19-
[cubi.project]
17+
[cubi.metadata]
2018
pid = "undefined"
21-
name = "undefined"
22-
date = 2000-01-01
19+
version = "1.1.0"
2320

24-
[cubi.workflow]
25-
pid = "undefined"
26-
name = "undefined"
27-
version = "prototype"
21+
[cubi.metadata.naming.workflow.system]
22+
smk="snakemake"
23+
nxf="nextflow"
24+
cwl="common-workflow-language"
25+
wdl="workflow-definition-language"
26+
27+
[cubi.metadata.naming.project.type]
28+
dev="development"
29+
run="production-run"
30+
bmk="benchmark"
2831

2932
[cubi.workflow.template]
3033
pid = "undefined"
31-
system = "snakemake"
34+
system = "smk"
3235
version = "prototype"

workflow/envs/dev_env.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ dependencies:
1212
- numpy=1.23.1
1313
- pyyaml=6.0
1414
- toml=0.10.2
15+
- semver=2.13.0
1516
- coincbc=2.10.8
1617
- pylint=2.14.5
1718
- isort=5.10.1

workflow/envs/exec_env.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ dependencies:
1212
- numpy=1.23.1
1313
- pyyaml=6.0
1414
- toml=0.10.2
15+
- semver=2.13.0
1516
- coincbc=2.10.8

0 commit comments

Comments
 (0)