Skip to content

Commit 0f0c615

Browse files
committed
correct something that was not an error while reading the input BAMs but it was close
1 parent 1de647a commit 0f0c615

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -76,22 +76,22 @@ Output:
7676

7777
The table with VCF files expects two tab-separated columns without a header
7878

79-
| Patient name | VCF |
80-
|----------------------|------------------------------------------------------------------------|
81-
| patient_1 | /path/to/patient_1.vcf |
82-
| patient_2 | /path/to/patient_2.vcf |
79+
| Patient name | VCF |
80+
|-------------------|----------------------------------------|
81+
| patient_1 | /path/to/patient_1.vcf |
82+
| patient_2 | /path/to/patient_2.vcf |
8383

8484
The optional table with BAM files expects two tab-separated columns without a header.
8585

86-
| Patient name | Sample name:BAM |
87-
|----------------------|---------------------------------|
88-
| patient_1 | primary_tumor:/path/to/sample_1.primary.bam |
89-
| patient_1 | metastasis_tumor:/path/to/sample_1.metastasis.bam |
90-
| patient_1 | normal:/path/to/sample_1.normal.bam |
91-
| patient_2 | primary_tumor:/path/to/sample_1.primary_1.bam |
92-
| patient_2 | primary_tumor:/path/to/sample_1.primary_2.bam |
93-
| patient_2 | metastasis_tumor:/path/to/sample_1.metastasis.bam |
94-
| patient_2 | normal:/path/to/sample_1.normal.bam |
86+
| Patient name | Sample name:BAM |
87+
|--------------------|---------------------------------------------------|
88+
| patient_1 | primary_tumor:/path/to/sample_1.primary.bam |
89+
| patient_1 | metastasis_tumor:/path/to/sample_1.metastasis.bam |
90+
| patient_1 | normal:/path/to/sample_1.normal.bam |
91+
| patient_2 | primary_tumor:/path/to/sample_1.primary_1.bam |
92+
| patient_2 | primary_tumor:/path/to/sample_1.primary_2.bam |
93+
| patient_2 | metastasis_tumor:/path/to/sample_1.metastasis.bam |
94+
| patient_2 | normal:/path/to/sample_1.normal.bam |
9595

9696
Each patient can have any number of samples. Any sample can have any number of BAM files, annotations from the
9797
different BAM files of the same sample will be provided with suffixes _1, _2, etc.

main.nf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ else if (params.input_vcf) {
5858
if (params.input_bams) {
5959
Channel
6060
.fromPath(params.input_bams)
61-
.splitCsv(header: ['name', 'sample_name', 'bam'], sep: "\t")
62-
.map{ row-> tuple(row.name, row.sample_name, row.bam) }
61+
.splitCsv(header: ['name', 'bam'], sep: "\t")
62+
.map{ row-> tuple(row.name, row.bam) }
6363
.set { input_bams }
6464
}
6565

0 commit comments

Comments
 (0)