-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from TRON-Bioinformatics/51_pangolin_only_mode
Implemented lineage only mode
- Loading branch information
Showing
8 changed files
with
218 additions
and
98 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
|
||
################################################################################## | ||
# Genome generate | ||
################################################################################## | ||
echo "Running CoVigator pipeline test 14" | ||
source bin/assert.sh | ||
output=tests/output/test14 | ||
nextflow main.nf -profile conda --name test_data \ | ||
--output $output \ | ||
--reference_generate \ | ||
--reference $(pwd)/reference/Sars_cov_2.ASM985889v3.dna.toplevel.fa \ | ||
--gff $(pwd)/reference/Sars_cov_2.ASM985889v3.101.gff3 \ | ||
--snpeff_organism Sars_cov_2 | ||
|
||
# Test reference genome related output | ||
test -s $output/reference/sequences.fa.fai || { echo "Missing fasta index file!"; exit 1; } | ||
test -s $output/reference/sequences.dict || { echo "Missing GATK dict file!"; exit 1; } | ||
|
||
# Test bwa index files are present | ||
test -s $output/reference/sequences.fa.0123 || { echo "Missing bwa 0123 index file!"; exit 1; } | ||
test -s $output/reference/sequences.fa.amb || { echo "Missing bwa amb index file!"; exit 1; } | ||
test -s $output/reference/sequences.fa.ann || { echo "Missing bwa ann index file!"; exit 1; } | ||
test -s $output/reference/sequences.fa.bwt.2bit.64 || { echo "Missing bwa bwt.2bit.64 index file!"; exit 1; } | ||
test -s $output/reference/sequences.fa.pac || { echo "Missing bwa pac index file!"; exit 1; } | ||
|
||
|
||
# Test snpEff output | ||
test -s $output/snpeff/snpEff.config || { echo "Missing snpEff config file!"; exit 1; } | ||
test -s $output/snpeff/Sars_cov_2/snpEffectPredictor.bin || { echo "Missing snpEff predictor bin file!"; exit 1; } | ||
test -s $output/snpeff/Sars_cov_2/sequences.fa || { echo "Missing snpEff reference genome!"; exit 1; } | ||
test -s $output/snpeff/Sars_cov_2/genes.gff || { echo "Missing snpEff reference annotation!"; exit 1; } |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
################################################################################## | ||
# Lineage only mode | ||
################################################################################## | ||
|
||
echo "Running CoVigator pipeline test 15" | ||
source bin/assert.sh | ||
output=tests/output/test15 | ||
nextflow main.nf -profile conda --name test_data \ | ||
--output $output \ | ||
--vcf $(pwd)/tests/test_data/test_data.assembly.lineage_mode.vcf.gz \ | ||
--lineage_mode \ | ||
--skip_normalization | ||
|
||
test -s $output/test_data.input.fasta || { echo "Missing VCF2FASTA fasta file (lineage mode with vcf input)!"; exit 1; } | ||
test -s $output/test_data.input.pangolin.csv || { echo "Missing pangolin output file (lineage mode with vcf input)!"; exit 1; } | ||
assert_eq $(wc -l $output/test_data.input.pangolin.csv | cut -d ' ' -f1) 2 "Wrong number of pangolin results" | ||
|
||
|
||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
################################################################################## | ||
# Lineage only mode | ||
################################################################################## | ||
|
||
echo "Running CoVigator pipeline test 16" | ||
source bin/assert.sh | ||
output=tests/output/test15 | ||
nextflow main.nf -profile conda --name test_data \ | ||
--output $output \ | ||
--fasta $(pwd)/tests/test_data/test_data.fasta \ | ||
--lineage_mode | ||
|
||
test -s $output/test_data.assembly.pangolin.csv || { echo "Missing pangolin output file (lineage mode with vcf input)!"; exit 1; } | ||
assert_eq $(wc -l $output/test_data.assembly.pangolin.csv | cut -d ' ' -f1) 2 "Wrong number of pangolin results" |
Binary file not shown.