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


we are experiencing that our sequenceserver process is crashed when users submit large number of sequences at
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,

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.