function parseName(name) {
  const retval = {
    subject: {
      absolutePath: undefined,
    },
    aspect: {
      name: undefined,
    },
  };
  const arr = (name || '').split(constants.sampleNameSeparator);
  if (arr.length === 2) {
    retval.subject.absolutePath = arr[0];
    retval.aspect.name = arr[1];
    return retval;
  }

  const err = new dbErrors.ResourceNotFoundError();
  err.resourceType = 'Sample';
  err.resourceKey = name;
  throw err;
} // parseName
/**
 * Parses a sample name into its separate parts, i.e. the subject absolute
 * path and the aspect name.
 *
 * @param {String} name - The sample name
 * @returns {Object} containing subject.absolutePath and aspect.name
 * @throws {ResourceNotFoundError} if the name cannot be split in two using
 *  constants.sampleNameSeparator
 */
Parses a sample name into its separate parts, i.e. the subject absolute
path and the aspect name.

@param {String} name - The sample name
@returns {Object} containing subject.absolutePath and aspect.name
@throws {ResourceNotFoundError} if the name cannot be split in two using
constants.sampleNameSeparator
Parses a sample name into its separate parts i . e . the subject absolute path and the aspect name . @param { String } name - The sample name @returns { Object } containing subject . absolutePath and aspect . name @throws { ResourceNotFoundError } if the name cannot be split in two using constants . sampleNameSeparator
function parseName(name) {
  const retval = {
    subject: {
      absolutePath: undefined,
    },
    aspect: {
      name: undefined,
    },
  };
  const arr = (name || '').split(constants.sampleNameSeparator);
  if (arr.length === 2) {
    retval.subject.absolutePath = arr[0];
    retval.aspect.name = arr[1];
    return retval;
  }
  const err = new dbErrors.ResourceNotFoundError();
  err.resourceType = 'Sample';
  err.resourceKey = name;
  throw err;
} 
function parseName ( name ) { const retval = { subject : { absolutePath : undefined , } , aspect : { name : undefined , } , } ; const arr = ( name || '' ) . split ( constants . sampleNameSeparator ) ; if ( arr . length === 2 ) { retval . subject . absolutePath = arr [ 0 ] ; retval . aspect . name = arr [ 1 ] ; return retval ; } const err = new dbErrors . ResourceNotFoundError ( ) ; err . resourceType = 'Sample' ; err . resourceKey = name ; throw err ; }
Parses a sample name into its separate parts, i.e.
Parses a sample name into its separate parts i . e .
// parseName