Skip to content

Commit

Permalink
script bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
matthdsm committed Mar 12, 2024
1 parent 492bed4 commit 8f8ae34
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions utils/nf-cmgg-sampletracking/nf-cmgg-sampletracking.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"context"
"encoding/csv"
"fmt"
"io"
"io/fs"
"os"
Expand Down Expand Up @@ -174,11 +175,12 @@ func main() {
// Find the snp fastq
for _, file := range snpFastq {
if strings.Contains(file, sample.sample) {
if strings.Contains(file, "_1") {
if strings.Contains(file, "_R1") {
samples[i].snpFastq1 = file
} else if strings.Contains(file, "_2") {
} else if strings.Contains(file, "_R2") {
samples[i].snpFastq2 = file
}
fmt.Println(sample)
}
}
// Find the snp bam
Expand Down
2 changes: 2 additions & 0 deletions utils/nf-cmgg-sampletracking/sampletracking_samplesheet.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sample,pool,sample_bam,sample_bam_index,snp_fastq_1,snp_fastq_2,snp_bam,snp_bam_index
D2217639,WES_H112,test-data/sample_data/D2217639.cram,test-data/sample_data/D2217639.cram.crai,test-data/snp_data/snp_D2217639_S201_R1_001.fastq.gz,test-data/snp_data/snp_D2217639_S201_R2_001.fastq.gz,,
Empty file.
Empty file.
Empty file.
Empty file.

0 comments on commit 8f8ae34

Please sign in to comment.