Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

would fasta comparison fit into the seqmagick framework? #49

Open
cswarth opened this issue Apr 8, 2015 · 0 comments
Open

would fasta comparison fit into the seqmagick framework? #49

cswarth opened this issue Apr 8, 2015 · 0 comments
Labels

Comments

@cswarth
Copy link

cswarth commented Apr 8, 2015

I periodically need to compare two fasta files which always turns out to be much harder than it should be. The order of sequences in a fasta file doesn't matter, nor does the formatted line length, so that rules out using 'cmp' and 'diff'.

If only the identifiers matter, one can do something like this,
cmp <(grep '>' file1.fa | sort) <(grep '>' file2.fa | sort)

I don't know of an easy way to also compare the sequences without getting a ton of spurious differences. People often suggest perl or python hackery but I haven't found a tool that does what I want out-of-the-box.

I'm mostly interested in finding out if there are differences and in which sequence they occur in. See in the actual differences is less important for my application.

seqmagick seems like it might be a good place to put such a comparison tool. What do others think?
I'm happy to implement it if this makes sense.

@cswarth cswarth added the feature label Apr 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant