def s3am_upload(job, fpath, s3_dir, num_cores=1, s3_key_path=None):
    """
    Uploads a file to s3 via S3AM
    S3AM binary must be on the PATH to use this function
    For SSE-C encryption: provide a path to a 32-byte file

    :param toil.job.Job job: Toil job that is calling this function
    :param str fpath: Path to file to upload
    :param str s3_dir: Ouptut S3 path. Format: s3://bucket/[directory]
    :param int num_cores: Number of cores to use for up/download with S3AM
    :param str s3_key_path: (OPTIONAL) Path to 32-byte key to be used for SSE-C encryption
    """
    require(s3_dir.startswith('s3://'), 'Format of s3_dir (s3://) is incorrect: %s', s3_dir)
    s3_dir = os.path.join(s3_dir, os.path.basename(fpath))
    _s3am_with_retry(job=job, num_cores=num_cores, file_path=fpath,
                     s3_url=s3_dir, mode='upload', s3_key_path=s3_key_path)
def s3am_upload(job, fpath, s3_dir, num_cores=1, s3_key_path=None):
    """
    Uploads a file to s3 via S3AM
    S3AM binary must be on the PATH to use this function
    For SSE-C encryption: provide a path to a 32-byte file

    :param toil.job.Job job: Toil job that is calling this function
    :param str fpath: Path to file to upload
    :param str s3_dir: Ouptut S3 path. Format: s3://bucket/[directory]
    :param int num_cores: Number of cores to use for up/download with S3AM
    :param str s3_key_path: (OPTIONAL) Path to 32-byte key to be used for SSE-C encryption
    """
    require(s3_dir.startswith('s3://'), 'Format of s3_dir (s3://) is incorrect: %s', s3_dir)
    s3_dir = os.path.join(s3_dir, os.path.basename(fpath))
    _s3am_with_retry(job=job, num_cores=num_cores, file_path=fpath,
                     s3_url=s3_dir, mode='upload', s3_key_path=s3_key_path)
def s3am_upload ( job , fpath , s3_dir , num_cores = 1 , s3_key_path = None ) : require ( s3_dir . startswith ( 's3://' ) , 'Format of s3_dir (s3://) is incorrect: %s' , s3_dir ) s3_dir = os . path . join ( s3_dir , os . path . basename ( fpath ) ) _s3am_with_retry ( job = job , num_cores = num_cores , file_path = fpath , s3_url = s3_dir , mode = 'upload' , s3_key_path = s3_key_path )
Uploads a file to s3 via S3AM
    S3AM binary must be on the PATH to use this function
    For SSE-C encryption: provide a path to a 32-byte file

    :param toil.job.Job job: Toil job that is calling this function
    :param str fpath: Path to file to upload
    :param str s3_dir: Ouptut S3 path. Format: s3://bucket/[directory]
    :param int num_cores: Number of cores to use for up/download with S3AM
    :param str s3_key_path: (OPTIONAL) Path to 32-byte key to be used for SSE-C encryption
Uploads a file to s3 via S3AM S3AM binary must be on the PATH to use this function For SSE - C encryption : provide a path to a 32 - byte file