code: public void setBlastMatrix(BlastMatrixEnum matrix) {
  		setAlignmentOption(MATRIX_NAME, matrix.name());
  
  		boolean gapCostsSet = getBlastGapCreation() != -1 || getBlastGapExtension() != -1;
  
  		if (!gapCostsSet) {
  			/*
  			 * Setting default values for -G/-E if no other values have been set is necessary because, since BLOSUM62 is
  			 * default, the expected values are -G 11 -E 1. If your matrix choice is different, the request will fail,
  			 * implicitly expecting GAPCOSTS=11+1
  			 */
  			switch (matrix) {
  			case PAM30:
  				setBlastGapCosts(9, 1);
  				break;
  			case PAM70:
  				setBlastGapCosts(10, 1);
  				break;
  			case PAM250:
  				setBlastGapCosts(14, 2);
  				break;
  			case BLOSUM45:
  				setBlastGapCosts(15, 2);
  				break;
  			case BLOSUM50:
  				setBlastGapCosts(13, 2);
  				break;
  			case BLOSUM80:
  			case BLOSUM90:
  				setBlastGapCosts(10, 1);
  				break;
  			case BLOSUM62:
  				break;
  			default:
  				break;
  			}
  		}
  	}
docs: Sets the value for the MATRIX parameter to use for blastall
  <p>
  Blastall equivalent: -M
  
  @param matrix : a String to use as gap creation value
  @see BlastMatrixEnum