Merge branch 'empty_gff_CW-5438' into 'dev'
Empty GFF bug CW-5438 See merge request epi2melabs/workflows/wf-transcriptomes!194
This commit is contained in:
commit
724a6515ea
@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [Unrelased]
|
||||||
|
### Fixed
|
||||||
|
- merge_gff_compare failing with empty GFF files.
|
||||||
|
|
||||||
## [v1.6.0]
|
## [v1.6.0]
|
||||||
### Fixed
|
### Fixed
|
||||||
- v1.5.0 bug; access to undefined channel output bug when using precomputed transcriptome.
|
- v1.5.0 bug; access to undefined channel output bug when using precomputed transcriptome.
|
||||||
|
|||||||
14
main.nf
14
main.nf
@ -271,7 +271,7 @@ process merge_gff_bundles{
|
|||||||
memory "2 GB"
|
memory "2 GB"
|
||||||
|
|
||||||
input:
|
input:
|
||||||
tuple val(sample_id), path (gff_bundle)
|
tuple val(sample_id), path ('gff_bundles/annotation*.gff')
|
||||||
output:
|
output:
|
||||||
tuple val(sample_id), path("${sample_id}.gff"), emit: gff
|
tuple val(sample_id), path("${sample_id}.gff"), emit: gff
|
||||||
tuple val(sample_id), path("transcriptome_summary.pickle"), emit: summary
|
tuple val(sample_id), path("transcriptome_summary.pickle"), emit: summary
|
||||||
@ -281,11 +281,13 @@ process merge_gff_bundles{
|
|||||||
echo '##gff-version 2' >> $merged_gff;
|
echo '##gff-version 2' >> $merged_gff;
|
||||||
echo '#pipeline-nanopore-isoforms: stringtie' >> $merged_gff;
|
echo '#pipeline-nanopore-isoforms: stringtie' >> $merged_gff;
|
||||||
|
|
||||||
for fn in ${gff_bundle};
|
find -L gff_bundles -type f -name "*.gff" \
|
||||||
do
|
-exec awk '!/^#/ {print}' {} \\; >> "${sample_id}.gff"
|
||||||
grep -v '#' \$fn >> $merged_gff
|
if ! [ -s "${sample_id}.gff" ]; then
|
||||||
|
echo "No transcripts found for ${sample_id}"
|
||||||
done
|
# This is unlikely to ever happen, but if it does, we should fail the workflow.
|
||||||
|
exit 70
|
||||||
|
fi
|
||||||
|
|
||||||
workflow-glue summarise_gff \
|
workflow-glue summarise_gff \
|
||||||
$merged_gff \
|
$merged_gff \
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user