Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/prek.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Lint code
on:
push:
pull_request:

jobs:
prek:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/action@v3.0.0
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ results
*.yml
!src/main/resources/**/*.yml
!src/main/resources/**/*.yaml
!.github/workflows/**.yml
DONE
!tests/*/*.yaml
.nf-test*
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/worksheets/nfcmgg_preprocessing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ output:
# - id: The name of the field in the matched file that should be used as the identifier for the metric.
# - field: The name of the field in the matched file that should be used as the value for the metric.
metrics:
yield:
clusters:
pattern: ".*_SAV_data$"
subpath: "multiqc_bclconvert_bysample.txt"
filetype: tsv
id: Sample
field: yield_
field: clusters
# Define which samplesheets that should be generated and what their content is.
# This is structured as a list of maps, where each map contains the following keys:
# - name: The name of the YAML samplesheet to generate
Expand Down Expand Up @@ -126,14 +126,14 @@ samplesheets:
&& data.tag?.toLowerCase() == 'rnaseqmdg'
&& data.fastq_1 != null
filter_func: |
data.yield?.toLong() >= 1000000L
data.clusters?.toLong() >= 1000000L
fields:
sample:
fastq_1:
fastq_2:
strandedness:
reads:
source: yield
source: clusters
- name: nfcmgg_vivar_samplesheet.yaml
description: The samplesheet for the nf-cmgg/vivar pipeline
include_func: |
Expand Down
2 changes: 1 addition & 1 deletion tests/preprocessing_mock/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ process MOCK_OUTPUT {

# Creating SAV data
mkdir multiqc_SAV_data
echo "Sample\tyield_" > multiqc_SAV_data/multiqc_bclconvert_bysample.txt
echo "Sample\tclusters" > multiqc_SAV_data/multiqc_bclconvert_bysample.txt
${sav_data}
"""
}
Loading