Skip to content

Commit

Permalink
Test_3: Pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreRico committed Oct 19, 2024
1 parent baee202 commit d0c95b7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pipeline/PharmCAT_Pipeline.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ task pipeline_task {

echo "Run PharmCAT Pipeline" >> $log_file

# Option 1: User add on VCF or TSV file in the vcf_file input
# Option 1: User add on VCF or TSV file in the vcf_file inputx
if [[ -n "~{vcf_file}" && -f ~{vcf_file} ]]; then
# Copy to input_directory because host all vcf files in tsv or outside.calls
cp ~{vcf_file} files/input_directory
Expand All @@ -282,13 +282,13 @@ task pipeline_task {

ls files/VCFs_inputs/*.vcf.* >> $VCFs_list # Create list with all vcf in the directory

# Run all vcf files in the diretory individually
for vcf_file in $(cat $VCFs_list); do
echo "Processing individual VCF file: $vcf_file" >> $log_file
cmd="pharmcat_pipeline $vcf_file $args"
echo "Running command: $cmd" >> $log_file
eval $cmd
done
# # Run all vcf files in the diretory individually
# for vcf_file in $(cat $VCFs_list); do
# echo "Processing individual VCF file: $vcf_file" >> $log_file
# cmd="pharmcat_pipeline $vcf_file $args"
# echo "Running command: $cmd" >> $log_file
# eval $cmd
# done

else
echo "No VCF or list of VCFs provided. Exiting." >> $log_file
Expand Down

0 comments on commit d0c95b7

Please sign in to comment.