

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# HealthOmics에서 읽기 세트 활성화
<a name="activating-read-sets"></a>

다음 예제와 AWS CLI같이 **start-read-set-activation-job** API 작업 또는를 통해 아카이브된 읽기 세트를 활성화할 수 있습니다. `sequence store ID` 및를 시퀀스 스토어 ID 및 읽기 세트 ID`read set id`로 바꿉니다. IDs 

```
aws omics start-read-set-activation-job 
     --sequence-store-id sequence store ID \
     --sources readSetId=read set ID readSetId=read set id_1 read set id_2
```

다음과 같이 활성화 작업 정보가 포함된 응답을 받게 됩니다.

```
{
    "id": "12345678",
    "sequenceStoreId": "1234567890",
    "status": "SUBMITTED",
    "creationTime": "2022-10-22T00:50:54.670000+00:00"
}
```

활성화 작업이 시작된 후 **get-read-set-activation-job** API 작업으로 진행 상황을 모니터링할 수 있습니다. 다음은를 사용하여 활성화 작업 상태를 AWS CLI 확인하는 방법의 예입니다. `job ID` 및를 각각 시퀀스 스토어 ID 및 작업 ID`sequence store ID`로 바꿉니다. IDs 

```
aws omics get-read-set-activation-job --id job ID --sequence-store-id sequence store ID                    
```

응답은 다음과 같이 활성화 작업을 요약합니다.

```
{
    "id": 123567890,
    "sequenceStoreId": 123467890,
    "status": "SUBMITTED",
    "statusUpdateReason": "The job is submitted and will start soon.",
    "creationTime": "2022-10-22T00:50:54.670000+00:00",
    "sources": [
        {
            "readSetId": <reads set id_1>,
            "status": "NOT_STARTED",
            "statusUpdateReason": "The source is queued for the job."
        },
        {
            "readSetId": <read set id_2>,
            "status": "NOT_STARTED",
            "statusUpdateReason": "The source is queued for the job."
        }
    ]
}
```

**get-read-set-metadata** API 작업을 사용하여 활성화 작업의 상태를 확인할 수 있습니다. 가능한 상태는 `ACTIVE`, `ACTIVATING`및 입니다`ARCHIVED`. 다음 예제에서를 시퀀스 스토어 ID`sequence store ID`로 바꾸고를 읽기 세트 ID`read set ID`로 바꿉니다.

```
aws omics get-read-set-metadata --sequence-store-id sequence store ID --id read set ID
```

다음 응답은 읽기 세트가 활성 상태임을 보여줍니다.

```
{
    "id": "12345678",
    "arn": "arn:aws:omics:us-west-2:555555555555:sequenceStore/1234567890/readSet/12345678",
    "sequenceStoreId": "0123456789",
    "subjectId": "mySubject",
    "sampleId": "mySample",
    "status": "ACTIVE",
    "name": "HG00100",
    "description": "HG00100 aligned to HG38 BAM",
    "fileType": "BAM",
    "creationTime": "2022-07-13T23:25:20Z",
    "sequenceInformation": {
        "totalReadCount": 1513467,
        "totalBaseCount": 163454436,
        "generatedFrom": "Pulled from SRA",
        "alignment": "ALIGNED"
    },
    "referenceArn": "arn:aws:omics:us-west-2:555555555555:referenceStore/0123456789/reference/0000000001",
    "files": {
        "source1": {
            "totalParts": 2,
            "partSize":  10485760,
            "contentLength": 17112283,
            "s3Access": {
        "s3Uri": "s3://accountID-sequence store ID-ajdpi90jdas90a79fh9a8ja98jdfa9jf98-s3alias/592761533288/sequenceStore/2015356892/readSet/9515444019/import_source1.fastq.gz"
},
         },
        "index": {
            "totalParts": 1,
            "partSize": 53216,
            "contentLength": 10485760
            "s3Access": {
        "s3Uri": "s3://accountID-sequence store ID-ajdpi90jdas90a79fh9a8ja98jdfa9jf98-s3alias/592761533288/sequenceStore/2015356892/readSet/9515444019/import_source1.fastq.gz"
},
        }
    },
    "creationType": "IMPORT",
    "etag": {
        "algorithm": "BAM_MD5up",
        "source1": "d1d65429212d61d115bb19f510d4bd02"
    }
}
```

다음 예제와 같이 **list-read-set-activation-jobs**를 사용하여 모든 읽기 세트 활성화 작업을 볼 수 있습니다. 다음 예제에서는를 시퀀스 스토어 ID`sequence store ID`로 바꿉니다.

```
aws omics list-read-set-activation-jobs --sequence-store-id sequence store ID                
```

다음과 같은 응답을 받게 됩니다.

```
{
    "activationJobs": [
        {
            "id": 1234657890,
            "sequenceStoreId": "1234567890",
            "status": "COMPLETED",
            "creationTime": "2022-10-22T01:33:38.079000+00:00",
            "completionTime": "2022-10-22T01:34:28.941000+00:00"
        }
    ]
}
```