Skip to content

Commit

Permalink
hotfix for host rm and host vs reference names
Browse files Browse the repository at this point in the history
  • Loading branch information
EnriqueDoster committed Apr 11, 2023
1 parent ef9772d commit 39af493
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions main_AMR++.nf
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ workflow {

} else if(params.pipeline == "standard_AMR") {

STANDARD_AMRplusplus(fastq_files,params.reference, params.amr, params.annotation)
STANDARD_AMRplusplus(fastq_files,params.host, params.amr, params.annotation)

} else if(params.pipeline == "fast_AMR") {

FAST_AMRplusplus(fastq_files, params.amr, params.annotation)
}
else if(params.pipeline == "standard_AMR_wKraken") {

STANDARD_AMRplusplus_wKraken(fastq_files,params.reference, params.amr, params.annotation, params.kraken_db)
STANDARD_AMRplusplus_wKraken(fastq_files,params.host, params.amr, params.annotation, params.kraken_db)
}
else if(params.pipeline == "eval_qc") {

Expand Down
4 changes: 2 additions & 2 deletions modules/Alignment/bwa.nf
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ process bwa_rm_contaminant_fq {
bamtofastq \
-i ${pair_id}.host.sorted.removed.bam \
-fq ${pair_id}.non.host.R1.fastq.gz \
-fq2 ${pair_id}.non.host.R2.fastq.gz \
-paired
-fq2 ${pair_id}.non.host.R2.fastq.gz
rm *.bam
"""

Expand Down
5 changes: 4 additions & 1 deletion modules/Resistome/resistome.nf
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,10 @@ process runsnp {
"""
ln -s $baseDir/bin/AmrPlusPlus_SNP/* .
python3 SNP_Verification.py -c config.ini -a true -i ${bam} -o ${sample_id}.${prefix}_SNPs --count_matrix ${snp_count_matrix}
# change name to stay consistent with count matrix name
mv ${bam} ${sample_id}.bam
python3 SNP_Verification.py -c config.ini -a true -i ${sample_id}.bam -o ${sample_id}.${prefix}_SNPs --count_matrix ${snp_count_matrix}
cut -d ',' -f `awk -v RS=',' "/${sample_id}/{print NR; exit}" ${sample_id}.${prefix}_SNPs${snp_count_matrix}` ${sample_id}.${prefix}_SNPs${snp_count_matrix} > ${sample_id}.${prefix}_SNP_count_col
Expand Down

0 comments on commit 39af493

Please sign in to comment.