code: public static double[] errorProbabilities(final Fastq fastq, final double[] errorProbabilities)
  	{
  		if (fastq == null)
  		{
  			throw new IllegalArgumentException("fastq must not be null");
  		}
  		if (errorProbabilities == null)
  		{
  			throw new IllegalArgumentException("errorProbabilities must not be null");
  		}
  		int size = fastq.getQuality().length();
  		if (errorProbabilities.length != size)
  		{
  			throw new IllegalArgumentException("errorProbabilities must be the same length as the FASTQ formatted sequence quality");
  		}
  		FastqVariant variant = fastq.getVariant();
  		for (int i = 0; i < size; i++)
  		{
  			char c = fastq.getQuality().charAt(i);
  			errorProbabilities[i] = variant.errorProbability(c);
  		}
  		return errorProbabilities;
  	}
docs: Copy the error probabilities from the specified FASTQ formatted sequence into the specified double array.
  
  @param fastq FASTQ formatted sequence, must not be null
  @param errorProbabilities double array of error probabilities, must not be null and must be the same
  length as the FASTQ formatted sequence quality
  @return the specified double array of error probabilities