generated from CCBR/CCBR_SnakemakeTemplate
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #114 from CCBR/master
v2.4.1 changes from main
- Loading branch information
Showing
12 changed files
with
197 additions
and
39 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
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,14 @@ | ||
name: Add issues/PRs to user projects | ||
|
||
on: | ||
issues: | ||
types: | ||
- assigned | ||
pull_request: | ||
types: | ||
- assigned | ||
|
||
jobs: | ||
add-to-project: | ||
uses: CCBR/.github/.github/workflows/auto-add-user-project.yml@v0.1.0 | ||
secrets: inherit |
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,25 +1,32 @@ | ||
name: DevTesting | ||
name: test | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- dev | ||
pull_request: | ||
branches: | ||
- master | ||
- dev | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.1.0 | ||
- uses: docker://snakemake/snakemake:v7.19.1 | ||
with: | ||
directory: '.test' | ||
- name: Dev Testing Workflow | ||
continue-on-error: true | ||
- name: dryrun | ||
shell: bash {0} | ||
run: | | ||
docker run -v $PWD:/opt2 snakemake/snakemake:v7.19.1 /bin/bash -c \ | ||
"mkdir -p /opt2/output_carlisle/config /opt2/output_carlisle/annotation && \ | ||
cp -r /opt2/workflow/scripts/ /opt2/output_carlisle/ && \ | ||
cp /opt2/resources/cluster_biowulf.yaml /opt2/output_carlisle/config/cluster.yaml && \ | ||
cp /opt2/resources/tools_biowulf.yaml /opt2/output_carlisle/config/tools.yaml && \ | ||
cd /opt2/output_carlisle/annotation && \ | ||
touch hg38.fa genes.gtf hg38.bed hg38.tss.bed hg38_refseq.ucsc Ecoli_GCF_000005845.2_ASM584v2_genomic.fna adapters.fa && \ | ||
snakemake --lint -s /opt2/workflow/Snakefile \ | ||
-d /opt2/output_carlisle --configfile /opt2/.test/config_lint.yaml || \ | ||
echo 'There may have been a few warnings or errors. Please read through the log to determine if its harmless.'" | ||
bash ./install.sh ./test-workdir/carlisle-v9999.9999.9999-dev | ||
./test-workdir/carlisle-v9999.9999.9999-dev/bin/carlisle --runmode=init --workdir=./test-workdir/output_carlisle | ||
cp ./test-workdir/carlisle-v9999.9999.9999-dev/bin/.test/config_lint.yaml ./test-workdir/output_carlisle/config/config.yaml | ||
# TODO: use `carlisle run --mode dryrun` | ||
docker run -v ./test-workdir/:/opt2 snakemake/snakemake:v7.19.1 /bin/bash -c \ | ||
"cd /opt2 && snakemake \ | ||
-s ./carlisle-v9999.9999.9999-dev/bin/workflow/Snakefile \ | ||
--dryrun \ | ||
--configfile carlisle-v9999.9999.9999-dev/bin/.test/config_lint.yaml \ | ||
--directory output_carlisle" |
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,48 @@ | ||
default_install_hook_types: [pre-commit, commit-msg] | ||
default_stages: [pre-commit] | ||
exclude: | | ||
(?x)( | ||
^assets/| | ||
^docs/.*.html| | ||
^_extensions/ | ||
) | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v1.2.3 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: check-json | ||
# spell check | ||
- repo: https://github.com/codespell-project/codespell | ||
rev: v2.2.4 | ||
hooks: | ||
- id: codespell | ||
# https://github.com/codespell-project/codespell/issues/1498 | ||
# Python formatting | ||
- repo: https://github.com/psf/black | ||
rev: 23.7.0 | ||
hooks: | ||
- id: black | ||
# R formatting | ||
- repo: https://github.com/lorenzwalthert/precommit | ||
rev: v0.1.2 | ||
hooks: | ||
- id: style-files | ||
# general linting | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v2.7.1 | ||
hooks: | ||
- id: prettier | ||
# enforce commit format | ||
- repo: https://github.com/compilerla/conventional-pre-commit | ||
rev: v2.3.0 | ||
hooks: | ||
- id: conventional-pre-commit | ||
stages: [commit-msg] | ||
args: [] | ||
- repo: https://github.com/citation-file-format/cffconvert | ||
rev: 054bda51dbe278b3e86f27c890e3f3ac877d616c | ||
hooks: | ||
- id: validate-cff |
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,8 @@ | ||
# gitignore | ||
.nextflow* | ||
work/ | ||
data/ | ||
results/ | ||
.DS_Store | ||
*.code-workspace | ||
assets/*.html |
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,7 @@ | ||
overrides: | ||
- files: | ||
- "*.md" | ||
- "*.cff" | ||
- ".prettierrc" | ||
options: | ||
tabWidth: 2 |
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,29 @@ | ||
cff-version: 1.2.0 | ||
message: "If you use CARLISLE, please cite it as below." | ||
authors: | ||
- family-names: "Sevilla" | ||
given-names: "Samantha" | ||
orcid: "https://orcid.org/0000-0002-8734-9875" | ||
affiliation: Advanced Biomedical Computational Science, Frederick National Laboratory for Cancer Research, Frederick, MD 21702, USA | ||
- family-names: "Koparde" | ||
given-names: "Vishal" | ||
orcid: "https://orcid.org/0000-0001-8978-8495" | ||
affiliation: Advanced Biomedical Computational Science, Frederick National Laboratory for Cancer Research, Frederick, MD 21702, USA | ||
- family-names: "Chou" | ||
given-names: "Hsien-chao" | ||
orcid: "https://orcid.org/0000-0002-4870-9663" | ||
- family-names: "Kim" | ||
given-names: "Sohyoung" | ||
- family-names: "Hu" | ||
given-names: "Yue" | ||
- family-names: "Saloura" | ||
given-names: "Vassiliki" | ||
title: "Cut And Run anaLysIS pipeLinE (CARLISLE)" | ||
url: https://ccbr.github.io/CARLISLE/ | ||
repository-code: https://github.com/CCBR/CARLISLE | ||
identifiers: | ||
- description: Archived snapshots of all versions | ||
type: doi | ||
value: 10.5281/zenodo.10483876 | ||
version: 2.4.1 | ||
date-released: 2024-01-10 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2.4.1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/usr/bin/env bash | ||
# usage: | ||
# ./install.sh new/path/to/install | ||
# examples | ||
# ./install.sh .v2.4.0 | ||
# /data/CCBR_Pipeliner/Pipelines/CARLISLE/dev/install.sh /data/CCBR_Pipeliner/Pipelines/CARLISLE/.v2.5.0-a | ||
set -euo pipefail | ||
|
||
VERSION=$1 | ||
mkdir -p ${VERSION}/bin | ||
INSTALL_PATH=$(readlink -f ${VERSION}/bin) | ||
DIRNAME=$(readlink -f $(dirname $0)) | ||
|
||
if [ -n "$(ls -A $INSTALL_PATH 2>/dev/null)" ] | ||
then | ||
echo "ERROR: directory not empty: ${INSTALL_PATH}" | ||
echo $(ls $INSTALL_PATH) | ||
exit 1 | ||
fi | ||
|
||
# copy essential files & directories | ||
|
||
## carlisle CLI script | ||
cp $DIRNAME/carlisle $INSTALL_PATH/ | ||
|
||
## all config & workflow scripts; | ||
for subdir in annotation config workflow resources .test | ||
do | ||
mkdir -p ${INSTALL_PATH}/$subdir | ||
cp -r ${DIRNAME}/$subdir/* ${INSTALL_PATH}/$subdir | ||
done | ||
|
||
# export path | ||
if [[ ":$PATH:" != *":${INSTALL_PATH}:"* ]];then | ||
export PATH="${PATH}:${INSTALL_PATH}" | ||
fi | ||
|
||
echo "${INSTALL_PATH}" |
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