Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add dbSNP rsID file to harmonization qc process/workflow #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions modules/local/qc.nf
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,24 @@ process qc {

input:
tuple val(GCST), val(mode), path(all_hm)
path(rsIDfile)

output:
tuple val(GCST), val(mode),path(all_hm), path('harmonised.qc.tsv'), path('report.txt'), emit: qc_ed
//path 'harmonised.qc.tsv.gz', emit: qc_result
//path 'report.txt', emit:delete_sites
//tuple path("${GCST}.h.tsv.gz"), path("${GCST}.h.tsv.gz.tbi"), emit: ftp_folder_results

shell:
"""
basic_qc_nf.py \
-f $all_hm \
-o harmonised.qc.tsv \
--log report.txt \
-db ${params.ref}/rsID.sql
-db $rsIDfile

cat harmonised.qc.tsv | bgzip -c > ${launchDir}/$GCST/final/${GCST}.h.tsv.gz

tabix -c N -S 1 -f -s 3 -b 4 -e 4 ${launchDir}/$GCST/final/${GCST}.h.tsv.gz
cat harmonised.qc.tsv | bgzip -c > ${GCST}.h.tsv.gz
tabix -c N -S 1 -f -s 3 -b 4 -e 4 ${GCST}.h.tsv.gz
"""
}
3 changes: 2 additions & 1 deletion subworkflows/local/quality_control.nf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ workflow quality_control{
unmapped

main:
qc(ch_tsv)
rsID_file=Channel.fromPath("${params.ref}/rsID.sql")
qc(ch_tsv, rsID_file)
ch_to_log=qc.out.qc_ed.combine(ch_direction,by:0).combine(inputs,by:0)
ch_to_log.view()
//ch_to_log: val(GCST), val(mode),path(all_hm), path('harmonized.qc.tsv'), path('report.txt'), path (total_sum), val(build), path (input)
Expand Down