Skip to content

Commit

Permalink
Small updates
Browse files Browse the repository at this point in the history
  • Loading branch information
DriesSchaumont committed Nov 8, 2024
1 parent 51bd7ab commit 88ed152
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 25 deletions.
2 changes: 0 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* `rsem/rsem_calculate_expression`: Calculate expression levels (PR #93).

* `cellranger`:
- `cellranger/cellranger_count`: Align fastq files using Cell Ranger count (PR #163).
- `cellranger/cellranger_mkref`: Build a Cell Ranger-compatible reference folder from user-supplied genome FASTA and gene GTF files (PR #164).


Expand All @@ -30,7 +29,6 @@

* `nanoplot`: Plotting tool for long read sequencing data and alignments (PR #95).


## BUG FIXES

* `falco`: Fix a typo in the `--reverse_complement` argument (PR #157).
Expand Down
29 changes: 12 additions & 17 deletions src/cellranger/cellranger_mkref/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ namespace: cellranger
description: Build a Cell Ranger-compatible reference folder from user-supplied genome FASTA and gene GTF files.
keywords: [ cellranger, single-cell, rna-seq, alignment, reference, gtf, fasta ]
links:
documentation: https://support.10xgenomics.com/single-cell-gene-expression/software/pipelines/latest/advanced/references#header
documentation: https://support.10xgenomics.com/single-cell-gene-expression/software/pipelines/latest/advanced/references
repository: https://github.com/10XGenomics/cellranger/blob/main/lib/python/cellranger/reference_builder.py
homepage: https://www.10xgenomics.com/support/software/cell-ranger/latest
issue_tracker: https://github.com/10XGenomics/cellranger/issues
references:
doi: 10.1038/ncomms14049
license: Copyright (c) 2023 10x Genomics
license: Proprietary
requirements:
commands: [cellranger, pigz, unpigz, tar]
authors:
- __merge__: /src/_authors/emma_rousseau.yaml
roles: [ author ]
Expand All @@ -27,6 +29,7 @@ arguments:
example: transcriptome_annotation.gtf.gz
- type: string
name: "--reference_version"
required: false
description: "Optional reference version string to include with reference"
- type: file
name: --output
Expand All @@ -44,24 +47,16 @@ test_resources:

engines:
- type: docker
image: quay.io/nf-core/cellranger:8.0.0
image: ghcr.io/data-intuitive/cellranger:8.0
setup:
- type: docker
run: |
DEBIAN_FRONTEND=noninteractive apt update && \
apt upgrade -y && apt install -y procps pigz && rm -rf /var/lib/apt/lists/*
- type: apt
packages:
- procps
- pigz
test_setup:
- type: apt
packages: [ git, wget ]
- type: docker
run: |
TARGETARCH="${TARGETARCH:-$(dpkg --print-architecture)}" && \
TARGETOS="${TARGETOS:-linux}" && \
PATH="${PATH}:/usr/local/go/bin" && \
wget https://go.dev/dl/go1.21.4.$TARGETOS-$TARGETARCH.tar.gz && tar -C /usr/local/ -xzf go1.21.4.$TARGETOS-$TARGETARCH.tar.gz && \
rm go1.21.4.$TARGETOS-$TARGETARCH.tar.gz && \
git clone --branch v2.5.0 https://github.com/shenwei356/seqkit.git && \
cd seqkit/seqkit/ && go build && cp seqkit /usr/bin/ && cd ../../ && rm -rf seqkit && rm -r /usr/local/go
packages:
- seqkit
- type: docker
run: |
cellranger --version | sed 's/ cellranger-/: /' > /var/software_versions.txt
Expand Down
10 changes: 5 additions & 5 deletions src/cellranger/cellranger_mkref/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
set -eo pipefail

## VIASH START
par_genome_fasta="resources_test/test_data/reference_small.fa.gz"
par_transcriptome_gtf="resources_test/test_data/reference_small.gtf.gz"
par_output="gencode_v41_annotation_cellranger.tar.gz"
par_genome_fasta="test_data/reference_small.fa.gz"
par_transcriptome_gtf="test_data/reference_small.gtf.gz"
par_output="output.tar.gz"
## VIASH END

# create temporary directory
tmpdir=$(mktemp -d "$VIASH_TEMP/$meta_name-XXXXXXXX")
tmpdir=$(mktemp -d "$meta_temp_dir/$meta_name-XXXXXXXX")
function clean_up {
rm -rf "$tmpdir"
}
trap clean_up EXIT

# just to make sure
# We change into the tempdir later, so we need absolute paths.
par_genome_fasta=$(realpath $par_genome_fasta)
par_transcriptome_gtf=$(realpath $par_transcriptome_gtf)
par_output=$(realpath $par_output)
Expand Down
2 changes: 1 addition & 1 deletion src/cellranger/cellranger_mkref/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -eou pipefail

## VIASH START
meta_executable="bin/viash run src/reference/make_reference/config.vsh.yaml --"
meta_executable="viash run src/reference/make_reference/config.vsh.yaml --"
## VIASH END

# create temporary directory
Expand Down

0 comments on commit 88ed152

Please sign in to comment.