Thank you very much;
based on your recombination I followed:
awk -F '\t' '($3=="gene") {printf("%s\t%d\t%s\t%s\n",$1,int($4)-1,$5,$9);}' in.gtf > GTF.bed
then
awk '{$4=$5=$6=""; print $0}' vcftools_output.fst > Fst_Windows.bed
bedtools intersect -a GTF.bed -b Fst_Windows.bed > annotated_windows
Is my method correct?
• 0 views
•
link