Skip to content

Commit

Permalink
fix bug in plusAnalyses.nf
Browse files Browse the repository at this point in the history
  • Loading branch information
ybdong919 committed May 17, 2024
1 parent 6d90ca7 commit fc53248
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions modules/plusAnalyses.nf
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ process plusAnalyses {
"""
samplename=\$(echo ${mypath} | rev | cut -d "/" -f 1 | rev)
speciesid=\$(cat ${pyoutputs} | cut -d "," -f 20)
speciesid=\$(cat ${pyoutputs} | cut -d "," -f 21)
speciesid2=\$(cat ${pyoutputs} | cut -d "," -f 1)
echo \${speciesid}
echo \${speciesid2}
#echo \$(cat ${pyoutputs}) > /blue/bphl-florida/dongyibo/Dev_Sanibel_072023/allitems.txt
#echo \${speciesid} > /blue/bphl-florida/dongyibo/Dev_Sanibel_072023/speciesid.txt
#echo \${speciesid2} > /blue/bphl-florida/dongyibo/Dev_Sanibel_072023/speciesid2.txt
#the epidemiological typing of clinical and environmental isolates of Legionella pneumophila in outbreak investigations
if [[ "\${speciesid}" == "Legionella pneumophila" || "\${speciesid2}" == "Legionella pneumophila" ]]; then
mkdir -p ${mypath}/legsta/
Expand All @@ -27,9 +29,9 @@ process plusAnalyses {
singularity exec --cleanenv docker://staphb/shigatyper:2.0.1 shigatyper --R1 ${params.input}/\${samplename}_1.fastq.gz --R2 ${params.input}/\${samplename}_2.fastq.gz > ${mypath}/shigella/shigella_output.txt
fi
# emm type and subtype of group A strep
#if [[ "\${speciesid}" == "Streptococcus pyogenes" || "\${speciesid}" == "Streptococcus dysgalactiae" ]]; then
#if [[ "\${speciesid}" == *"pyogenes"* || "\${speciesid}" == *"dysgalactiae"* ]]; then
if [ "\${speciesid}" == "Streptococcus pyogenes" || "\${speciesid}" == "Streptococcus dysgalactiae" ]; then
if [[ "\${speciesid}" == "Streptococcus pyogenes" || "\${speciesid}" == "Streptococcus dysgalactiae" ]]; then
#if [[ "\${speciesid}" =~ "pyogenes" || "\${speciesid}" =~ "dysgalactiae" ]]; then
#if [ "\${speciesid}" == "Streptococcus pyogenes" || "\${speciesid}" == "Streptococcus dysgalactiae" ]; then
mkdir -p ${mypath}/groupAstrep/
cp ${params.input}/\${samplename}_1.fastq.gz ${mypath}/groupAstrep/
cp ${params.input}/\${samplename}_2.fastq.gz ${mypath}/groupAstrep/
Expand Down

0 comments on commit fc53248

Please sign in to comment.