Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
metagWGS
Commits
c2523f7e
Commit
c2523f7e
authored
Jan 13, 2022
by
VIENNE MAINA
Browse files
replace bedtools bamtofastq with samtools fastq (direct fastq.gz)
parent
69c1bb09
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/prokka.nf
View file @
c2523f7e
...
...
@@ -13,12 +13,7 @@ process PROKKA {
"""
prokka --metagenome --noanno --rawproduct --outdir PROKKA_${sampleId} --prefix ${sampleId} ${assembly_file} --centre X --compliant --cpus ${task.cpus}
rm PROKKA_${sampleId}/*.gbk
gt gff3validator PROKKA_${sampleId}/${sampleId}.gff > PROKKA_${sampleId}/${sampleId}_gff3_validator.txt
if grep -Fxqv "input is valid GFF3" PROKKA_${sampleId}/${sampleId}_gff3_validator.txt
then
rm PROKKA_${sampleId}/${sampleId}_gff3_validator.txt
fi
gt gff3validator PROKKA_${sampleId}/${sampleId}.gff
"""
}
...
...
modules/reads_deduplication.nf
View file @
c2523f7e
...
...
@@ -24,8 +24,7 @@ process READS_DEDUPLICATION {
samtools idxstats ${sampleId}.filtered.bam > ${sampleId}.count_reads_on_contigs.idxstats
samtools flagstat ${sampleId}.filtered.bam > ${sampleId}.count_reads_on_contigs.flagstat
samtools sort -n -o ${sampleId}.filtered.sort.bam ${sampleId}.filtered.bam
bedtools bamtofastq -i ${sampleId}.filtered.sort.bam -fq ${sampleId}_R1_dedup.fastq -fq2 ${sampleId}_R2_dedup.fastq
gzip ${sampleId}_R1_dedup.fastq ; gzip ${sampleId}_R2_dedup.fastq
samtools fastq -N -1 ${sampleId}_R1_dedup.fastq.gz -2 ${sampleId}_R2_dedup.fastq.gz ${sampleId}.filtered.sort.bam
rm ${sampleId}.sort.bam
rm ${sampleId}.fixmate.bam
rm ${sampleId}.fixmate.positionsort.bam
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment