This is a test version of Biostars. For the public version, visit https://www.biostars.org.
check duplicates in two columns

Hi all!

I have two different files: a .map (from illumina genotyping with bead chip) and a .vcf (from NGS of a Pools of individuals). I'm interested in finding variations that are in both files, so I would have to compare for column 1: #CHROM and 4: POS (for .map) and column 1 #CHROM and 2: POS (for .vcf) to obtain some variations that are in common. I tried using awk but without success. Any suggestions will be very appreciated.

Greetings

Marco

chip-seq sequencing snp

Can you post your awk command?

Yup, that's true, but not thousands :-P.

You win. Technically.

Thank you for the answers, my awk command is:

awk -F'\t' 'NR==FNR{c[$1$2]++;next};c[$1$4] > 0' file.vcf file.map

where $1 and $2 are #CHROM and POS in the .vcf file and $1 and $4 are #CHROM and POS for the .map file

0 answers

No answers yet.

Log in to answer this question.