-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add sidle reference taxonomy entries & custom input
- Loading branch information
Showing
7 changed files
with
166 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
|
||
# Untar any tar file in the working directory | ||
tar xzf database.tar.gz | ||
|
||
# Greengenes 13_8 | ||
if [ -d "gg_13_8_otus" ]; then | ||
mv gg_13_8_otus/rep_set/99_otus.fasta gg_13_8_otus_rep_set_99_otus.seq.fasta | ||
mv gg_13_8_otus/rep_set_aligned/99_otus.fasta gg_13_8_otus_rep_set_aligned_99_otus.alnseq.fasta | ||
mv gg_13_8_otus/taxonomy/99_otu_taxonomy.txt gg_13_8_otus_taxonomy_99_otu_taxonomy.tax.txt | ||
elif [ -d "gg_13_8_otus" ]; then | ||
mv SILVA_128_QIIME_release/rep_set/rep_set_all/99/99_otus.fasta SILVA_128_QIIME_release_rep_set_all_99_otus.seq.fasta | ||
gunzip -c /SILVA_128_QIIME_release/rep_set_aligned/99/99_otus_aligned.fasta.gz > SILVA_128_QIIME_release_rep_set_aligned_99_otus_aligned.alnseq.fasta | ||
mv SILVA_128_QIIME_release/taxonomy/taxonomy_all/99/consensus_taxonomy_7_levels SILVA_128_QIIME_release_taxonomy_all_99_consensus_taxonomy_7_levels.tax.txt | ||
else | ||
echo "Didnt detect any expected directory" | ||
fi | ||
|
||
|
||
|
||
|
||
|
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,38 @@ | ||
process FORMAT_TAXONOMY_SIDLE { | ||
label 'process_low' | ||
|
||
conda "conda-forge::sed=4.7" | ||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? | ||
'https://containers.biocontainers.pro/s3/SingImgsRepo/biocontainers/v1.2.0_cv1/biocontainers_v1.2.0_cv1.img' : | ||
'docker.io/biocontainers/biocontainers:v1.2.0_cv1' }" | ||
|
||
input: | ||
path('database.tar.gz') | ||
val(suffix) | ||
|
||
output: | ||
path( "*.seq.fasta" ) , emit: seq | ||
path( "*.alnseq.fasta") , emit: alnseq | ||
path( "*.tax.txt") , emit: tax | ||
path( "ref_taxonomy.*.txt") , emit: ref_tax_info | ||
path "versions.yml" , emit: versions | ||
|
||
when: | ||
task.ext.when == null || task.ext.when | ||
|
||
script: | ||
""" | ||
${params.sidle_ref_databases[params.sidle_ref_taxonomy]["fmtscript"]} | ||
#Giving out information | ||
echo -e "--sidle_ref_taxonomy: ${params.sidle_ref_taxonomy}\n" >ref_taxonomy.${suffix}.txt | ||
echo -e "Title: ${params.sidle_ref_databases[params.sidle_ref_taxonomy]["title"]}\n" >>ref_taxonomy.${suffix}.txt | ||
echo -e "Citation: ${params.sidle_ref_databases[params.sidle_ref_taxonomy]["citation"]}\n" >>ref_taxonomy.${suffix}.txt | ||
echo "All entries: ${params.sidle_ref_databases[params.sidle_ref_taxonomy]}" >>ref_taxonomy.${suffix}.txt | ||
cat <<-END_VERSIONS > versions.yml | ||
"${task.process}": | ||
bash: \$(bash --version | sed -n 1p | sed 's/GNU bash, version //g') | ||
END_VERSIONS | ||
""" | ||
} |
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