Skip to content
Snippets Groups Projects
Commit edff11c7 authored by Alex Kanitz's avatar Alex Kanitz
Browse files

build: add Conda environment specification

parent 41f2ae2d
No related branches found
No related tags found
1 merge request!6build: add Conda environment specification
Pipeline #14482 passed
# Created by https://www.toptal.com/developers/gitignore/api/r
# Edit at https://www.toptal.com/developers/gitignore?templates=r
### R ###
# History files
.Rhistory
.Rapp.history
# Session Data files
.RData
.RDataTmp
# User-specific files
.Ruserdata
# Example code in package build process
*-Ex.R
# Output files from R CMD build
/*.tar.gz
# Output files from R CMD check
/*.Rcheck/
# RStudio files
.Rproj.user/
# produced vignettes
vignettes/*.html
vignettes/*.pdf
# OAuth2 token, see https://github.com/hadley/httr/releases/tag/v0.3
.httr-oauth
# knitr and R markdown default cache directories
*_cache/
/cache/
# Temporary files created by R markdown
*.utf8.md
*.knit.md
# R Environment Variables
.Renviron
# pkgdown site
docs/
# translation temp files
po/*~
# RStudio Connect folder
rsconnect/
### R.Bookdown Stack ###
# R package: bookdown caching files
/*_files/
# End of https://www.toptal.com/developers/gitignore/api/r
tests/test_files/test.fa.gz.fai
tests/test_files/test.fa.gz.gzi
......@@ -13,16 +13,26 @@ ascii_alignment_pileup.R [-hv] [OPTIONS] bed bam [bam2 ...]
## Requirements
* `R` 3.6.0 / 4.2.1
* `R` 3.6.0 / 4.1.3 / 4.2.1
* `optparse` 1.6.2 / 1.7.1
* `rtracklayer` 1.44.0 / 1.56.1
* `rtracklayer` 1.44.0 / 1.54.0 / 1.56.1
The script was successfully tested with the indicated versions. Other versions
may work as well, but have not been tested.
For convenience, you can build a container with all required software from the
provided `Dockerfile` with `docker build .`. Alternatively, you can also pull a
prebuilt Docker image from
## Installation
The easiest way to install the script is via [Conda][conda]. If you have Conda
installed, all you need to do is:
```
conda env create -f environment.yml
conda activate ascii-alignment-pileup
```
Alternatively, you can build a container with all required software from the
provided `Dockerfile` with `docker build .`. You can also pull a prebuilt
Docker image from
<https://hub.docker.com/repository/docker/zavolab/ascii-alignment-pileup>.
## Input files
......@@ -204,6 +214,7 @@ Email: <zavolab-biozentrum@unibas.ch>
[bed]: <https://www.ensembl.org/info/website/upload/bed.html>
[bgzip]: <http://www.htslib.org/doc/bgzip.html>
[biocontainers]: <https://biocontainers.pro/>
[conda]: <https://docs.conda.io/en/latest/>
[fasta]: <https://en.wikipedia.org/wiki/FASTA_format>
[gff]: <https://en.wikipedia.org/wiki/General_feature_format>
[htslib]: <https://github.com/samtools/htslib>
\ No newline at end of file
[htslib]: <https://github.com/samtools/htslib>
name: ascii-alignment-pileup
channels:
- bioconda
dependencies:
- r-optparse=1.7.1
- bioconductor-rtracklayer=1.54.0
......@@ -17,7 +17,7 @@ user_dir=$PWD
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
cd $script_dir
ascii_alignment_pileup.R \
../ascii_alignment_pileup.R \
--verbose \
--reference="test_files/test.fa.gz" \
--annotations="test_files/test.gff" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment