Download fastq and fasta and run #276
This file contains hidden or 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
| name: Test SARS-CoV-2 workflow | |
| on: [pull_request, workflow_dispatch] | |
| run-name: Download fastq and fasta and run | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@master | |
| - name: Clean up Disk space | |
| uses: jlumbroso/free-disk-space@main | |
| - name: Install Nextflow | |
| run: | | |
| wget -qO- get.nextflow.io | bash | |
| sudo mv nextflow /usr/local/bin/ | |
| - name: Run Cecret | |
| run: | | |
| docker --version | |
| mkdir reads | |
| wget -q ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR139/023/SRR13957123/SRR13957123_1.fastq.gz | |
| wget -q ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR139/023/SRR13957123/SRR13957123_2.fastq.gz | |
| mv *fastq.gz reads/. | |
| mkdir -p fastas | |
| wget -q https://raw.githubusercontent.com/StaPH-B/docker-builds/master/tests/SARS-CoV-2/SRR13957123.consensus.fa | |
| mv SRR13957123.consensus.fa SRR13957123DB.fa | |
| mv *fa fastas/. | |
| nextflow run . -profile docker -c .github/workflows/github_actions.config --primer_set ncov_V3 --cleaner 'fastp' --aligner 'minimap2' --mpileup_depth 200 --fastas fastas --reads reads | |
| ls cecret* | |
| cat cecret*/cecret_results.txt | |
| - name: Clean | |
| run: rm -rf work .nextflow* |