Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
trio-whole-exome
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
igmmbioinformatics
trio-whole-exome
Commits
462bb713
Commit
462bb713
authored
2 years ago
by
user name
Browse files
Options
Downloads
Patches
Plain Diff
Alternative samplesheet for cnv calling - bam/bai files instead of fastq1/fastq2
parent
fcb7bd6f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pipeline/inputs.nf
+15
-7
15 additions, 7 deletions
pipeline/inputs.nf
with
15 additions
and
7 deletions
pipeline/inputs.nf
+
15
−
7
View file @
462bb713
...
@@ -39,7 +39,7 @@ workflow read_inputs {
...
@@ -39,7 +39,7 @@ workflow read_inputs {
/*
/*
ch_samplesheet_info - Tuple channel of individual ID, r1 fastqs and r2 fastqs:
ch_samplesheet_info - Tuple channel of individual ID, r1 fastqs and r2 fastqs
-OR- BAM and BAI files
:
[
[
[
[
indv1,
indv1,
...
@@ -53,11 +53,19 @@ workflow read_inputs {
...
@@ -53,11 +53,19 @@ workflow read_inputs {
]
]
*/
*/
ch_samplesheet = Channel.fromPath(params.sample_sheet, checkIfExists: true)
ch_samplesheet = Channel.fromPath(params.sample_sheet, checkIfExists: true)
ch_samplesheet_info = ch_samplesheet.splitCsv(sep:'\t', header: true)
.map(
if (params.workflow == 'variant-calling') {
{ line -> [line.individual_id, file(line.read_1), file(line.read_2), line.bam]}
ch_samplesheet_info = ch_samplesheet.splitCsv(sep:'\t', header: true)
)
.map(
.groupTuple()
{ line -> [line.individual_id, file(line.read_1), file(line.read_2)]}
)
.groupTuple()
} else if (params.workflow == 'cnv-calling') {
ch_samplesheet_info = ch_samplesheet.splitCsv(sep:'\t', header: true)
.map(
{ line -> [line.individual_id, file(line.bam), file(line.bai)]}
)
}
/*
/*
ch_individuals - merge of samplesheet and ped file information:
ch_individuals - merge of samplesheet and ped file information:
...
@@ -97,7 +105,7 @@ workflow read_inputs {
...
@@ -97,7 +105,7 @@ workflow read_inputs {
]
]
*/
*/
ch_individuals_by_family = ch_individuals.map({[it[1], it]})
ch_individuals_by_family = ch_individuals.map({[it[1], it]})
emit:
emit:
ch_ped_file = ch_ped_file
ch_ped_file = ch_ped_file
ch_ped_file_info = ch_ped_file_info
ch_ped_file_info = ch_ped_file_info
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment