Skip to content

Commit

Permalink
testing sample sheet and skip extras
Browse files Browse the repository at this point in the history
  • Loading branch information
erinyoung committed Feb 13, 2024
1 parent 7ae81e1 commit fdee4f5
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/sample_sheet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Test Grandeur workflow with sample sheet

on: [pull_request, workflow_dispatch]

jobs:

test:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
lfs: true

- name: Checkout LFS objects
run: git lfs checkout

- name: Install Nextflow
run: |
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
- name: Run Grandeur
run: |
docker --version
mkdir reads
# lecleria genome - not an actual use-case
wget -q ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR283/002/SRR2838702/SRR2838702_1.fastq.gz
wget -q ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR283/002/SRR2838702/SRR2838702_2.fastq.gz
mv *fastq.gz reads/.
echo "sample,fastq_1,fastq_2" > sample_sheet.csv
echo "SRR2838702,reads/SRR2838702_1.fastq.gz,reads/SRR2838702_2.fastq.gz"
nextflow run . -profile docker -c .github/workflows/github_actions.config --sample_sheet sample_sheet.csv --skip_extras
cat grandeur/grandeur_summary.tsv
- name: Check summary files
run: |
for file in grandeur/mlst/mlst_summary.tsv
do
head $file
wc -l $file
done

0 comments on commit fdee4f5

Please sign in to comment.