intercept uploaded files/copied sequences for quality control and fasta record number restrictions

Hello,

we are experiencing that our sequenceserver process is crashed when users submit large number of sequences at http://phi-blast.phi-base.org/
I am now thinking of intercepting user files to restrict record numbers and check for fasta format validity.

Would you have any suggestions of how to implement something like this?

Any comments appreciated.

Kind regards,
Martin

Hi there,

Take a look at methods that begin with validate_ in lib/sequenceserver/blast.rb. You can insert a check like this following the same style.

Priyam