Bedtools Slop for Specific Features
I want to use Bedtools Slop on a GTF file, but only on specific features (for example only for those labeled as gene, or exon, ect.)
I have been trying to pipeline the command with awk, but to no avail:
awk '{ if ($3 == "gene") | bedtools slop -i A.bed -g my.genome -l 2 -r 3
Any help would be great!
• 1,951 views
•
link
1 answer
Please give it like below
awk '$3=="gene"{print}' my.gtf | bedtools slop -i - -g my.genome -l 2 -r 3
• 0 views
•
link
Log in to answer this question.