AlexanderLabWHOI / EUKulele

Automatic eukaryotic taxonomic classification
MIT License
28 stars 7 forks source link

Check if protein or nt before running alignment? #13

Open halexand opened 4 years ago

halexand commented 4 years ago

I just created an accidental test case. I had a nt file mixed in with my protein files. When diaomond tried to map it-- it didn't recognize it as a nt file and tried to align it without success. I think we should build in an assertion that a file passed is in fact what it claims to be (protein or nucleotide). Could potentially do this with BioPython... or maybe write our own.

akrinos commented 4 years ago

Nt file mixed in with protein files but with protein extension? @halexand

halexand commented 4 years ago

Hah, yes. Just me doing something stupid. But... it is a possible use case ;)

halexand commented 4 years ago

Assume people don't have the best data management skills.