Description

For each feature in A, finds the closest feature (upstream or downstream) in B.

Input

name:type
description
pattern

meta:map

Groovy Map containing sample information e.g. [ id:‘test’, single_end

]

input_1:file

The file to find the closest features of

*.{bed,vcf,gff}(.gz)?

input_2:list

The input file(s) to find the closest features from

*.{bed,vcf,gff}(.gz)?

fasta_fai:file

The index of the FASTA reference. Needed when the argument --sorted is used

*.fai

Output

name:type
description
pattern

output

meta:map

Groovy Map containing sample information e.g. [ id:‘test’, single_end

]

*.${extension}:file

The resulting BED file containing the closest features

*.{bed,vcf,gff}

versions

versions.yml:file

File containing software versions

versions.yml

Tools

bedtools
MIT

A set of tools for genomic analysis tasks, specifically enabling genome arithmetic (merge, count, complement) on various file types.