Skip to content

Commit

Permalink
Update merge_gff.nf
Browse files Browse the repository at this point in the history
  • Loading branch information
fmalmeida authored Sep 16, 2021
1 parent 5954afb commit b852917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/generic/merge_gff.nf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ process gff_merge {
"""
echo \"##gff-version 3\" > ${prefix}_merged.gff ;
bedtools sort -i $gff | bedtools merge -d ${params.bedtools_merge_distance} -s -c 2,3,6,7,8,9 -o distinct,distinct,max,distinct,distinct,distinct \
| awk 'BEGIN { FS = "\t"; OFS="\\t" } sub(",",";",\$9) { print \$1,\$4,\$5,\$2+1,\$3,\$6,\$7,\$8,\$9}' >> ${prefix}_merged.gff
| awk 'BEGIN { FS = "\t"; OFS="\\t" } { sub(",",";",\$9) ; print \$1,\$4,\$5,\$2+1,\$3,\$6,\$7,\$8,\$9}' >> ${prefix}_merged.gff
"""
}

0 comments on commit b852917

Please sign in to comment.