Skip to content

Commit

Permalink
optimize sample classification
Browse files Browse the repository at this point in the history
  • Loading branch information
Mootor authored and Mootor committed Aug 31, 2023
1 parent ca291f7 commit 4eb38c3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Pipelines should be run **WITH A SINGLE SAMPLE AT TIME**. Otherwise resource all

* Do not directly modify the source `template.config`, but rather you should copy it from the pipeline release folder to your project-specific folder and modify it there

3. Create the input YAML using the [template](input/call-gSV-input.yaml).See [Input YAML](#Input-YAML) for detailed description of each column. All columns must exist and should be comma separated in order to run the pipeline successfully.
3. Create the input YAML using the [template](input/call-gSV-input.yaml).See [Input YAML](#Input-YAML) for a detailed description.

* Again, do not directly modify the source template YAML file. Instead, copy it from the pipeline release folder to your project-specific folder and modify it there.

Expand Down Expand Up @@ -164,13 +164,19 @@ The second possible step of the regenotyping pipeline requires an aligned and so

### Input YAML

The input YAML should have each of the input fields listed below as separate columns, using the same order and comma as column separator. An example of the input YAML can be found [here](input/call-gSV-input.yaml).

| Field | Type | Description |
|:------|:-----|:------------|
| patient | string | The patient name to be passed to final BCF/VCF. No white space is allowed. |
| sample | string | The sample name to be passed to final BCF/VCF. No white space is allowed. |
| input_bam | path | Absolute path to the BAM file for the sample. |
| sample_id | string | Sample ID |
| sample_bam | path | Set to absolute path to germline BAM |

```
---
sample_id: "sample_id"
input:
BAM:
sample_bam:
- "/path/to/germline/BAM"
```

### Nextflow Config File Parameters

Expand Down
6 changes: 1 addition & 5 deletions config/methods.config
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@ methods {

set_output_dir = {
sample = params.sample_to_process
.findAll{ it.sample_type == 'normal' }
.collect{ it.id }

if (sample.size() != 1) {
throw new Exception("${params.sample_to_process}\n\n Multiple Normal BAMs found in the input! Please run pipeline one Normal sample at a time.")
throw new Exception("${params.sample_to_process}\n\n Multiple BAMs found in the input! Please run pipeline one germline sample at a time.")
}

params.sample = sample[0]
Expand Down Expand Up @@ -216,8 +215,6 @@ methods {
// Set up env, timeline, trace, and report above.
setup = {
methods.set_env()
//schema.load_custom_types("${projectDir}/config/custom_schema_types.config")
//schema.validate()
methods.set_ids_from_bams()
methods.set_resources_allocation()
methods.set_output_dir()
Expand All @@ -226,6 +223,5 @@ methods {
methods.set_pipeline_logs()
methods.set_process()
methods.set_docker_sudo()
//retry.setup_retry()
}
}
4 changes: 2 additions & 2 deletions input/call-gSV-input.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
sample_id: "sample_id"
input:
BAM:
normal:
- "/absolute/path/to/BAM"
sample:
- "/absolute/path/to/germline/BAM"

0 comments on commit 4eb38c3

Please sign in to comment.