Skip to content

Commit

Permalink
Switch to using bcftools-score
Browse files Browse the repository at this point in the history
  • Loading branch information
nwiltsie committed Jul 10, 2024
1 parent 3ffc997 commit 9f9605f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
4 changes: 2 additions & 2 deletions config/default.config
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ params {
docker_container_registry = "ghcr.io/uclahs-cds"

// Docker images
bcftools_version = '1.20'
bcftools_version = 'branch-nwiltsie-bootstrap' // FIXME
bedtools_version = '2.31.0'
gatk_version = '4.2.4.1'
pipeval_version = '5.0.0-rc.3'
samtools_version = '1.20'
stablelift_version = 'branch-nwiltsie-bootstrap' // FIXME

docker_image_bcftools = "${-> params.docker_container_registry}/bcftools:${params.bcftools_version}"
docker_image_bcftools = "${-> params.docker_container_registry}/bcftools-score:${params.bcftools_version}"
docker_image_bedtools = "${-> params.docker_container_registry}/bedtools:${params.bedtools_version}"
docker_image_gatk = "broadinstitute/gatk:${params.gatk_version}"
docker_image_pipeval = "${-> params.docker_container_registry}/pipeval:${params.pipeval_version}"
Expand Down
Binary file removed input/liftover.so
Binary file not shown.
9 changes: 2 additions & 7 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,11 @@ workflow {
validated_vcf_with_index.map { [it.sample_id, it.vcf, it.index] },
input_ch_src_sequence,
input_ch_dest_sequence,
Channel.value(params.chain_file),
// FIXME This is not the correct approach
Channel.value("${projectDir}/input/liftover.so")
Channel.value(params.chain_file)
)

funcotator_input = raw_liftover.out.liftover_vcf_with_index

run_funcotator(
// raw_liftover.out.liftover_vcf_with_index,
funcotator_input,
raw_liftover.out.liftover_vcf_with_index,
input_ch_dest_sequence,
Channel.value(params.funcotator_data.data_source)
)
Expand Down
5 changes: 1 addition & 4 deletions module/liftover.nf
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,17 @@ process raw_liftover {
tuple val(src_fasta_id), path(src_fasta_ref), path(src_fasta_fai), path(src_fasta_dict)
tuple val(dest_fasta_id), path(dest_fasta_ref), path(dest_fasta_fai), path(dest_fasta_dict)
path (chain_file)
// FIXME This is not the correct approach
path liftover_plugin, stageAs: 'bcf_plugins/liftover.so'

output:
tuple val(sample_id), path('liftover.vcf.gz'), path('liftover.vcf.gz.tbi'), emit: liftover_vcf_with_index

script:
// FIXME Use a more standard path
intermediate_path = "${params.output_dir_base}/${params.bcftools_version}/intermediate/${task.process}"
intermediate_path = "${params.output_dir_base}/bcftools-${params.bcftools_version}/intermediate/${task.process}"

slug = "LiftOver-${sample_id}-${src_fasta_id}-to-${dest_fasta_id}"

"""
export BCFTOOLS_PLUGINS="\$(pwd)/bcf_plugins"
bcftools +liftover \
--output-type u \
"${vcf}" \
Expand Down

0 comments on commit 9f9605f

Please sign in to comment.