Closed shellywanamaker closed 2 years ago
We all like issues! And you just posted your first to CEABiGR - congrats!.
awk -F"\t" 'NR==FNR{a[$1"\t"$2]=$1"\t"$2;next}{if(($1"\t"$2) in a) print $1"\t"$2"\t"$3"\t"0;else print $0}' \ 3F_R1_val_1_bismark_bt2_pe.SNP-results.vcf \ 3F_R1_val_1_10x.sort.bedgraph
it works!!
@yaaminiv
awk -F"\t" 'NR==FNR{a[$1,$2]=$1"\t"$2;next}(if($1"\t"$2) in a){print $1"\t"$2"\t"$3"\t"0;else print $0}' .vcf .bedgraph