package Messages;
use lib qw(Core);

use vars qw/@ISA @EXPORT @EXPORT_OK/;
@EXPORT_OK = ();
@EXPORT = qw/$MESSAGES/;
@ISA = qw/Exporter/;

our $MESSAGES = {
    # rough filter errors
    FIELD_PFRMAT_ERROR => "Field PFRMAT is required.\n\tPFRMAT XX\n\twhere XX - format (TS\\RR\\QA)",

    FIELD_PFRMAT_SS_ERROR => "Secondary structure predictions (SS) are not accepted in CASP13.\n\tPFRMAT XX\n\twhere XX - format (TS\\DR\\AL\\RR\\QA)",

    FIELD_AUTHOR_ERROR => "Field AUTHOR is required.\n\tAUTHOR XXXX-XXXX-XXXX\n\twhere XXXX-XXXX-XXXX is a group code",

    FIELD_TARGET_ERROR => "Field TARGET is required.\n\tTARGET TXXXX\n\twhere TXXXX is a target name",

    FIELD_MODEL_ERROR  => "Field MODEL is required.\n\tMODEL   n\n\twhere n is a number that indicates predictor\'s ranking according to her/his belief which model is closest to the target structure (1 <= n <= 5)\n
 Model index should be set to 1 in RR category. In QA category, predictors are requested to use model index '1' for the predictions submitted at the first QA stage (i.e., for the quality estimates made on the selected set of server models released 5 days after the target release for tertiary structure prediction), and use model index '2' for the predictions submitted on a larger set of TS models at the second QA stage (i.e., for the quality estimates made on the models released 2 days after the release of the first set of models for QA prediction).",

    FIELD_PARENT_ERROR => "Field PARENT is required.\n\tPARENT ...\n\ Please set field value to N/A in case of no parent.",

    FIELD_METHOD_ERROR => "Field METHOD is required.",

    FIELD_END_ERROR => "Field END is required.\n\tEND record is used for all predictions and indicates the end of a single model submission",

    AUTHORIZATION_VALIDATION_FAILED => "Authorization failed.\n Please check AUTHOR or REMARK AUTHOR field",

    SUCCES_TMP_NOTIFICATION => "This email is sent to you to assure you that the format of your prediction is correct. You will NOT be receiving this confirmation email during the CASP13 season.",    
    
    MODELS_REARANGE_ERROR => "No correct format models were found in your prediction",
    
    SHORT_TSAL_MODEL_ERROR => "The model %s you submitted for target %s is too short (less than 20 residues).",
    
    TARGET_EXPIRED_ERROR => "This target has already expired for blind predictions",
    
    AUTHOR_VALIDATION_FAILED => "Submission ERROR for %s",
    
    ROUGH_VALIDATION_FAILED => "Submission ERROR for %s",
    
    TARGET_VALIDATION_FAILED => "Submission ERROR for %s (%s, %s, %s)",
    
    SEVERE_VALIDATION_FAILED => "Submission ERROR for %s (%s, %s, %s, model: %s)",
    
    VALIDATION_FAILED => "Submission ERROR for %s (%s, %s, %s)",

    VALIDATION_WARN => "Submission WARNING for %s (%s, %s, %s)",
    
    FORMAT_SUCCESS_SUBJECT => "CASP13 - Submission accepted (%s, %s, %s, model: %s)",
    
    FORMAT_SUCCESS_BODY => "Submission accepted for %s (%s, %s, %s, model: %s)",

    MODEL_ONLYONE_WARN => "In RR category only the model with tag \'1\' can be accepted, others will be rejected",

    MODEL_QA_1TO2_WARN => "WARNING. Model index should be set to \"1\" for the first stage of QA prediction (20 selected models)\n and to \"2\" for the second stage (best 150 predictions). If your prediction is submitted during the stage2 \ntime window and contains \"MODEL 1\" record, it will be either rejected (if it contains quality estimates\nfor the 20 models only) or its model index will be changed from \"1\" to \"2\" if the prediction contains\nquality estimates for all the models released at the second stage.",
    
    MODEL_QA_ERROR => "At this time only QA predictions with model index %s are being accepted for target %s ",

    TARGET_EXPIRED_FOR_QA => "Target %s has already expired for QA prediction at stage %s",

    SHORT_QA_MODEL_ERROR => "ERROR! Number of model estimates in the prediction differs from the number of TS models in the provided tarball for target %s at stage %s",

    BFACTOR_SINGLEVALUE_ERROR => "The same temperature factor value was used for all residues in model %s for target %s.\nThe prediction will be accepted, but the assessors will not be able to perform \nsome of their analyses. We strongly encourage developers to introduce per-residue error estimations\nin their modeling software.",

    HETATM_FORMAT_ERROR => "Incorrect format of HETATM line: \n%s",

#FORMAT_ERROR_HEADER ###################################
FORMAT_ERROR_HEADER => "
YOUR SUBMISSION CANNOT BE ACCEPTED 
THE FORMAT OF YOUR PREDICTION IS NOT CORRECT

Please check the format at:
http://predictioncenter.org/casp13/index.cgi?page=format

##########################################################

OUTPUT FROM THE VERIFICATION SERVER BELOW",


#FORMAT_ERROR_FOOTER #####################################
FORMAT_ERROR_FOOTER => "",

#FORMAT_WARN_HEADER ###################################
FORMAT_WARN_HEADER => "
A WARNING MESSAGE FROM THE VERIFICATION SERVER. 

Please check the format at:
http://predictioncenter.org/casp13/index.cgi?page=format

##########################################################

OUTPUT FROM THE VERIFICATION SERVER BELOW",

#FORMAT_WARN_FOOTER #####################################
FORMAT_WARN_FOOTER => ""

};


1;
