Go Back   SEQanswers > Bioinformatics > Bioinformatics

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to subtract specific DNA sequences from *mpileup* files (programs and scripts) aperdomos Bioinformatics 1 01-24-2012 09:34 AM
Gene prediction programs that work with multi-fasta files Hobbe Bioinformatics 0 11-16-2010 02:31 AM
What are the SNP calling programs? foxyg Bioinformatics 2 10-08-2010 06:19 AM
Non synonymous SNP programs colindaven Bioinformatics 9 05-15-2010 10:50 PM
Genome similarity measures GerryB General 3 05-23-2009 08:51 AM

Thread Tools
Old 05-03-2011, 08:37 AM   #1
Junior Member
Location: UK

Join Date: May 2011
Posts: 1
Default Similarity programs for SNP files


I'm a newbie to this field so please forgive the use of very basic language.

I've got two files. Each contains position and nucleotide information on each line.

Each file holds just the SNP information for a person. So for ex. for person A, the file would look like.
Chromosome 6: 133,088,927, G
Chromosome 6: 133,088,928, A
and so on.

The second file too has nucleotide information for the exact same locations.

Is there a utility somewhere that will show me the similarity between the two files? Something on the lines of BLAST which ofcourse requires the full sequence information and not just SNPs.

Prompt help will be much appreciated.


PS. the location information might not be exactly as detailed, I've oversimplified it for the sake of clarity.

Last edited by leofixings; 05-03-2011 at 08:38 AM. Reason: Missed out some information.
leofixings is offline   Reply With Quote
Old 05-03-2011, 09:03 AM   #2
Richard Finney
Senior Member
Location: bethesda

Join Date: Feb 2009
Posts: 700
Default comm

type "man comm" at command line and see if you can use the "comm" command. Perhaps simplly piping the output to "wc" might be a crude, but effective measure.

COMM(1) User Commands COMM(1)

comm - compare two sorted files line by line

comm [OPTION]... FILE1 FILE2

Compare sorted files FILE1 and FILE2 line by line.

With no options, produce three-column output. Column one contains lines unique to FILE1, column two contains
lines unique to FILE2, and column three contains lines common to both files.

-1 suppress lines unique to FILE1

-2 suppress lines unique to FILE2

-3 suppress lines that appear in both files
Richard Finney is offline   Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -8. The time now is 05:35 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Single Sign On provided by vBSSO